christova

localityofbehaviour

LOB!

”**The LoB principle dictates that the behavior of a unit of code should be as obvious as possible by looking only at that unit of code.” ** I totally agree. That makes perfect sense. And many developers, across several generations, would collectively sigh in relief at this sentiment. Because it’s true.

Locality of Behavior on its own isn't enough

https://htmx.org/essays/locality-of-behaviour/

But also:

https://www.eloquentarchitecture.com/locality-of-behavior/

Why would a more complicated and miserable experience be preferred over one that was fat-free and transparent. My mantra in life – not just in software development – is, there is no topic on this Earth so complicated that it can’t be broken down into layers, bite-size-chunks and rudiments, so that a dummy layperson can’t understand it. For example, I don’t understand how Nuclear Fission works… but I’ll bet someone could get me to a decent level of application if they had 2-weeks with me and a decent set of teaching materials.

This post is a reaction to, and in part an agreement with, https://www.youtube.com/@ThePrimeTimeagen who has a video critiquing the SOLID principles of computer science. There’s some controversy in there (quite right, as there should be), I agree with some of his points, but every single one. His channel is worth checking out.

#LocalityOfBehaviour