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

Programmer Humor

32410 readers
320 users here now

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

Rules:

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

Total shitpost. We use let now.

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

This is art

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

it's how modules get loaded with node.js

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

condition undefined

Also lol at that number to string import

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

is this node version 12?

[–] [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