Live data from Hacker News

Ask HN: Anyone Using Elm in Production?

news.ycombinator.com

1–10 of 74 posts

Re: Ask HN: Anyone Using Elm in Production?

#2
Yes. 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-designed libraries like elm/parser & elm-UI are really terrific.

Re: Ask HN: Anyone Using Elm in Production?

#5
If your question is whether Elm is mature enough for production, the answer is yes. There are some companies out there, but don't let their opinion condition your experience.

Rather than relying on other people's opinion a better experience for you would be to port one sub-component of your existing system to elm and see how it goes from there, while you gain trust and experience in the new system.

Re: Ask HN: Anyone Using Elm in Production?

#9
post #7

I'm curious what Elm offers that cannot be done in TypeScript.

Much stronger type guarantees. TypeScript's strength and weakness is how it fits JavaScript like a glove. Elm is a different language entirely, so it can provide much better soundness. It's also a simpler language than JS / TS. TypeScript, being a superset of JS, has a lot of baggage. Elm is pretty small and conceptually simple. Elm is also a framework, not just a language, so it guides your team into building things in one, consistent way (for better or for worse). Finally, the Elm compiler is very good. It produces small, fast build artifacts. Compare the bundle sizes of Elm with the other competing frameworks here[0].

[0] https://github.com/gothinkster/realworld

Re: Ask HN: Anyone Using Elm in Production?

#10

Yes. 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?
Post reply on HN