hn.today

The Theory Was Mine: Naur's "Programming as Theory Building", 40 Years On

mauriziosantamicone.substack.com11 points2 comments
Screenshot of The Theory Was Mine: Naur's "Programming as Theory Building", 40 Years On

A reflection on Peter Naur’s 1985 idea that programming is “theory building”: software depends on the practical understanding developers form of a problem, why a system works as it does, and how it can safely change. Code and documentation preserve only fragments of that understanding. When the team that holds it disperses without passing it on through shared work, a program may remain on disk but effectively lose the knowledge needed to maintain it. This view also offers a different measure of simplicity: the system is simpler when its underlying model is clear, not merely when it has fewer lines or abstractions.

The author connects Naur’s argument to studying computer science in 1980s Pisa, where formal methods, logic programming and Petri nets promised that systems could be specified or proved correct before implementation. These tools worked well for tightly bounded problems, but struggled with changing, interactive software; formalism could check a problem once understood, not reveal what the problem was. In a thesis project building a graphical interface system in Lisp, the author instead learned through making, testing and revising a working system. Though reviewers undervalued the thesis, the author came away with a deep grasp of its design - the “theory” that the written work and code could not fully convey. The discussion begins by linking this perspective to today’s AI-generated code and the claim that genuine simplicity starts with simplifying the system’s conceptual model.

Read on mauriziosantamicone.substack.com2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.