3 ms·
No one is arguing for throwing away the code. There is certain amount of brains, efforts, time and money spent on writing code. What is argued is, the active c
by random42 15y ago
No one is arguing for throwing away the code. There is certain amount of brains, efforts, time and money spent on writing code.
What is argued is, the active current code should be readable. Version control systems, handle older versions of code very well.
- wladimir 15y agoTo your users, removing something from the latest release is equivalent to throwing away the code. Sure, you can trivially bring it back using source control, but the user can not, so the damage might already be done.
- random42 15y agoEnd users do not get affected by commented code. A more direct and positive way of making sure that the users do not get affected, would be to be responsible and actually test the code before putting it in-front of the users.
- wladimir 15y agoTesting doesn't help if you decide to remove a feature on purpose. Read my post again, would testing have helped Google in this case?
- random42 15y agoNo it will not. That is a business decision anyways. I dont think this is what the post is concerned about. It is about the dead code, developers leave as commented (for some reason), instead of actually deleting it.