3
delose
4y

Life is too short to have commented codes; don't want to go back to it once it shows up in the static code analysis scan

Comments
  • 1
    But life isn't too short to figure out WHY some piece of code is doing something, or changing it and then finding out something else doesn't work anymore and debugging that stuff, right?
  • 2
    But any inheriting dev will expend his short life figuring out the code
  • 0
    Commented code (during commits) = piece of garbage
  • 1
    @delose Looks like you're high on the "good code doesn't need comments" cool aid. Don't worry, that will wear off once you have to maintain code by devs who drank that cool aid.
  • 1
    I'm ok with code with comments but not commented code 😉
  • 0
    @delose You mean, commit messages that should actually be comments in code?
  • 1
    @Fast-Nop code changes that are commented code - it has nothing to do with commit comments. If you are familiar with Sonarqube, these commented codes are flagged as a code smells which prompts developers to rework and delete that code.
  • 2
    @delose Aahhhhh you mean OUTcommented code! Now I get it and agree, that's what version control is for in the first place.
  • 1
    @Fast-Nop it is like reading clean code and assuming it is the word of god... The worst part of that book is narrow view against comments. I AGREE that code should be as descriptive as possible but well placed comments are life saving.
    Note: I fell to same trap, he meant commented out code...
Add Comment