3 ms·
The reply by @mcclure111 [1] is good: > When I write code, I want to write things semantically— I want to call an isWindows() function, not idiomatically compa
by jakelazaroff 7y ago
The reply by @mcclure111 [1] is good:
> When I write code, I want to write things semantically— I want to call an isWindows() function, not idiomatically compare a string process.platform (node only) to a string that could change in the future.
> If I have "semantic" functions like isWindows, I want it in a library, not one-off in my project. And if I have a library management system, it's great if the libraries are highly granular— IE, a standard library where each function is one library sounds great.
> …It's just that, instead of maintaining a standard library set containing many small granular sublibraries, the javascript community decided to make every single one-function library an attack/vuln injection surface OH WELL
[1] https://twitter.com/mcclure111/status/1140007877547106305 https://twitter.com/mcclure111/status/1140007877547106305