Frans Bouma's blog
The blog of Frans Bouma, creator and lead developer of LLBLGen Pro and ORM Profiler.
-
"Framework-Hell"-solution is here: ISV's can upgrade to VS.NET 2003 without pain.
Yesterday I blogged about a problem ISV's can run into when they are selling .NET class libraries compiled with Visual Studio.NET 2003 to customers using Visual Studio.NET 2002. Today I've found a solution, which seems to be used by other ISV's already, and which solves the problem which caused me to post my rant yesterday. Below I'll first describe in a few words the exact definition of the problem and then the solution which works without any problem for your customers. After that I'll enlighten a bit the things you have to keep an eye on when implementing this technique.
-
Why I think some people shouldn't use VSNET 2003.
Additional Note:
I've changed the title of this article. The title is a hint from Robert. While I think blogging is about ventilating personal opinions, I do not feel it's my duty to bring Scott and this site (because the blogs are in the main feed) in trouble. -
Beware of the UnUnloadable IL!
Today an interesting thread was started on the DOT-NET CLR mailing list. The topic: a possible memory leak can occur when you are not careful with XSL transformations or compiled regular expressions. The reason for these memory leaks is that the CLR is generating IL behind the scenes and generated IL cannot be unloaded from an AppDomain unless the complete AppDomain is unloaded. Garbage Collection (GC) is not fixing this. The XSL transformations which will cause trouble are the ones which have to deal with XSL stylesheets with JScript embedded. The JScript is compiled into IL and as said, this will never be unloaded.
-
#define debugging testing
Simon Mourier wrote a large blog about debugging and sums up several points why debugging is still a PITA and that during all those years debuggers are still well.. harsh and cumbersome.
-
VS.NET 2003 isn't all that bad (sort of)
A few days ago, I blogged about a serious flaw in the ASP.NET editor in Visual Studio.NET 2003. Now, don't get me wrong, I really find it stunning this Bad BoyTM is still around, and according to the follow ups to Mike Moore's posting in the usenet thread about this issue, more people are seriously offended by this lack of customer support, but... Visual Studio.NET 2003 isn't all bad. In fact, some great enhancements are finally available.
-
Serious ASP.NET Editor flaw lives on in VS.NET 2003
Several (ok, a lot) of people have been bitten by the "I-format-your-HTML-code-as-I-please"-bug in the ASP.NET HTML editor in Visual Studio.NET v2002. To recap what the bug does to you: you are working in HTML view on a page. You have to do this because f.e. you are working on a repeater template. Because you are a good developer, you create a readable layout of your code, so also for this HTML. When you come to the point where you have to add a control to your ASP.NET page, you have to switch over to design view, drag it from the toolbox onto the page, switch back to HTML view to add f.e. templates or additional properties or even position it correctly. When you switch back from design view to HTML view, your code sometimes (not allways) gets reformatted randomly, even if you switch off any auto-formatting feature in Visual Studio.NET. Hitting control-z undo's this formatting, but it gets annoying over time.
-
The 'benchmark' code
I've decided to post the code I used to test what's faster: dynamic queries or stored procedures with optional parameters. The code can be found here. Let me add a disclaimer here, that I'm not pretending to have done scientific research or other scientific benchmarking. All I've done is wrote a couple of routines which represent for me a real life situation using either one of the techniques. Of course the routines can be sped up and recoded in other forms, and perhaps I've made a mistake in the code which results in the slow speed of either one of the used techniques. Feel free to comment :)
-
The SP Benchmark code
All benchmarks are using the Northwind database on SqlServer. Northwind is shipped with every SqlServer installation as also the MSDE installation.
-
Stored Procedures vs. Dynamic Queries.
In Ted Graham's blog this morning he wrote a little text about the debate that is starting to show up here and there: is there a move away from 'Stored Procedures' towards 'Dynamic Created Queries' ? I think there is.
-
'You want a Dataset with that DAL, sir?' 'No, thank you.'
Yesterday, I saw several blogs about the datalayer phenomenon and how to construct one. Now, there are several roads which lead to a glorifying solution: some muddy, some paved with the finest asphalt. Today, I'd like to talk about one of the more muddy ones: ye olde 'DataSet Route'.