this post was submitted on 17 Jun 2023
9 points (76.5% liked)

Programmer Humor

32461 readers
1139 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 9 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

Total shitpost. We use let now.

[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Const ipated = 1;

[–] [email protected] 1 points 1 year ago

This is art

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 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));

[–] [email protected] 0 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?

[–] [email protected] -3 points 1 year ago

it's how modules get loaded with node.js