Adding functionality to a library, without touching the existing code should be safe for clients, shouldn’t it? Unfortunately not, adding another overload to a library can be a breaking change. It might work when the library is updated, but suddenly break when the client is recompiled – even though no code was changed. That’s nasty,… Continue reading Adding an Overload is a Breaking Change
Tag: Language Basics
More on this in JavaScript
There’s more to this in JavaScript than I showed last time. Time for more details on methods, closures and the global object. This is a direct continuation of the this in JavaScript vs C# post. If you haven’t already read it, I suggest that you read it before continuing here. More on Methods Last time… Continue reading More on this in JavaScript
this in JavaScript vs C#
Coming from C#/C++/Java, the usage of the this keyword in JavaScript is confusing. This is my attempt to explain it, in C# terms (with C# being very close to C++ and Java). I’ve thought of writing this post a long time, but it’s just now, when reading JavaScript: The Good Parts that I’ve finally understood it… Continue reading this in JavaScript vs C#