Locality of Behavior principle (LoB):

by Mar 20, 2024Shorts

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!

Remy van Duijkeren

Remy van Duijkeren

The Marketing Developer

I build automation and integrations that remove the annoying stuff—using Power Platform, Dynamics 365 & Azure.

Get My Thoughts on Automation & Development

Join my personal newsletter and get practical insights on building faster, integrating smarter, and removing friction in IT systems — especially on Power Platform and Dynamics 365.

Related

.NET 10: ZIP it. Smarter.

.NET 10: ZIP it. Smarter. Yes, you could already update entries inside ZIP files before... But now you can do it without rewriting the entire...

read more