TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to use Elm at work

201 点作者 zalmoxes将近 9 年前

10 条评论

the_duke将近 9 年前
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_duke将近 9 年前
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 未加载
srpablo将近 9 年前
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)
meddlepal将近 9 年前
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...).
_Codemonkeyism将近 9 年前
I still always think &quot;Why don&#x27;t they use mutt?&quot; when a headline features elm.
评论 #12075462 未加载
评论 #12075516 未加载
rattray将近 9 年前
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 未加载
fiatjaf将近 9 年前
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 未加载
innocentoldguy将近 9 年前
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>
mkawia将近 9 年前
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;
sotojuan将近 9 年前
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 未加载