Hacker News new | past | comments | ask | show | jobs | submit login

The thing is, I don't really like "tools" for refactoring, because they take me a little too far away from the code.

For example, they might make mistakes, like changing only the code references and not the comments; or be mildly annoying by screwing up indentation.

I feel better being forced to visit every line, to see the whole scope of the change and realize just what it's doing to the code. Occasionally, this has made me realize that the refactor is not even the right thing to do. Also, it is one of the few chances I have to force myself to read code that I don't visit often; it can result in me writing down a few other things to go back and fix later (a mini-code-review, basically).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: