1505
you are viewing a single comment's thread
view the rest of the comments
[-] Johanno@feddit.org 49 points 1 week ago

I write such comments because I have to.

Company policy.

Also we have to specify every line of code and what it should do.......

[-] explodicle@sh.itjust.works 26 points 1 week ago

I would smash everything into a handful of overly-complicated lines.

[-] MystikIncarnate@lemmy.ca 12 points 1 week ago

I loved doing this is school, just trying to mess up my teachers.

[-] jaybone@lemmy.world 5 points 1 week ago

Sometimes I think after i retire, I should teach. In the hopes that i could inspire people to write good code, instead of a lot of the garbage i see in the industry. This comment makes me sad.

[-] MystikIncarnate@lemmy.ca 2 points 1 week ago

I just want to be clear, this was like highschool cs classes. I took things a bit more seriously in college.

I never wrote messy code or illogical code, or any code that didn't work. We were learning C++ in those days and if you know anything about C++, you can basically cram an entire program into a single line. You can also do some shorthand stuff for calculations and updates to variables... So while the class was instructed to use whitespace and comments and update variables like "var = var + #" I would do var += #.... I wouldn't comment it, mainly out of hubris.

I was pretty good at it but I was lazy as all hell with it.

load more comments (1 replies)
load more comments (13 replies)
this post was submitted on 06 Jul 2024
1505 points (99.4% liked)

Programmer Humor

18388 readers
489 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS