Oct 22

This post was written in 2009, please read this stack on why eval is always a bad idea:
https://stackoverflow.com/questions/13167403/is-javascript-eval-so-dangerous</strong>

Usually when I need to call a JavaScript function using a string I use:

function myUsefulFunction() { //useful code }
var foo = 'myUsefulFunction();';
eval(foo);

However a more elegant approach would be to use:

function myUsefulFunction() { //useful code }
this['myUsefulFunction']();

Continue reading »

Tagged with:
Oct 11

Despite the rumours LINQ to SQL is fully supported in .NET 4.0, it has even been improved including better mockability, link below has more details .  Good news for all the early adopters you don’t have to redevelop all your LINQ to SQL apps to entities, just to be supported by Micro$oft.

http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40

Tagged with:
preload preload preload