Ask HN: Anyone Using Elm in Production?
11–20 of 74 posts
Re: Ask HN: Anyone Using Elm in Production?
#12About nested module, they are not necessary at all. Check "The life of a file" by Evan Czaplicki - create a new file if Model/Update gets too big, there is no need for upfront component partitioning.
Re: Ask HN: Anyone Using Elm in Production?
#13Yes. The deeply nested components thing isn’t an issue at all. You build “components” as stateless views. It’s fundamentally the same as building an application out of all stateless components in redux. Your model (the central state) becomes larger and more complex, but the size of your update function doesn’t expand as much as you’d think. Meanwhile, the benefits from type-safety, pure functions, and extremely well-…
What is meant by "deeply nested components" and why can't you do them in Elm?
Re: Ask HN: Anyone Using Elm in Production?
#14Re: Ask HN: Anyone Using Elm in Production?
#15I'm curious what Elm offers that cannot be done in TypeScript.
Elm is far more opinionated. There is only one framework you can use. The type system is much stronger with no escape hatches. It is impossible to mutate variables. Interfacing to javascript is much harder, and there is only one way to do it, and any results coming back from javascript have to be checked and handled to ensure it is as you expect.
Re: Ask HN: Anyone Using Elm in Production?
#16What exactly does elm offer?
1. An amazingly helpful compiler. The best I've come across for identifying problems, describing them in a meaningful way, and suggesting how to fix.
2. A wonderful synergy between language and architecture. Various others have copied Elm's model-view-update architecture (React, F# SAFE) but as they're libraries, they don't feel quite as well-integrated.
3. An excellent, helpful community.
4. A BDFL in Evan who is focused on considered design and careful evolution over "move fast and break things". Some will (rightly) challenge if this is good: Elm 19 broke a lot in 18. For me personally, I much prefer Elm's thoughtful, well-considered evolution over the volatility in the wider javascript ecosystem
5. Some nice libraries. Elm-ui, for example, provides a different way to do lay out (no CSS). Again that's not for everyone - but useful if you're not a CSS guru.
6. Strong static typing with powerful type inference.
There are definitely downsides. The full-on, no-compromises immutability means there's some overhead in dealing with e.g. http request/responses or js interop. But there's corresponding value in the resulting guarantees in the code.
As a newbie I'm really taken with Elm; it's a refreshingly stable and integrated enclave in the otherwise volatile front end space. YMMV of course
Re: Ask HN: Anyone Using Elm in Production?
#17IBM App with Elm for most of the front-end: https://discourse.elm-lang.org/t/ibm-releases-elm-powered-ap...
[Disclosure: I'm an IBMer - but not involved on this project]
Re: Ask HN: Anyone Using Elm in Production?
#18Most recent example: https://www.pavoq.com a SPA built with Elm and Rust
Re: Ask HN: Anyone Using Elm in Production?
#19Re: Ask HN: Anyone Using Elm in Production?
#20I'm curious what Elm offers that cannot be done in TypeScript.