👋 Hello, world!
Written by Ryan on October 4th, 2022
Let's be Mainstream!
In July 2015, Evan Czaplicki gave a presentation called "Let's be Mainstream!". That talk was my first introduction to the Elm programming language. Evan started off by asking the audience (of mostly functional programmers) a question:
“If typed functional programming is so great, how come nobody uses it?”
4 + 4, hit enter, and the number
8 printed to the screen. Getting started with JS is really that easy!
In the top-left corner, he added "ML family" (things like Haskell or OCaml) and explained how despite having a steep learning curve, their users are able to make applications that are easy to refactor and maintain.
Evan suggested that there's an ideal place, somewhere in the top-right corner of the graph, where a language could be both usable and easy to maintain. To represent that ideal spot, Evan drew a little rainbow:
Evan asked the audience another question: how do we get those functional programmers to this happy place? After a brief pause, he revealed that it was a trick question: this goal might not make sense.
Why isn't this Evan's goal? Here's how he explains the problem in his talk:
“If you make a really nice frontend programming language for people, who don't do frontend programming... then uh... ” 🤷
Instead, Evan suggested a different goal: Set out to improve the maintainability for the huge number of folks doing frontend web development. This led to a brand new arrow being drawn on the graph instead:
At its core, Elm is about making reliable apps more accessible to everyone. The goal of Elm Land is to return to the guiding principles that Evan outlined in his talk:
- Gradual learning - Make things welcoming for folks getting started
- Communication - Plainly communicate benefits and tradeoffs with concrete examples
- Culture - Emphasize a welcoming community that builds stuff and shares results
- Usage-driven design - Limit new features to real issues encountered in practice
In terms of JS frameworks, React and Vue.js are still overwhelmingly popular– and for great reason! The ecosystem of tooling around each framework has also evolved to keep pace with developers' needs. Each of these communities have access to great libraries, guides, dev servers, and application frameworks.
For example, the Vue.js community has an application framework called Nuxt.js. Nuxt makes it easy for beginners to get up-and-running with only a few terminal commands. Each new concept in the framework comes with comprehensive guides on how to design components, work with APIs, and handle common frontend challenges like user authentication.
As a newcomer to a JS community, trying to choose a framework can be intimidating. Projects like Nuxt.js do an excellent job of convincing folks they can build awesome stuff!
Elm's wonderful libraries
In addition to the core Elm tooling, the Elm community has created plenty of great tools too! Here's a handful of some of the more popular ones:
- elm-ui - a way to build UIs without CSS
- elm-review - a powerful analysis tool that can lint, refactor, and eliminate unused code
- elm-graphql - a CLI tool that generates GraphQL from Elm code
- elm-spa - a framework for building single page apps
Just like with libraries from the JS ecosystem, each of these tools were built by a separate person. For example, Matt Griffith built elm-ui and Dillon Kearns built elm-graphql completely in isolation from one another. Despite the lack of coordination, both projects still plug in well to any Elm codebase, because they each focused on tackling a specific problem.
If we look at the popular application frameworks from the JS ecosystem, we see that the folks behind Nuxt.js or Next.js are answering a different question: How do I put all these libraries together to build stuff?
In addition to developer tooling, Elm Land offers an opinionated way to build your next web application. This is based on years of building real Elm applications, and inspired by the wonderful tools in the JS ecosystem.
At the time of writing, Elm Land is still in its early stages. The current release,
v0.17.1, only addresses a handful of problems. To make a web framework as useful as something like Nuxt.js– we'll need to build more than "Hello world" or "Talking to the PokeAPI".
So when will Elm Land be ready for
v1.0.0? When we can create GitHub from scratch.
GitHub is a great app to build, because it has plenty of features and real-world problems that need solving. Here are some of the features we will need to make a GitHub clone:
- Creating a new project
- Adding new pages
- Supporting stateful layouts
- Supporting catch-all routes (
- Talking to the GitHub GraphQL API with the
- Building GitHub's design system from scratch with the
- Deploying an app to production
One of the biggest things I'm excited about is creating a welcoming space for the Elm Land community. For folks using Elm Land, I'm hoping that space can emphasize these core values:
- Preferring conversations to code changes
- Building and sharing real projects
- Being friendly, welcoming, and kind!
Let's quickly dive into more details for each of those values!
Preferring conversations to code changes
Many successful open source projects are centered around GitHub. The Elm Land GitHub repo is a great place to find examples, browse source code, and see what's in progress.
Whether it's sharing new feature ideas, giving feedback, or reporting bugs, everything should start with a conversation in the offical Elm Land Discord server.
The community Discord is a dedicated space designed to help folks learn, contribute, and share results with one another. Stop by and say hello!
Building and sharing real projects
Elm Land is about building real things, and so is the official guide!
In each section, we cover building a full project from scratch. At first, the project is just an app that says "Hello, world". As you go, the guide is structured to help you build more advanced projects, and introduce you to features of the framework in context.
I want to foster the "build real things" mindset in the Elm Land community, and encourage everyone to share what they build!
My favorite kind of tweets have always been the ones that show off cool projects built with Elm. If you are excited about your Elm Land application, game, or anything else– be sure to tag @ElmLand_ when you share it. I cannot wait to see the cool stuff that you make!
Being friendly, welcoming, and kind!
Finally, I want to make sure to set clear expectations up front! Currently, the Elm Land team is made up of a few people, working on nights and weekends, building free stuff for the internet.
All the source code, guides, examples, and design docs are publically available on the official repo. You can read or modify anything you'd like for your own personal use, and forks are totally welcome!
Even though the framework is free to use, choosing Elm Land for your next project does not come with free labor. The mental health and personal well-being of all Elm Land community members is my top priority. I love collaborating with wonderful people, and I want them to have a positive experience.
Want to join the project?
Reporting bugs, fixing documentation, adding features, and sharing your experience using Elm Land are all forms of contribution. Hop in the
#welcome channel of the Elm Land Discord server and introduce yourself– I'm excited to meet you!
We're all here to have a good time, build cool stuff, and make friends along the way. Let's be mainstream!