Aleksandra Fedorova :fedora: on Nostr: Q: Have you ever seen a successful valid refactoring effort in real life? A: As a ...
Q: Have you ever seen a successful valid refactoring effort in real life?
A: As a matter of fact, I made one. The key to success was that I had not enough knowledge about the project therefore my refactoring scope was limited by external reasons.
The refactoring was - to remove Windows-style line breaks from a 200000-lines Java project :)
The second refactoring, to format that project to one code style, failed on 3).
Apparently auto-formatting tools in Java IDEs are not always idempotent.
A: As a matter of fact, I made one. The key to success was that I had not enough knowledge about the project therefore my refactoring scope was limited by external reasons.
The refactoring was - to remove Windows-style line breaks from a 200000-lines Java project :)
The second refactoring, to format that project to one code style, failed on 3).
Apparently auto-formatting tools in Java IDEs are not always idempotent.