News for hackers. Stuff that matters.
Re:Tips for refactoring your code with no pain by CedricTeyton on Friday January 13, 2023 @04:12AM (#34365532)
Hi Kevsim, thanks for your comment :)

I've probably under-highlighted in this article the fact that each operation is intended to be used locally by a developer as an intermediate step during a refactoring of a legacy code. All these tips allow to transform a function to a new state #1, supposed to be easier to understand, and as a root point to perform some modifications in your code.They are just easy-to-implement solutions to assist developers with a messy code. Then, you can start implementing tests to avoid regressions and continue your refactoring to a newer state #2, which will then be commited on your Git repo.

Hope this can help :)

There are no comments on this comment yet.