Browse by Tags
All Tags »
Code Design (
RSS)
How often did you see a C# catch(Exception e) statement in code? How often did you write it yourself? I know I do it, even when I know I shouldn’t . Why? Because its so easy! Doing it right is hard(er) or at least take much more code you have to repeat...
Hi, I just wanted to point out two blog posts I wrote over at http://obiwanjacobi.blogspot.com discussing two mini patterns: The Throw Method and the Guard Method . These mini patterns propose the use of an extra method to Throw an Exception and to Guard...
While I was looking for something completly different I stumbled upon the threading best practices on msdn(2). http://msdn2.microsoft.com/en-us/library/1c9txz50.aspx I noticed an optimization for the double check locking pattern that I use a lot. Instead...
Why are OR-mappers cool? I dont know? My experience with them has been limited and the time I did use them the support for common constructs was very poor (at best): I don't think its a good idea for a OR-mapper to caugh up a SQL select query for each...
Now the Service Container (Inversion of Control and Dependency Injection) concepts are being adopted by the Microsoft Pattern & Practices group in their CAB and EntLib frameworks, maybe I can talk about a service container implementation I made a...