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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Hitchhiker's Guide to Elm

120 点作者 roadbeats将近 7 年前

10 条评论

jxxcarlson将近 7 年前
I&#x27;ve been working on a project, now at <a href="http:&#x2F;&#x2F;www.knode.io" rel="nofollow">http:&#x2F;&#x2F;www.knode.io</a> for quite some time. It went from Rails to an Elixir back end with an Angular 1 frontend, then a brief experiment with an Angular 2 frontend, and finally to an Elm frontend. It is a complex project with JS interop using ports to render (a) mathematical text and (b) Asciidoc. Plus, there is a Latex-to-Html parser-differ-renderer package that I wrote entirely in Elm (2K of code).<p>I couldn&#x27;t be happier with Elm in this project. Many major refactors: instead of the usual white-knuckle experience with prior languages&#x2F;frameworks, it was, like, zen.
tdbgamer将近 7 年前
I really liked Elm a lot, but the issue for me was that composing components is a shit show. You have to add variants to the root Msg type for every single subpage and have it dispatch to the right update&#x2F;view functions.<p>I&#x27;m really excited about a project inspired by Elm called Yew but allows you compose components much more naturally and easily.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;DenisKolodin&#x2F;yew" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DenisKolodin&#x2F;yew</a>
评论 #17127020 未加载
评论 #17127793 未加载
gsvclass将近 7 年前
I built <a href="https:&#x2F;&#x2F;bellpluscat.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bellpluscat.com&#x2F;</a> entirely in Elm. It&#x27;s a database in your browser kinda like a simpler Airtable. It uses Google Drive as it&#x27;s backend.<p>Elm let me a single programmer build this in a couple weeks with no runtime issues even after major refactoring to add new features. It was such a pleasure to work on.
grandinj将近 7 年前
Are the elm overlords still hell bent on &quot;thou shalt program our way or not at all&quot;<p>Because that kind of dogmatism is a complete show stopper for languages that want to be deployed on even medium term projects.
评论 #17126531 未加载
评论 #17126926 未加载
评论 #17126189 未加载
评论 #17126586 未加载
评论 #17127821 未加载
评论 #17126287 未加载
评论 #17126633 未加载
评论 #17126123 未加载
bhnmmhmd将近 7 年前
Great post. I welcome any alternative to HTML+CSS+JS. It&#x27;s time we moved on from these [in my opinion] garbages.
评论 #17126315 未加载
freekh将近 7 年前
Working on an elm project now and a few months in I believe I might see the main wart if elm which is the amount of boilerplate required. I suppose that should shock no one because elm might be many things but feature rich is not one of them. I still like it though. And boilerplate might be easier to read than some bad abstraction. Still it ends up less dry than I would have liked.
werds将近 7 年前
Disappointed that that article did not start with &quot;Don&#x27;t Panic&quot; in large friendly letters.
venuur将近 7 年前
Unfortunately, I am unable to read the article on my phone. The code examples do not render properly. They extend off the left and right sides clipping most of the code. Some sort of word wrap or shrinkage might be better.
hackbinary将近 7 年前
I thought this was going to be about the email client. The that pine is not. :&#x2F;
crispy-jam将近 7 年前
nice@!!!!!