391
you are viewing a single comment's thread
view the rest of the comments
[-] theunknownmuncher@lemmy.world 98 points 1 day ago* (last edited 1 day ago)

Whenever you sit back and smile proudly to yourself about how clever the block of code you just wrote is, your next move should be to delete and rewrite it.

This is a clever block of code! Great job, now rewrite it to be sane ๐Ÿ˜‚

[-] balsoft@lemmy.ml 27 points 1 day ago

I think it depends; some smart code is good actually, think 0x5f3759df. As long as you properly document it and leave plenty of comments. This one is not smart though, at best it's what I would call witty.

[-] Cethin@lemmy.zip 4 points 21 hours ago

This isn't smart. This is clever. It's a way to solve a problem in a novel way. It isn't the best, or even most obvious, way to solve the problem. It's just interesting.

[-] theunknownmuncher@lemmy.world 20 points 1 day ago

I'd accept that "smart code" and "clever code" are 2 different things

[-] Valmond@lemmy.world 9 points 1 day ago

Fast inverse square root eh?

this post was submitted on 11 Oct 2025
391 points (100.0% liked)

Programmer Humor

26827 readers
1659 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 2 years ago
MODERATORS