20

A most cathartic feeling: when I get to remove a huge block of commented code that isn't necessary. 😌

Comments
  • 1
    satisfying things
  • 1
    Hopefully you deleted the old comments and replaced them with simpler, now effective comments. Comments matter.
  • 0
    @doyouknowty It was some boilerplate that was commented as a temporary reason of "I might need this later." I didn't, actually.
  • 1
    I assume it was your own code, then it's ok. 8)

    In one project I worked on I witnessed that commented code was removed en masse because the lead dev was obsesses with this - the code is in git, no need to keep it in the files, right?

    A newly hired dev got handed the part of the application, and after a while he refactored that part of code using some more modern approach (I forgot what it was exactly) ... but then the code no longer worked, but only in SOME circumstances.

    After quite some time trying to figuring that out, investigating the file history revealed: that same approach was used in the commented block which got removed, along with some remarks on why this didn't work in this specific case.

    I guess at least those should've been left in. :D
Add Comment