Elm Europe 2017 - Evan Czaplicki - The life of a file
Why Hacker News recommends it
Recommended as the argument for code colocation and delaying abstraction.
What it is
Elm creator Evan Czaplicki's talk on how a file grows and when to split code up. He argues for keeping code in one file until it hurts and warns against premature extraction.
Recommended by 4 HN commenters across 4 different months, 2019 to 2025.
What Hacker News said
Strong rec yakshaving_jgt · 2022-02 · on “Code colocation is king”
Just stick everything in the same file until it actually hurts. This presentation[0] gets it right. [0]: [this video]
Strong rec gabigrin · 2024-02 · on “Clean your codebase with basic information theory”
Great read, as always! The combination of the Elm reference and "coarsely structure codebases around CPU timelines and dataflow" statement reminded me of this great talk by Evan Czaplicki (Elm creator): [this video]
Recommends hombre_fatal · 2019-02 · on “38% of bugs at Airbnb could have been prevented by using types”
Premature extraction can solidify premature abstractions and create pressure against reabstraction. The creator of Elm has a talk that mentions this: [this video]
Recommends myaccountonhn · 2025-12 · on “Thoughts on Go vs. Rust vs. Zig”
There are a lot of lectures/speeches by the creator of elm and Richard Feldman that talk about how to think "functionally" Here is one about how to structure a project (roughly) [this video] I also think looking at the source code for elm and its website, as well as the elm real world example help a lot.