.Net Coding Standards

The C#/.Net coding style that I recommend is documented in MSDN: MSDN’s “Design Guidelines for Developing Class Libraries”: http://msdn.microsoft.com/en-us/library/ms229042 MSDN’s “Guidelines for Names”: http://msdn.microsoft.com/en-us/library/ms229002 For more in-depth guidance, I consult Microsoft’s authoritative book, Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries. Although it’s a bit pricey, it also includes a DVD with several video … Read more.Net Coding Standards

Reduce Exception Handling Bloat

Most developers are probably familiar with exception handling guidelines that advise you to “avoid catching System.Exception or System.SystemException, except in top-level exception handlers”, and “if you can’t handle the exception in your part of the chain, throw it upwards rather than swallow it”. These spirit of these guidelines basically encourage you to: Create your own typed exceptions … Read moreReduce Exception Handling Bloat

Delivery (Build-Deploy-Release) Reading List

Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Addison-Wesley Signature Series (Fowler)) Thorough coverage of the “deployment pipeline”: an automated process for managing all changes: from check-in to build, testing (unit, acceptance, capacity); deployment, and release. Finally gives a name for many of the concepts (and headaches) that I’ve either seen or heard … Read moreDelivery (Build-Deploy-Release) Reading List

Why Regular Expression “Does Not Exist” Tests are Convoluted

In order to perform a “does not exist” test in a regular expression, you have to leverage negative lookaheads (negative lookarounds), if your flavor of regular expressions supports them: http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word Although this expression seems to works in RegEx Buddy’s .Net evaluation mode, it actually does NOT in production .Net code (call to RegEx.IsMatch) : C# … Read moreWhy Regular Expression “Does Not Exist” Tests are Convoluted