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

Programmer Humor

37254 readers
140 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@lemmy.dbzer0.com 48 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

[–] Steeve@lemmy.ca 24 points 2 years ago (1 children)

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

[–] nautilus@lemmy.dbzer0.com 13 points 2 years ago

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

[–] clearleaf@lemmy.world 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@lemmy.dbzer0.com 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!