this post was submitted on 17 Jun 2023
23 points (84.8% liked)

Programmer Humor

33619 readers
10 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
[–] BrianTheeBiscuiteer@lemmy.world 4 points 2 years ago (2 children)

Total shitpost. We use let now.

[–] Dirk@lemmy.ml 3 points 2 years ago (1 children)
[–] Crackhappy@lemmy.world 1 points 2 years ago

Const ipated = 1;

[–] TheInsane42@lemmy.ml 1 points 2 years 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)

[–] ditherwither@lemmy.world 2 points 2 years ago

This is art

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

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

[–] beforan@lemm.ee 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));

[–] Hypnosis4162@lemmy.world 1 points 2 years 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 -2 points 2 years ago

it's how modules get loaded with node.js