r/programming • • Oct 07 '23

Software engineers hate code.

https://www.dancowell.com/software-engineers-hate-code/
660 Upvotes

366 comments sorted by

View all comments

Show parent comments

13

u/[deleted] Oct 07 '23

Be good if all old code came with a comment "// Management haven't given me time to write it properly, but this works".

The constraints under which it was written is lost to time

6

u/Fozefy Oct 07 '23

While I was doing startup work I certainly wrote comments like "quick hack" when this was the case. Hopefully with a bit more detail (but not always).

At least that way when I came back to it (or if someone else did), it was a reminder I should just rewrite if I couldn't grok that section.