this post was submitted on 17 Jun 2023
27 points (88.6% liked)

Programmer Humor

32426 readers
625 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 8 comments
sorted by: hot top controversial new old
[–] BrianTheeBiscuiteer@lemmy.world 6 points 1 year ago (1 children)

Total shitpost. We use let now.

[–] Dirk@lemmy.ml 4 points 1 year ago

You mean const.

[–] ditherwither@lemmy.world 2 points 1 year ago

This is art

[–] beforan@lemm.ee 1 points 1 year ago

Either that for the sweet sweet node_modules, or this for the code golf:

Array(100).fill().forEach((_, n) => console.log((++n % 3 ? "" : "Fizz") + (n % 5 ? "" : "Buzz") || n));

[–] Hypnosis4162@lemmy.world 1 points 1 year ago (1 children)

I code in Python. Can someone explain what is that magic require function here with a bunch of strings?

[–] yogthos@lemmy.ml -1 points 1 year ago

it's how modules get loaded with node.js

[–] tony@l.bxy.sh 1 points 1 year ago

It doesn't look like condition is imported, only ifCondition so I'm not sure that will run