Richard Gabriel
The primary feature for easy maintenance is locality: Locality is that characteristic of source code that enables a programmer to understand that source by looking at only a small portion of it.
Встретил тут https://htmx.org/essays/locality-of-behaviour/
Не важен размер функции, главное чтобы все было понятно.