Locality of Behavior (LoB) describes a design principle that I believe explains the increasing popularity of libraries like alpine.js, tailwindscss, front end components and, if I may, htmx.
It is in tension with the more familiar Separation of Concerns (SoC) design principle which has been dominant in the web development world.
I am hoping that by introducing this terminology, people who favor this style of programming can better communicate with other developers its advantages.
It is in tension with the more familiar Separation of Concerns (SoC) design principle which has been dominant in the web development world.
I am hoping that by introducing this terminology, people who favor this style of programming can better communicate with other developers its advantages.