234
you are viewing a single comment's thread
view the rest of the comments
[-] 42yeah@eviltoast.org 17 points 3 days ago

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.

[-] BradleyUffner@lemmy.world 6 points 2 days ago

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.

[-] filcuk@feddit.uk 3 points 2 days ago

Only cowards use the NOT operator

[-] Sandbox@lemmy.zip 2 points 2 days ago

That's....amazing haha thank you for your reply!

this post was submitted on 11 Nov 2026
234 points (98.3% liked)

Programmer Humor

34135 readers
2088 users here now

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.

Rules

founded 3 years ago
MODERATORS