Refactor Person.java
Closed this issue ยท 0 comments
rk16449 commented
I've selected Person.java for refactoring, which is a module of 121 lines of code and 70 incoming calls. Addressing this will make our codebase more maintainable and improve Better Code Hub's Separate Concerns in Modules guideline rating! ๐
Here's the gist of this guideline:
- Definition ๐
Avoid large modules with high fan-in (nr. of incoming calls). - Whyโ
This keeps the codebase loosely coupled which makes it easier to minimize the consequences of changes. - How ๐ง
Identify and extract responsibilities of large modules into smaller ones and hide implementation details behind interfaces. Target having modules that have no more than 10 incoming calls.
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ