Thank you for this post.
It sums up very nice, simple advices to make code cleaner 👌
Inline Variable (related to #4) and Extract Variable (related to #2) are the two refactorings I'm probably using the most, on a daily basis.
I'm currently working on a VS Code Extension to get the editor do these refactorings automatically for us. My goal is to make these typical operations easy to use.
For example, I can now solve #5 very quickly with Remove Redundant Else.
Thank you for this post.
It sums up very nice, simple advices to make code cleaner 👌
Inline Variable (related to #4) and Extract Variable (related to #2) are the two refactorings I'm probably using the most, on a daily basis.
I'm currently working on a VS Code Extension to get the editor do these refactorings automatically for us. My goal is to make these typical operations easy to use.
For example, I can now solve #5 very quickly with Remove Redundant Else.
Maybe you'd be interested in using it.
It's called Abracadabra: bit.ly/vscode-abracadabra
If you feel like trying it, I'd love to get your feedbacks, so I can make it better.
Thanks again for sharing these practices. Have a nice day 😉