From 4e4cdf0fee8cb58c6e0ccb15c5d2bdef7e0acd8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Ak=C5=9Fim=C5=9Fek?= <39595683+dz4k@users.noreply.github.com> Date: Thu, 7 Apr 2022 22:33:39 +0300 Subject: [PATCH] Update locality-of-behaviour.md (#865) --- www/essays/locality-of-behaviour.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/www/essays/locality-of-behaviour.md b/www/essays/locality-of-behaviour.md index 71be2eea..4cafb60f 100644 --- a/www/essays/locality-of-behaviour.md +++ b/www/essays/locality-of-behaviour.md @@ -8,7 +8,9 @@ title: > htmx - high power tools for html > "The primary feature for easy maintenance is locality: Locality is that characteristic of source code that enables a > programmer to understand that source by looking at only a small portion of it." -- [Richard Gabriel](https://www.dreamsongs.com/Files/PatternsOfSoftware.pdf) -### The LoB Principle: +### The LoB Principle + +Locality of Behavior is the principle that: > The behaviour of a unit of code should be as obvious as possible by looking only at that unit of code @@ -94,7 +96,7 @@ are: #### Conclusion -Locality of Behavior is a subjective software design principle that can help make a code base more humane and maintainable. It must be traded +LoB is a subjective software design principle that can help make a code base more humane and maintainable. It must be traded off against other design principles and be considered in terms of the limitations of the system a code unit is written in, but, as much as is it is practical, adherence to this principle will increase your software maintainability, quality and sustainability. @@ -102,4 +104,4 @@ quality and sustainability.