How I leave myself reminders at the end of the day

3 years ago by beforan to c/programmerhumor

Otome-chan 8 points 3 years ago

I was once told that I'm very thorough with commenting, and I didn't have the heart to tell them that if I didn't comment so well I'd have no idea what my code is doing.

path: 0 244957, hotness: undefined, score: 8, children: 0
Thndrchld 7 points 3 years ago

That’s wonderful until you have a client asking why their pre-alpha demo that you forgot they had access to just called them a fuckwit.

Don’t ask me how I know that one :D

path: 0 252177, hotness: undefined, score: 7, children: 1
cawsllyffant 5 points 3 years ago

You too? First job, first production push (circa 1997)... a few days pass and support comes into my office with their hair on fire. "Customer is asking why the program is calling them a fucking idiot."

In a piece of code that it should have been impossible to hit, I'd put a dialog "Developer is a fucking idiot".

When I say impossible to hit, it was on the order of if (a == null && a != null ){}. Or so I thought... turns out I'd miscounted the curly braces.

path: 0 252177 252179, hotness: undefined, score: 5, children: 0
thepiguy 3 points 3 years ago

I do todo!() For rust and in other languages I just throw an exception. And searching for TODO comments using ripgrep.

path: 0 252859, hotness: undefined, score: 3, children: 0
Lorgres 3 points 3 years ago

#warning "TODO" Is my goto reminder when a comment doesn't cut it.

path: 0 257415, hotness: undefined, score: 3, children: 1
huw 1 point 3 years ago

Works unless you already have 1000 other warnings in your project 👀

path: 0 257415 351744, hotness: undefined, score: 1, children: 0
BarrierWithAshes 2 points 3 years ago

Ah, I always just write out the sentences directly so the program won't even compile. Always works for me lol.

path: 0 249455, hotness: undefined, score: 2, children: 0
SomeBoyo 2 points 3 years ago

chaotic good

path: 0 252137, hotness: undefined, score: 2, children: 0
kaupas24 2 points 3 years ago

Smart way of doing it. Did something similar but in php, a while ago.

path: 0 246412, hotness: undefined, score: 2, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43787
1628
1567

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.

go to feed...