Refactor Piece.cs
phduarte opened this issue Β· comments
I've selected Piece.cs for refactoring, which is a module of 90 lines of code and 24 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! β¨ π―