this post was submitted on 19 Jul 2023
281 points (95.8% liked)

Programmer Humor

19464 readers
14 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
 

saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 70 points 1 year ago (4 children)

"CS Major" is one of my favourite memes

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

It's so rare for me to have to use the modulo operator I'm actually excited when I come across a situation where I can.

[–] jimmux 11 points 1 year ago (1 children)

It's like how when you were a kid, you thought quicksand was something you would need to be aware of as an adult in the big wide world. In my undergrad, mod everywhere. Very important knowledge. Now not so much.

[–] HamBrick 9 points 1 year ago

I (a teen boy) was with a bunch of other dudes on a river, one found quicksand, and it quickly became a game of who could get deepest

[–] [email protected] 7 points 1 year ago* (last edited 1 year ago)

I did it the other day!

I was trying to pad a base64-encoded string with the proper number of = characters to get it up to a multiple of 4 because our stupid build toolchain would explode if it wasn't.

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

I'm using it regularly to convert metric into imperial fractions.

I'm writing for a factory that is manufacturing windows and door so I'm this field everything is imperial imperial fractions. When I arrived we switched all the internal measurement to metric because imperial SUCKS for automatic processes.

I still need to do the conversion for everything that will be shown to the client.

[–] [email protected] 17 points 1 year ago
[–] [email protected] 5 points 1 year ago

Wow I literally laughed out loud

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

i logged in to upvote you, thank you