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

Programmer Humor

32375 readers
1362 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 3 months ago (1 children)

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

[–] [email protected] 15 points 3 months ago* (last edited 3 months ago) (2 children)
// 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 
...
[–] [email protected] 8 points 3 months 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.

[–] [email protected] 2 points 3 months ago

And don't watch that new dexter spin off