An unofficial, read-only Hacker News reader.

The importance of understanding what the fuck is going on (opens external site)

481 points by notfried 16 hours ago | blog.jsbarretto.com | 336 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. It's important to distinguish trivia from knowledge, and even more so durable trivia from ephemeral trivia.

    A property of software is that the code can be written to be arbitrarily interconnected, thus bugs can be arbitrarily complex. Deeply investigating the cause of a particular bug (dynamic linker doesn't special-case unaligned segments -> ... -> CPU sees different machine code than your debugger) can be fun and time-consuming and ultimately of little value, because that entire trivia graph is rooted in one particular bug of one dynamic linker implementation. Fix the bug and that trivia becomes worthless.

    Similarly, understanding the quirks and errata of a particular library or OS to the level that the location of a bug can be intuited from a few log lines can be tactically useful, but it's less useful than eliminating those quirks and fixing the errata. Each time something unexpected happens due to memory corruption, the goal should not be to understand that particulars of that bug, it should be to mechanically eliminate the possibility of memory corruption in that subsystem.

    Sure it's less fun to have a library or program that simply does what you want it to, and you spend less time on difficult tasks that only a skilled and experienced programmer can handle, but every minute you spend studying buggy behavior is a minute wasted. It's like memorizing the lore of a TV show, eventually it'll go off the air and then what was that time spent for? To be a human wiki page?

    Time spent studying the structure of correct programs can yield valuable insights from system architecture to performance optimization, some of which apply across any layer of the abstraction stack. Do that while your herd of LLMs hunt down the handling of unaligned .text sections in the dynamic linker.