Common JavaScript Gotchas – Part 1

Pop quiz, hotshot, the image shows a common JavaScript ‘gotcha’ – or inadvertent mistake through incomplete knowledge of something. What exactly is happening here? You create a simple function called “getPerson”, and it returns you a JSON object with a single property on it, “name”. However! When you come to Continue Reading

Func<T> vs. Action<T>

Although I’ve been using Func<T> and Action<T> for years, I’m embarrassed to say I hadn’t really thought about the differences between them – or more importantly, how they are in fact two sides of the same coin. Most of the time their use has been a natural reflex action to Continue Reading