4 ms·
js is already a mixed bag of stuff, at least the pipe is usefull in making code cleaner especially compared to other features like: 1. support for class becaus
by mickael-kerjean 5y ago
js is already a mixed bag of stuff, at least the pipe is usefull in making code cleaner especially compared to other features like:
1. support for class because you know real programmer don't like prototypal inheritance and prefer to type the word class in their code. In the meantime, let's make a compiler to translate that code onto something an old engine will also understand, yeah that sounds like an amazing idea and tada babel is now the centerpiece of everything
2. so many way to create a for loop, put a few footguns with the for in syntax, mix it with a few functions in the array proto cleverly named: forEach and map so now we need a linter to enforce a style
3. let's put some await async everywhere but forget about cancellation because things can't go wrong anyway
4. let's make different standard for packaging and import with workaround everywhere so there's no code reuse in between front and backend code even though the primary arugment for nodeJS in the early day was code reuse
5. let's not talk about code that rely on null == undefined to be true and Number(null) to be 0 but Number(undefined) to be NaN, ....
...