rk16449/CaloriesTracker

Refactor Person.java

Closed this issue ยท 0 comments

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! :shipit: โœจ ๐Ÿ’ฏ