Everything is from an imported library
- 0 Posts
- 7 Comments
Joined 29 days ago
Cake day: October 16th, 2026
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
aldhissla@beehaw.orgto
Programmer Humor@programming.dev•Anon died on the "clang format bad" hill
2·20 days agoTS dev here. Yep.
There’s worse, but not by much. Looking at you, PHP
aldhissla@beehaw.orgto
Canada@lemmy.ca•Behind the push to make smoking and vaping illegal for a generation of Canadians
22·26 days agoThis. I know some people who have switched to vapes and have steadily reduced their nicotine to 0.
aldhissla@beehaw.orgto
Canada@lemmy.ca•Books written by AI are ineligible for ISBN numbers in Canada
51·26 days agoCome on, you have to admit that “proper use” is doing a lot of heavy lifting here. The GIGO problem is not just a result of "mis"use, but a pervasive and steadily worsening problem.
aldhissla@beehaw.orgto
Canada@lemmy.ca•Books written by AI are ineligible for ISBN numbers in Canada
2·26 days agoYea, didn’t you hear calling it otherwise makes you tHe EneMy?
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.