Hacker News new | ask | show | jobs
by jon2512chua 4455 days ago
Out of curiosity: What are the positive reasons in having commented out code?
1 comments

Sometimes just the presence of code triggers a bug because of dynamic dispatching / whatever, and a hotfix is necessary. You could remove, but then later programmers wouldn't have context to fix the bug properly.

    # TODO: Figure out why do_foo is triggering a bug
    # http://my-company.org/issues/42
    # def do_foo(self):
    #   ...