DEV Community

Discussion on: 10 golden rules for becoming a better programmer

Collapse
 
sergio1990 profile image
Serge Gernyak

Agree with you, Lyon 😊

If I found the messy code during some feature implementation cycle I prefer to just somehow notice such places and do some refactorings after. I do them as separate commits, or, moreover, as a separate pull request. I do not let such refactorings to be inadvertently interconnected with the feature changes. This gives to me a clear context what I've refactored and the ability to even revert the changes as the single thing if it broke something.

Nevertheless, this list of rules is great and useful!