Locality of Behavior principle (LoB):

by Remy van Duijkeren | Mar 20, 2024 | Shorts

Locality of Behavior principle (LoB):

"The behavior of a unit of code should be as obvious as possible by looking only at that unit of code."

This principle is starting to get more and more traction. I like it.

You see it in components like React/Vue/Svelte. One file containing code, style, and markup.

Using this one-file approach in .NET Blazor / Razor is my favorite way to write for the web.

Tailwind CSS is also pushing this principle.

Gone are the days of abstractions on top of abstractions? I hope so!

Related

Hourly billing kills love.

Hourly billing kills love. I saw it happen again and again at implementation partners. Everything starts fun… and then it slowly burns down. Year 1:...

Read More