Notes of Maks Nemisj

Experiments with JavaScript


What you see is NOT what you get

Recently I’ve got a pleasure to debug some bug inside node.js app. Run-time was breaking with the following error: Quite usual error, meaning that object has no forEach function. Let’s see the code itself: I bet you were surprised like I was. This is just not possible from the first look, right?. If you read […]

, , ,

Why getters/setters is a bad idea in JavaScript

UPDATE (15 May 2020) : I see a lot of comments regarding TypeScript and that there is no issue with setters/getters while using static typing. Of course, you can safely use getters/setters in the environment, which guarantees static type check, but this article is about vanilla JavaScript. This article is my opinion why I think this […]

, , ,