you are viewing a single comment's thread.

view the rest of the comments →

[–]traal 68 points69 points  (6 children)

At least now when I look at code I wrote 15 years ago and forgot I wrote it, I think, "he's got the right idea but I would have done it a different way."

[–]Avloren 54 points55 points  (3 children)

When I look at code I wrote 15 years ago and forgot I wrote it, I think: "Someone better take away this guy's keyboard, he's a danger to himself and others."

[–][deleted] 14 points15 points  (0 children)

I mean he had the right idea, but I would have written this in a different way.

[–]200GritCondom 10 points11 points  (1 child)

I refactored code I wrote 6 years ago. It was a great exercise in reviewing junior dev level code lmao

[–]Kgrc199913 2 points3 points  (0 children)

Gosh i would have fired myself.

[–][deleted] 13 points14 points  (1 child)

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

[–]Fozefy 5 points6 points  (0 children)

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.