this post was submitted on 13 Oct 2023
331 points (95.8% liked)

Programmer Humor

32495 readers
34 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 1 year ago (2 children)

mfw my face when the go compiler fucking screams at me because I dared to declare a variable and not use it

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

IF THIS IS INTENTIONAL PUT AN UNDERSCORE BEFORE THE VARIABLE NAME YOU ABSOLUTE FUCKING MORON

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

didn’t know the go compiler’s name was steeve

[–] clearleaf 10 points 1 year ago (1 children)

"Don't worry too much about your loops bro, I am the apex of computer science research, I know every optimization in the book." Ok want to compile this? "Is that... An unused variable?!? WHAT THE FUCK ARE WE GOING TO DO GOD IS DEAD"

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

honestly my dumb ass will choose for i in list: over for i := range slice { every single time. I’m ugly and I’m proud!