loading...

Inline & Extract

jwoudenberg profile image Jasper Woudenberg ・1 min read
                      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?

Discussion

pic
Editor guide