Does This PR Lower the Energy State? - Dag Brattli - NDC Oslo 2026

Does This PR Lower the Energy State? - Dag Brattli - NDC Oslo 2026

🎙 Dag Brattli 👥 230K 📅 October 13, 2026 ⏱ 55 min 👁 25 📄 expert opinion 🧭 2026-10-13
Available in: English (current) Français

Keywords

energy stateentropycomplexitytypesarchitecture

Summary

The talk, presented by Dag Brattli at NDC Oslo 2026, introduces the ‘Energy State Principle’, a metaphor that applies thermodynamic concepts such as entropy and energy to software architecture. Brattli argues that codebases naturally decay into high-entropy states (like ‘big balls of mud’), and that good architectural decisions should reduce the ‘cognitive energy’ required to understand and modify the system. He explores how entropy increases when information is lost, why refactoring recovers lost information at a cost, and how types and domain modeling reduce the state space. He contrasts several measures of complexity, including cyclomatic and cognitive complexity, and emphasizes the dangers of premature abstraction and primitive obsession. The talk also covers the importance of healthy boundaries, the role of validation vs. parsing, and the need to keep knowledge close to the code through comments and naming. The central question—‘Does this PR lower the energy state?’—is proposed as a criterion for code review and architectural planning.

156 words

Critical Evaluation

Value of the Information & Strength of the Argument

The value of this talk lies in its novel perspective that applies physics to software engineering, providing a memorable and intuitive framework. The argumentation is built incrementally: starting with the coffee cup example to introduce entropy, then extending to software entropy, and finally offering concrete practices like using domain types and avoiding util piles. The speaker supports his claims with personal experience and references to established concepts (e.g., cyclomatic complexity, Sandy Metz’s advice on duplication). However, the framework is largely metaphorical and not empirically tested; the reasoning is plausible but not rigorous in a scientific sense. The talk excels at making abstract ideas tangible and actionable for developers.

Scientific Rigor, Source Quality, Title Accuracy

The talk does not cite formal research papers or external studies; it relies on the speaker’s 30 years of experience and widely known concepts. The only explicit references are the NDC conference links in the description, which are not content sources. The quality of sources is thus low to moderate, but the talk compensates with coherent arguments and practical examples. The title is well-aligned with the content, as it encapsulates the core principle and directly guides the viewer’s expectation. No comments were provided, so public feedback trends cannot be analyzed.

213 words

Title / Content Match

The title directly reflects the central question the talk addresses: evaluating PRs by whether they lower the energy state of the codebase. The content consistently returns to this principle.

Quality & Reliability

6/10

The talk presents a novel conceptual framework (Energy State Principle) applying thermodynamic ideas to software architecture. While grounded in established concepts like entropy and cyclomatic complexity, the core ideas are the speaker's opinion and lack empirical validation. The reasoning is coherent and draws on practical experience, but the lack of external references or data limits its reliability.

Key Moments

Cited Sources

  • NDC Conferences — Referenced as the organizer and source for upcoming events.
  • NDC Oslo — Referenced as the specific conference where the talk was recorded.

External References

Contribution & Novelties

The talk introduces the ‘Energy State Principle’ as a novel evaluative lens for software architecture, applying thermodynamic concepts like entropy and energy to codebase quality. It reframes common practices—such as static typing, domain modeling, and avoiding utils—as natural responses to entropy. The analogy is original in its comprehensiveness and practical applicability.

Pour aller plus loin :

  • Entropy (Wikipedia) — Background on the physical concept from which the metaphor is drawn.
  • Cyclomatic complexity — A metric referenced in the talk; further details on its computation and use.
  • Big Ball of Mud — Concept of software entropy leading to unstructured code, directly relevant to the talk’s themes.
  • Domain-driven design — Closely related to the talk’s emphasis on domain types and boundaries.

119 words

Radar Profile

The radar chart likely shows high scores in information quantity and quality, reflecting the dense and well-structured content, with moderate technical depth and reliability, consistent with an opinion-based yet insightful conference talk.

Reliability 6/10