Frederik Prijck, a friend and blogger extraordinaire, wrote a blogpost a few days back about the importance of decoupling your configuration file from the rest of your application. Frederik covers the topic pretty thoroughly and I wanted to write a post on how I achieve
Thread-safe singletons in .NET
Lets take a look at (static) constructors, thread-safety and static singletons.
Field initialization
Let's start by examining how field initialization works in .NET.
Let's say you have the following code:
public class Program
{
// field declaration and initialization
private int i = 5;
public Program ()
{
// do ctor
Prerender AngularJs templates with MVC HTML helpers
As a .NET Web developer, I'm always looking for better ways to get Angular and MVC.NET to play nicely together. Writing and rendering templates using the templateCache is a good example of these two world that tend to collide if not implemented correctly.
Why
Tendencies of the Belgium software market
While working on a new software architecture for my company (the old one was getting a little bit to old :)) I found myself wondering what frameworks and architectures were already out there. And more importantly, which ones the clients that employed my colleagues used.
So,
AngularJS intellisense in Visual Studio 2012
As a .Net developer Visual Studio is my greatest power. This robust, adaptable and powerful IDE provides everything I could possibly need.
But with upcoming new JavaScript technologies like Node and Single Page Applications, it sometimes falls short. It's not that Visual Studio is bad