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

Programmer Humor

38160 readers
76 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nautilus 49 points 2 years 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] 24 points 2 years ago (1 children)

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

[–] nautilus 13 points 2 years ago

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

[–] [email protected] 11 points 2 years 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"

[–] nautilus 2 points 2 years 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!