This post is part of a series called JavaScript Demystified . I'm pretty sure by now you have heard at least once that eval is evil . Some nuggets from Eric Lippert's post: if you are considering using eval then there is probably a better way People, eval starts a compiler. I'm also pretty...
This post is part of a series called JavaScript Demystified . In our last installment in this short JavaScript series we took a look at closures. In some of the examples, we saw functions being declared (and returned) inside other functions. The capability of declaring a function inside another one is...
This post is part of a series called JavaScript Demystified . When I wrote about functions in JavaScript I mentioned that functions are more than just a block of code: Function is a standard data type in JavaScript, an object indeed; you can pass them around and copy them. Let's take a look at this...
This post is part of a series called JavaScript Demystified . Time after time I find JavaScript code that has bugs caused by lack of proper understanding of how functions work in JavaScript (a lot of that code has been written by me, by the way.) JavaScript has functional programming characteristics...
Language Envy: This post is part of a series where I wish C# had a particular feature I came to like when working with other programming languages. Every time I have to produce a string in C# the little groaning chimp that lives inside my head pulls his hair out. It's about time we had a better way...