- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
The amount of closing braces in line 23 triggers my Lisp PTSD…
Coding noob here. What am I looking at? I want to laugh too. :(
npm, or node js by extension, is famous (infamous?) for having a library for however simple something is to implement. For example a whole library to trim spaces of a string, but only for the left side. Here the joke takes it to the extreme and even import numbers, if conditions, etc., features that are already available in the core language, from external npm libraries, and use that to write a code snippet.
My favorite was IsEven. An entire library to tell you if a number is even. And then IsOdd, that does the opposite, which takes IsEven as a dependenxy.
Bad JavaScript Code to make fun of npm.
But it is just bad code and consequently it weakens the critic that npm deserves.
Everything is from an imported library
Is this functional programming?
🦋
Clearly written by some smug [insert language here] dev… Nobody actually working in the JS/TS ecosystem is using
varin 2026.condition() is undefined, should be ifCondition()
There wouldnt be a ram crisis if nobody needed a 32 gigs of ram in their pc just to run a “hello world” web app.
Yeah I write clean readable code, how could you tell?
And thus, js becomes lisp.
Those who fail to study Lisp are condemned to reinvent it, poorly.
standard Javascript experience
Only if you write bad js.
Satan is taking notes…






