The “Rule of 10” for functions, components and modules

Here’s my “Rule of 10” for functions, components and modules:

  • If a function has >10 lines of code, break out into multiple functions.
  • If a component has >10 functions, break out into multiple components.
  • If a module has >10 components, break out into multiple modules.

Update/note: I break these rules on a daily basis…

Show your support

Clapping shows how much you appreciated Tom Söderlund’s story.