Notes of Maks Nemisj

Experiments with JavaScript


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 […]

, , ,

JavaScript without “new” and “this”keywords

“If you don’t like ‘this’, try Zet.js” (c) M.Nemisj Plot: This article is about an experiment of avoiding “this” and “new” keywords in JavaScript and about the results of it. Harmful “new” keyword and replacement for that There are different debates flying around the internet about the safety of using “new” keyword in JavaScript. It’s […]

, , , , ,