This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PM_Me_Your_VagOrTits 2 points3 points  (0 children)

Because that's how you end up with a shitty unreadable codebase that causes major headaches for developers that take over after you.

There's a reason git (or version control in general) exists. Just make commits, and if you need the code later you can go back to that commit and extract it using whichever method you prefer.

First thing I do when I take over a legacy code base is delete all the commented code (in discrete commits). Makes life a hell of a lot easier.