3 ms·
I think the main take is: is ok to do stuff in javascript, but first we should have fixed javascript stupid stuff. Packages like isEven, isOdd, where created b
by major505 2y ago
I think the main take is: is ok to do stuff in javascript, but first we should have fixed javascript stupid stuff. Packages like isEven, isOdd, where created by one guy trying to solve javascript weird way to do stuff and now are widespread without considering if all that effort could be used in a better way.
- archerx 2y agoWhat? The modulo operator always existed in Javascript, isEven and isOdd have always been stupid and unneeded. "n % 2 == 0" and "n % 2 != 0" has never needed to be a dependency.
- eastbound 2y ago“Code is unclear. No-one knows that % operator.” — Service companies which require you to produce code of offshorable quality. As if someone without the skill to understand %, can have the skills to understand how to translate your business needs into code.