Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor annotations.pyΒ #3

Description

@massich

I've selected annotations.py for refactoring, which is a module of 235 lines of code and 224 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: ✨ πŸ’―

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions