HttpContext.Current, I hate you.

What if you have some legacy code that you cannot refactor and that contains references to HttpContext.Current ? What if you are writing unit tests for your code and it has references to that legacy code? Option 1: refactor the calls to the legacy code with the proxy pattern and continue writing the...

1 minute read

Simple Membership Provider. Oh you!

{“The Role Manager feature has not been enabled.”} 1/2 hour. Took me half an hour to track down this. It all began with the ASP.NET MVC 4 template, with its shiny AccountController. “Why do I have to write all that auth code? Why can’t I use WebMatrix ? ” {“The...

1 minute read

Brand new start

A long time ago, I had the chance to read this post. At the time I thought it was a great idea (and I still do), but I was still too focused on learning the basic principles of Computer Graphics and all the math behind the scenes. Years have passed...

1 minute read

Pure beauty

Look at this javascript code: '#'+Math.floor(Math.random()*16777215).toString(16); It prints a random hex color in just one line. I love when I find this kind of solutions. Smart, effective…and if you think a little more about it, even simple. Thank you, Raymond.

1 minute read