TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to use Elm at work

201 pointsby zalmoxesalmost 9 years ago

10 comments

the_dukealmost 9 years ago
For those unfamiliar with elm:<p>I would sum it up as:<p>-) a stripped down, simplified version of Haskell<p>-) with a good concept for side effects<p>-) that compiles to Javascript<p>-) gearded towards writing type safe frontend code for the Browser<p>-) strongly nudging you towards a clean, well architected app structure (see &#x27;the Elm Architecture&#x27;).<p>I think it&#x27;s on the tipping point right now:<p>if enough people jump on board, the language get&#x27;s good documentation, and the library ecosystem grows, I see a great future for Elm.<p>Otherwise, it will dwindle away soon into the endless annals of forgotten languages.
评论 #12073776 未加载
评论 #12073622 未加载
评论 #12075716 未加载
评论 #12074898 未加载
the_dukealmost 9 years ago
The docs &#x2F; language manual is emberassingly sparse right now.<p>The Elm dev(s?) really need to fix the Architecture Tutorial and write a proper language handbook.<p>Right now, the bad docs are pretty off-putting to someone coming to the language.<p>It&#x27;s a shame, really, because I think Elm is great.
评论 #12073029 未加载
评论 #12075643 未加载
评论 #12074260 未加载
srpabloalmost 9 years ago
While I love Elm, after the recent release that replaced Signals, it&#x27;s going to take a long time for me to bet anything with money on it. My toy app didn&#x27;t have many dependencies, but when <i>so much</i> breaks on upgrading the runtime it&#x27;s a hard sell.<p>(Not to disparage the change or the work behind it! I think it was the right call, and again, love the language and community. Just expressing, after the last experience, that I&#x27;ll wait until 1.0 since the language is still undergoing drastic changes)
meddlepalalmost 9 years ago
Isn&#x27;t this basically the same strategy every challenger technology takes to replacing an incumbent one? The problem is your organization has to be willing to bet on Elm as a tool. What does the org do if you leave, get sick, or are terminated? In many ways choosing niche technologies with esoteric syntax or paradigms is like holding your organization hostage IMO.<p>Now does that mean nobody should ever choose a new language or other tool? No, but the cost of adoption needs to be evaluated. I use Kotlin where I work right now and I had to address the same questions initially. The argument for Kotlin was that it&#x27;s not that different than Java and most good Java developers can pick it up easily OR Scala developers (though they might do that begrudgingly...).
_Codemonkeyismalmost 9 years ago
I still always think &quot;Why don&#x27;t they use mutt?&quot; when a headline features elm.
评论 #12075462 未加载
评论 #12075516 未加载
rattrayalmost 9 years ago
Shocked to see no mention of PureScript [0] on this thread, which is also a Haskell-like language that compiles to JavaScript.<p>PureScript has the notable advantages of generating mostly-readable JavaScript and working in node. [1]<p>[0] - <a href="http:&#x2F;&#x2F;www.purescript.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.purescript.org&#x2F;</a> [1] – <a href="http:&#x2F;&#x2F;try.purescript.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;try.purescript.org&#x2F;</a> – click &quot;Show JS Output&quot;
评论 #12076758 未加载
fiatjafalmost 9 years ago
By Elm you mean that language that changes all its core functionalities[1] every day? I&#x27;ve tried it some months ago, now when I was about to try it again in a new project, I discovered everything I had learn is useless.<p>[1]: <a href="http:&#x2F;&#x2F;elm-lang.org&#x2F;blog&#x2F;farewell-to-frp" rel="nofollow">http:&#x2F;&#x2F;elm-lang.org&#x2F;blog&#x2F;farewell-to-frp</a>
评论 #12076355 未加载
innocentoldguyalmost 9 years ago
I&#x27;ve never been a fan of doing front-end web programming because of my distaste for Javascript. Elm solved that problem for me. I like the syntax, type checking, and I&#x27;ve never had any code that passed the Elm compiler error out on me in production.<p>I also like the functional programming aspect of Elm, and the syntax is quite nice (similar to Haskell, only smaller and easier to learn).<p>I found this site useful for getting started with Elm 0.17: <a href="https:&#x2F;&#x2F;www.gitbook.com&#x2F;book&#x2F;evancz&#x2F;an-introduction-to-elm&#x2F;details" rel="nofollow">https:&#x2F;&#x2F;www.gitbook.com&#x2F;book&#x2F;evancz&#x2F;an-introduction-to-elm&#x2F;d...</a>
mkawiaalmost 9 years ago
I wish there was a way&#x2F;documentation to embed in a vanilla js app ,like with IIFE or something instead of required the whole &lt;div id=&quot;app&quot;&gt;&lt;&#x2F;div&gt;
sotojuanalmost 9 years ago
Is it me or is the bundle generated by Elm a bit too big? Maybe it&#x27;s gotten better lately but I&#x27;ve always thought it overkill for simple apps.
评论 #12074349 未加载
评论 #12074144 未加载
评论 #12075034 未加载