Post archive for ‘Tips & Tricks’
Improve your code with NDepend
Although we all try to write the best code ever, we can’t be sure unless we have some kind of code analysis software, like NDepend. This is one of those tools that any developer and architect should have in his toolbelt.
NDepend makes refactoring easier: With a set of standard rules, and the possibility to defines your own, we can [...]
Quick Tip: Using SqlMetal to generate mapping for your POCO
We all know that we can easily map our database to classes using the Linq-to-Sql designer on Visual Studio. What happens in this process is that VS automatically creates all classes necessary to map our database. Although this being just freaking awesome, I do find it to have, sometimes, a two-face result.
TIP: Conditional code execution with the ConditionalAttribute and the #IF … #ENDIF Preprocessor Directive
While developing an application, you need to execute some code only when a defined condition is meet, for example, you have a product and you want to have specific code execution for both a release version and a trial version. You could change the code and compile different code for each version, or you could [...]