4 ms·
Something I rarely see anyone do is use the Refactoring features in their IDE. Most IDEs understand the AST of the code you’re working with. Knowing the AST al
by brad0 4y ago
Something I rarely see anyone do is use the Refactoring features in their IDE.
Most IDEs understand the AST of the code you’re working with. Knowing the AST allows it to restructure that tree, based on some simple commands.
One command is rename. You can rename variables, functions, classes, files, you name it. Your IDE should update all your code automatically.
Extract and Inline are two other useful commands.
Learn the keyboard shortcuts and you’ll feel like a wizard. It’s honestly close to magic.
- dllthomas 4y ago> Your IDE should update all your code automatically. I don't usually like this when it's done without per-instance confirmation. Names are an important part of how information moves between parts of a program for those working on it, and making sure the names still make sense in all the contexts where they're used is an important part of that.