this post was submitted on 17 Jun 2023
96 points (95.3% liked)

Programmer Humor

32473 readers
475 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
[–] BrianTheeBiscuiteer 17 points 1 year ago (2 children)

Total shitpost. We use let now.

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

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

TikTok has rotted my brain, all I can hear is this https://m.youtube.com/watch?v=gXk0QDcRwkU

[–] Hypnosis4162 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] 0 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));

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