News for hackers. Stuff that matters.
Re:Clean your codebase with basic information theory by loup-vaillant on Monday February 19, 2024 @07:58AM (#39429264)
Here's what I have to say about locality: https://loup-vaillant.fr/articles/source-of-readability

TL;DR: locality is likely one of the most important concepts in all of knowledge work. Of course we're a little obsessed with it.

Re:Clean your codebase with basic information theory by valty on Thursday February 22, 2024 @11:53PM (#39477133)
> Our screens offers only a small window, and even the smartest IDE can’t give us instant access to everything

This is the real problem that needs solving.

> code that is read together should be written together

Code is a database of functions. This approach is like trying to design a database in denormalized form.

Re:Clean your codebase with basic information theory by loup-vaillant on Friday February 23, 2024 @04:17AM (#39478567)
The "problem that needs solving" as you put it, is I believe fundamentally not solvable. Not at the human level, not at the computer level, not even at the we-made-a-Dyson-sphere post-human utopia level. Because the speed of light.

No matter how efficient we are overall, what we can access the fastest is fundamentally limited, because what we can keep closest is limited. If you want to access information in less than 3 nanoseconds, a copy of that information must be stored less than a meter away.

More prosaically, the reason our screens offer only a small window, is because our eyes only offer a small window. The problem would not really be solved even with infinite resolution VR googles.

> Code is a database of functions. This approach is like trying to design a database in denormalized form.

I believe I disagree for the most part.