this post was submitted on 17 Jul 2023
467 points (97.2% liked)

Programmer Humor

32443 readers
949 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

When your code works, but you don't know how
@programmerhumor

you are viewing a single comment's thread
view the rest of the comments
[โ€“] kamenlady@lemmy.world 6 points 1 year ago (1 children)

if ( "a" == "a" ) { // i swear i saw this somewhere }

[โ€“] Dirk@lemmy.ml 7 points 1 year ago

I once did const theNumber = 4 in a function (and then took a second, actually random, number and compared it to theNumber).

In the comment to the function I actually referenced https://xkcd.com/221/.