What do you think about: https://htmx.org/essays/locality-of-behaviour/
I say "on the whole" because there are always counterexamples to any maxim. The article realises this and mentions 2: DRY and SoC.
Writing good software is often a matter of taste.
What do you think about: https://htmx.org/essays/locality-of-behaviour/