Translate Page

Tuesday, January 27, 2009

Let Your Code Fail Early

To the list of disturbing practices I nominate this: if ([some critical resource] != null) [do something with this critical resource]; The critical resource above could be an essential configuration setting, a file, a control, etc. Its absense should lead to an exception so that you, the developer, can figure out this anomalous flow early,

Posted in ASP.NET Resources - ASP.NET With Emphasis On Web... (View Technorati URL search 73 links from 42 sites)

0 comments: