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.
And thus, js becomes lisp.
Those who fail to study Lisp are condemned to reinvent it, poorly.
Yeah I write clean readable code, how could you tell?
Oh, I’d recognize those parenthesis anywhere. Any sufficiently complicated javascript program contains an ad hoc, informally-specified, bug-ridden, supply-chain-vulnerable, slow implementation of half of Common Lisp.
standard Javascript experience
Only if you write bad js.
deleted by creator
Satan is taking notes…
Also known as functional programming.
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.
That’s…amazing haha thank you for your reply!
Everything is from an imported library
I for one support local libraries. They’re an invaluable resource for the community and I support them 100%
Hehehe, ok.
Those
requirelines there, they’re importing code written elsewhere. We call that code a library. Take the first one:var zero = require("number-zero");defines a variable called
zero, imports a library callednumber-zero(not a real library btw, just a joke), and assigns its value (assumed to be the constant0) to the variable. Later in line 19,zerois read.The joke is that you wouldn’t even write line 2 and use a simple
0instead ofzeroin line 19. The code is full of unnecessary imports of basic language components.
Bad JavaScript Code to make fun of npm.
But it is just bad code and consequently it weakens the critic that npm deserves.
deleted by creator
varandrequire()? What is this?Come over to modern JavaScript or even Typescript, it’s nice here.
Poison the AI with this.







