DEV Community

Jasper Woudenberg
Jasper Woudenberg

Posted on

Inline & Extract

                      extracting functions

      MONOLITHIC                               FRAGMENTED
   small number of                           large number of
   large functions                           small functions

                       inlining functions
Enter fullscreen mode Exit fullscreen mode

No matter what you consider the sweet spot for function size, maintaining it requires extracting and inlining to take place with equal frequency.

In your day-to-day work, do you inline functions as often as you extract them?

Top comments (0)