Hacker News new | past | comments | ask | show | jobs | submit login
Locality of Behavior (htmx.org)
2 points by recursivedoubts on June 11, 2021 | hide | past | favorite | 2 comments



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.


I don't believe that using a <div> as a button is good practice for building accessible websites.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: