338
all 17 comments
sorted by: hot top controversial new old
[-] RalphWolf@lemmy.ca 22 points 1 year ago

Document your code like the guy who will be maintaining it is Dexter, and he knows where you live.

[-] Aurenkin@sh.itjust.works 17 points 1 year ago* (last edited 1 year ago)
// This function calculates applicable discounts given a customer's loyalty status
// STOP BEFORE SEASON 8 DEXTER PLEASE 
fun calculateDiscountRate(loyalty: LoyaltyStatus): Set<Discount> {
    // No seriously you can hide out at my place if you need to just please don't let them do it 
...
[-] NeatNit@discuss.tchncs.de 8 points 1 year ago

That ... at the end made me think there was more code and my client was refusing to show it to me no matter what I did.

[-] AnnaFrankfurter@lemmy.ml 2 points 1 year ago

And don't watch that new dexter spin off

[-] electricprism@lemmy.ml 9 points 1 year ago

Is this going to activate the StarGate?

[-] bobs_monkey@lemm.ee 7 points 1 year ago

Only one way to find out

[-] original_reader@lemm.ee 9 points 1 year ago

Document your code. Or even better in many cases, write more self-documenting code.

[-] xmunk@sh.itjust.works 8 points 1 year ago

Excuse me, but my indecipherable hieroglyphics at least use proper indentation.

[-] AutomaticUpdates@monero.town 2 points 1 year ago* (last edited 1 year ago)

Right. And what do you mean my RegEx is not exhaustive enough and now the database is filled with garbage data?

[-] muntedcrocodile@lemm.ee 6 points 1 year ago

U mean yesterday

[-] vampira@lemmy.eco.br 4 points 1 year ago

If I get off my computer for an hour and come back I'm already unable to recognize my code lol

[-] qprimed@lemmy.ml 1 points 1 year ago

this resonates so much...

"ok, which one of you crackheads decided an unconstrained recursive C function was a good idea right her... oh."

[-] biggerbogboy@sh.itjust.works 3 points 1 year ago

this was me while writing my website for my screen and media course, I come back a week later and try to interpret these ancient runes inscribed on my IDE, had to stare at it for like half an hour to finally get what I made.

this post was submitted on 02 Aug 2024
338 points (96.9% liked)

Programmer Humor

38807 readers
346 users here now

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

Rules:

founded 6 years ago
MODERATORS