News for hackers. Stuff that matters.
Re:Understandability in software by recursivedoubts on Tuesday June 09, 2020 @08:38PM (#23472632)
The article doesn't really get into specifics.

I think a good way to improve the understandability of code is via something I am calling "Locality of Behaviour":

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

Re:Understandability in software by dpenguin on Tuesday June 09, 2020 @09:49PM (#23473017)
Exactly what I was thinking as I was browsing this thread. If I can understand the code by visiting as few files as possible and reading as few lines as possible and not having worry about finding those, job done.

There should be a metric that indicates aggregate LoB for a codebase. Simplistically, cluster references of all entities (variables, functions etc depending on the language), calculate the overlap of those clusters and aggregate them. Track this metric over time and when it breaches a certain threshold, refactor until it’s back to where you want it to be.