this post was submitted on 17 Jun 2023
64 points (91.0% liked)

Programmer Humor

31812 readers
548 users here now

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

Rules:

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

Total shitpost. We use let now.

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

Const ipated = 1;

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

Unless you code for an ancient java class that includes js code... (yuck)

No, no rewrite, it's going to de replaced soon(tm)... (like the cobol code)

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

This is art

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

it's how modules get loaded with node.js

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

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