234
NPM driven development
(lemmy.nz)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
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.