Document your code like the guy who will be maintaining it is Dexter, and he knows where you live.
// 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
...
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.
And don't watch that new dexter spin off
Is this going to activate the StarGate?
Only one way to find out
Excuse me, but my indecipherable hieroglyphics at least use proper indentation.
Right. And what do you mean my RegEx is not exhaustive enough and now the database is filled with garbage data?
U mean yesterday
If I get off my computer for an hour and come back I'm already unable to recognize my code lol
this resonates so much...
"ok, which one of you crackheads decided an unconstrained recursive C function was a good idea right her... oh."
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.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.