18

Don’t comment bad code—rewrite it.

Comments
  • 1
    Don't glue together a broken chair, buy a new one.

    Sure, it's better afterwards, but everything happens in the context of an optimization problem for time, money, resources, and often you can't afford a new expense at the moment it's discovered.
  • 3
    Why is this a joke?
    Should be a self improvement rule...
  • 0
    easier said than done. whenever i saw people trying to clean up the code, management came up to inquire why tf they were taking so long with task x and y. when we say it's cause we're fixing something else, they say to ignore it, "not a priority, fix later", and later never comes
  • 2
    I just want to add one line
    Fix why it is bad.
  • 1
    // don't touch, it works and we don't know why
  • 0
    @lbfalvy don't fix the first child, give birth to another one.
Add Comment