this post was submitted on 17 Jun 2023
42 points (88.9% liked)

Programmer Humor

33125 readers
579 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
[–] [email protected] 9 points 2 years ago (1 children)

Total shitpost. We use let now.

[–] [email protected] 1 points 2 years ago

You mean const.

[–] [email protected] 3 points 2 years ago

This is art

[–] [email protected] 2 points 2 years ago

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

[–] [email protected] 1 points 2 years ago

is this node version 12?

[–] [email protected] 1 points 2 years 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] 1 points 2 years ago

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