Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    134comments
  2. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    7comments
  3. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    80comments
  4. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    25comments
  5. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    109comments
  6. OpenJev(openjev.com ↗)
    212comments
  7. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    4comments
  8. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    118comments
  9. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    182comments
  10. I don't like passkeys(hawksley.dev ↗)
    561comments
  11. Jemalloc 5.4.0(github.com/jemalloc ↗)
    76comments
  12. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    6comments
  13. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    23comments
  14. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    4comments
  15. The scourge of x86 emulation(fex-emu.com ↗)
    69comments
  16. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    176comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    9comments
  19. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    3comments
  20. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    159comments
  21. BeanShell3 in Development(beanshell.github.io ↗)
    13comments
  22. Replacing Pull Requests with Delta(zed.dev ↗)
    70comments
  23. Qwen 3.8 Omni Flash(qwen.ai ↗)
    118comments
  24. An empirical study of harness design for coding agents(arxiv.org ↗)
    41comments
  25. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    2comments
  26. AI chatbots are becoming experts at changing people's minds(science.org ↗)
    80comments
  27. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    49comments
  28. Systemd is a suite of basic building blocks(systemd.io ↗)
    1comments
  29. How to Write with an LLM(sockpuppet.org ↗)
    198comments
  30. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    62comments

Programming as Theory Building (1985) [pdf]

117 pointsby 7y agopages.cs.wisc.edu
11 comments
7y agoHN ↗

The last paragraph:

    Documentation cannot--and so need
    not--say everything. Its purpose is
    to help the next programmer build an
    accurate theory about the system.
7y agoHN ↗

I keep sending copies of this paper to numerous colleagues. AFAIK almost none of them finished (or even started) reading it. I’m at a loss to explain why, since it is such a deeply insightful paper.

7y agoHN ↗

Yes, but this paper is so important, yet not as well known as it should be, that I feel it is right it resurfaces every few years here.

Everyone involved in software development should read and understand it!

7y agoHN ↗

Often times on HN, people provide links to previous postings merely so others can reference the previous discussions. It's generally not meant to be a call out of bad behavior.

7y agoHN ↗

Strange article - essentially comes down to "If you need to know, ask, because no one understands - or probably even reads - documentation anyway."

It's not obvious how thinking about programming as theory building will help with any part of this. The real problem seems to be poor communication between projects and developer groups, with the implication that any self-guided learning approach can't possibly work because it's impossible to communicate the "why" of code without having someone who does understand it explain it to you.

It's an interesting point, and in some ways explains a lot. But I see no reason to think that "theory building" - which really means teaching domain expertise external to the code - is a practical solution in most projects.

7y agoHN ↗

I really liked the article. I think the idea is fundamental. It sheds light on the value of things like trying to retain staff and allowing them to become experts on a piece of code. It explains why Brook's Law ("adding human resources to a late software project makes it later") is true.

7y agoHN ↗

That seems like a strange summary. A better one:

Everyone builds models about the world around them (Naur used "Theory" instead of "Model" but they're the same here). Not all models are as accurate as others, though they may be sufficient for many situations. The developers of a system (most likely) have the best model of how the system operates and is constructed. Operators have a separate model. Maintainers have a third model. By separating the initial developers, operators, and maintainers, and reducing communication to, primarily, the exchange of programming notation and documentation, three different models (at least) will be produced. Incorrect models lead to incorrect usage and incorrect maintenance activities.

If your programs are short-lived or very simple, this paper is of little utility to you. But if your programs are expected to live for a decade or more, or are very complex, the ideas here are more useful, probably critical to the longterm success of your enterprise.

I work (or have worked) on systems that were developed over 30 years ago. A lot of knowledge has been lost, and a lot of wheels get reinvented. Or components of the system go underutilized, or misused because of misunderstandings of how the system functions and was designed. The more successful projects have had people working on or with them for 10+ years. Without them, program modifications have usually been small (large changes were seen as untenable), complete rewrites (because no one understood it), or failures (long delays, maybe a working product at the end, often with one or more rewrites along the way).

7y agoHN ↗

Thank you for sharing this!

In my opinion, this is spot on and an important insight into programming.

The validity of this view of programming is particularly evident when using a logic programming language like Prolog or Mercury: In this case, the programmers' task is to describe what holds, and the clauses that constitute the program and their semantic consequences are literally the theory of interest.