Elm Europe 2017 - Evan Czaplicki - The life of a file

Channel:Elm Europe · Length:47:01 · Published:2017-08-24 · Views:71892

Watch on YouTube

Summary

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.

Why HN recommends it

Recommended as the argument for code colocation and delaying abstraction.

Just stick everything in the same file until it actually hurts. This presentation[0] gets it right. — HN, 2022

Functional programming · Software architecture & design · Software practice, open source & careers

Subtitles (excerpt)

well welcome everyone I want to start just saying thanks to everyone for coming this is this is kind of crazy um I'm I'm Evan I made Elm and uh uh it's very exciting to be here um so I want to say thanks thanks one thanks for folks uh thanks folks for coming thanks to Tebow and Guillaume for setting things up and then like thanks to everyone who is helping get the technology setup and then like this thank you is like out of proportion right so like thank you to who who had the L have this tail I I I really appreciate that um but yeah so uh thanks everyone for coming and um I want to emphasize sort of a question that uh that I that has sort of guided Elm for the last couple years uh which is how do I grow Elm code and so this is a question that somehow always sounds topical so who remembers Elm before the elm architecture before them okay there are people there are people out there okay um so there was a time when that didn't exist and people would say how do I write a program um and so we sort of observed okay maybe we can call this thing there's a model there's an update of you we saw that pattern and they were like okay that's cool how do I grow a gnome program I was like okay uh so we had some more examples

On Hacker News

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): [VIDEO] — gabigrin, 2024-02
Just stick everything in the same file until it actually hurts. This presentation[0] gets it right. [0]: [VIDEO] — yakshaving_jgt, 2022-02
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) [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. — myaccountonhn, 2025-12
Premature extraction can solidify premature abstractions and create pressure against reabstraction. The creator of Elm has a talk that mentions this: [VIDEO] — hombre_fatal, 2019-02

Related videos