5 ms·
We also use Elm in 2023, just got the first project to production a few months ago and we absolutely love it. Finally a way to tame the complexity of browser-ru
by cies 3y ago
We also use Elm in 2023, just got the first project to production a few months ago and we absolutely love it. Finally a way to tame the complexity of browser-run-code.
We only use it when there is complexity: when there is just a little progressive enhancement needed on a SSR HTML page we happily use vanilla JS or jQuery (we're looking for a good TS-based jQuery-like solution the fits that bill).
What we like about Elm:
* makes us think about tech design issues early on (you cannot just ignore them)
* its a transformative experience: devs become better at writing any language after having solid Elm experience
* its fast to compile compared to TS+React+Redux+Babel+WebPack+...
* no unhandled runtime errors! (yes it is true, no more errors with Elm)
Just like I find Ruby a very nice language that was hidden in Perl, I see Elm as a very nice language that was hidden in Haskell. Thanks Evan for creating it.
And yes I truly believe Elm is not dead but merely finished to a great extend.
Oh, as a bonus, want to have your mind blown, check out this:
https://www.youtube.com/watch?v=nSrucNcwlA8&t=275s https://www.youtube.com/watch?v=nSrucNcwlA8&t=275s
(when I watch that video I cannot unhear "look at all the boiler plate im not writing" in David Heinemeier Hanson's high pitch voice; referring to the original Ruby on Rails demo)
- the_gastropod 3y ago> no unhandled runtime errors! (yes it is true, no more errors with Elm) I used to work with elm some years ago and my coworkers claimed this as part of their reasoning for choosing elm. Shockingly, we still had runtime errors! Elm helps reduce some type system based runtime errors. But that’s only a subset of exceptions, and it’s not perfect at even catching those. Try this in elm: div [ attribute "@style" "color: green" ] It’ll compile just fine. And crash completely at runtime.
- cies 3y agoWow, it indeed crashes at startup (a very reasonable place to "crash" when you avoid all safety mechanisms and put an @ in an HTML attribute key). There are some fully type safe CSS systems in Elm, but they are 3rd party libs.
- ilrwbwrkhv 3y agoLamdera is closed source and you deploy on their system. It has been forgotten already. Rails is thriving, open source and a beast. I think that is the problem with the Elm community. They are too uptight to do open source properly. They need to listen to some Humble from Kendrick Lamar.
- cies 3y agoI find Lamdera cool from theoretical perspective. > They are too uptight to do open source properly. It's not an "open access innovation project", so they did not get that bit of open source "right". Comparing Lamdera with Rails is near impossible. But one is certainly resulting in less runtime errors!
- ilrwbwrkhv 3y ago> But one is certainly resulting in less runtime errors! In the 5 or so projects which uses Lamdera.
- 1-more 3y ago> And yes I truly believe Elm is not dead but merely finished to a great extend. No less a CS personage than goddamned Donald Knuth uses the decimal expansions of irrational constants to denote that his programs approach "finished" with smaller and smaller changes. Somehow this is fine when he does it but "the language is basically cooked as far as syntax goes" is an unacceptable answer to the Elm decriers. Dogs bark; the caravan goes on. Mazel Tov on launching your thing in production. I wish you a thousand years of success.
- cies 3y agoElm reduces work and makes it a lot easier to work on (refactor) someone else's code. Some people may be threatened by that. Also: many do not like anything they are not accustomed to.