DEV Community

Luke Westby
Luke Westby

Posted on • Updated on

Why Ellie Will Not Support Multiple Files

Ellie, the Elm Live Editor, lets you use the Elm platform in your browser. I released it in February of 2017 as a way to make it easier for the Elm community to share code. Despite it's popularity within the still small and growing Elm community it remains a side project so I need to be judicious about how I spend my time working on it. Its popularity also portends its importance to the community and I believe that comes with a responsibility to develop it in a way that meets the needs of the community.

Ellie isn't just a tool for sharing Elm code; it's becoming a centerpiece for online, interactive discussion of Elm. I get a push notification whenever someone shares an Ellie link in the Elm Slack. A typical weekday includes at least one conversation where participants share Ellie links back-and-forth to help someone arrive at a better understanding of an Elm concept. At Oslo Elm Day this year I claimed that in order to write good software we need to understand how people use it. Several months later at Elm Conf US I shared that conclusion about Ellie specifically: Ellie enables conversations about Elm.

This discovered identity guides Ellie's mission and will inform all of my decisions about features and UX going forward. This led to the planned addition of real-time collaboration. It may also lead to the addition of more ways to personalize the Ellie UI, including the addition of more familiar editor keymaps like Emacs and a light color theme. Beyond positive additions, though, it also informs the decision not to include certain features even in the face of user requests.

Of course I'm talking about including multiple files in an Ellie project. This is among the most requested features. But, like Elm itself, the development of Ellie is not driven by direct democracy. I don't believe that allowing the inclusion of multiple files meets the criterion of enabling better conversations about Elm online.

Here's why: if you ask me a question about a specific concept under a broad topic, you probably won't appreciate it if I send you a link to a 4000 word Medium post. That would end the conversation! I want to respond with brevity so that you can consider what I said and build on it so we can keep moving. A chat application is a much better analogy for understanding Ellie's primary use case. In both cases you can type as much as you want, but the medium encourages you to be brief because you are in a dialogue.

I've heard a counterpoint that some concepts can't even be explained briefly in Ellie because they depend on having multiple files. Examples include the Elm module system itself and opaque types. My response to this is is just that the number of concepts in this category is pretty small and I'd rather Ellie be unusable in this small set of cases than split the focus of Ellie between concise conversation and large projects, making it worse at both.

Perhaps someone else will build software that allows people to build and run large Elm examples online. It may even one day be a project related to Ellie, just as CodePen introduced CodePen Projects. However, the core focus of Ellie is conversation and optimizing for that is more important to me than making it a catchall for every code-sharing need.

Top comments (6)

Collapse
 
ben profile image
Ben Halpern

Damnnn Ellie looks cool. Thanks for this. And great work sticking to your vision. It's an important part of software development.

Collapse
 
lukewestby profile image
Luke Westby

thanks ben!

Collapse
 
attilavm profile image
Attila Molnar • Edited

I've just began Elm programming, and it was surprising how powerful online editor is for the proposal of the community, considering that Elm is a very young language.

I love explore new concepts in small self-contained examples online, the only thing what I miss is my confy Emacs :)

Thank you for your life-saving project.

Collapse
 
layumba profile image
Enrico

Well, firstly, thanks for the fantastic tool. About the topic of this post, I would question your statement that "I don't believe that allowing the inclusion of multiple files meets the criterion of enabling better conversations about Elm online." Specifically, you may want to give an example to someone about how to better design your application by using, say, opaque types. Or how some logic may best be separated in a specific module, or how to decide which functions should be exposed, etc. The code may be simple and short, but there's no good way to show this with a single file.

Collapse
 
lukewestby profile image
Luke Westby • Edited

I addressed your comment directly in the post just 1 paragraph later:

I've heard a counterpoint that some concepts can't even be explained briefly in Ellie because they depend on having multiple files. Examples include the Elm module system itself and opaque types. My response to this is is just that the number of concepts in this category is pretty small and I'd rather Ellie be unusable in this small set of cases than split the focus of Ellie between concise conversation and large projects, making it worse at both.

Collapse
 
rickydelaveaga profile image
Ricky de Laveaga

There are some Elm examples on Glitch, which does support multiple files glitch.com/search?q=elm-