74

the actual code is way more than that . Is there anyone who adds the code but doesn't remove the code that isn't necessary

Comments
  • 5
    I've been spoiled by IntelliJ's handling of TODO comments and regions. As code goes through refactoring or updates, I make judicious use of these hints so that after final testing, the Great Purge can happen in one clean commit.

    I don't like carrying dead code forward.
  • 0
    @T3hbeowulf same but I use sublime it doesn't remove the code
  • 0
    Or complex programs with very little userinteraction and output. Like pricing/rating engines lol
  • 4
    I tend to keep it, who knows I might end up using that again (or its improved version).
  • 0
    @boo1997 I have done this so many times but I can't have code that's not used
  • 0
    @boo1997 I just comment that code
  • 1
    @spences10
    Yeah its a good practice to not keep unused code, but sometimes you might need to.
    @Amitkumar
    In my case its mostly unused classes, but I do comment out its instantiations and other stuff needed to initialise it sometimes.
Add Comment