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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

SVGs as Elm Code

77 点作者 webwielder2超过 2 年前

4 条评论

carapace超过 2 年前
If you haven&#x27;t already, do also have a look at Scott Wlaschin&#x27;s talk &quot;Domain Modeling Made Functional with the F# Type System&quot; (it seems he has a whole book out on it now too) <a href="https:&#x2F;&#x2F;fsharpforfunandprofit.com&#x2F;ddd&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fsharpforfunandprofit.com&#x2F;ddd&#x2F;</a> (F# and Elm are similar enough that the concepts map directly.)<p>I&#x27;ve been challenging folks for a while now: What&#x27;s the <i>economic</i> argument for using JS in a world where Elm exists?<p>In other words, if you want a front-end app, and you do not care about the technology used to make it (you&#x27;re not using a particular stack just because you like it) then you should pretty much just use Elm, eh?<p>If I&#x27;m some business owner who wants a web app that works reliably and is cheap to maintain, I don&#x27;t know or care about the underlying tech stack, it seems like Elm is sooooooo much better than all the JS frameworks and &quot;ecosystem&quot; in terms of the metrics I care about.<p>Typical objections:<p>1) JS devs are easier to find.<p>I would never hire a programmer who can learn and use JS but refuses to learn and use Elm. That&#x27;s a <i>technician</i> not a programmer.<p>It&#x27;s easy to train non-programmers to use Elm. (If you can solve Sudoku you can learn to program.)<p>2) Elm doesn&#x27;t integrate with some library or service.<p>That&#x27;s an argument for wrapping that lib&#x2F;service in an Elm module, not against using Elm entirely. (E.g. in Rust you sometimes must use <i>unsafe</i> code but we do not give up the borrow checker entirely.)<p>3) Evan is mean.<p>I do not care.<p>4) I can&#x27;t control the Elm compiler development.<p>Elm is simple, write your own compiler.<p>- - - -<p>I&#x27;ve heard that there&#x27;s work on an Elm-to-native app compiler... Neat.
评论 #33455782 未加载
评论 #33456949 未加载
评论 #33457451 未加载
评论 #33456460 未加载
评论 #33470023 未加载
评论 #33456127 未加载
评论 #33455887 未加载
评论 #33456376 未加载
culi超过 2 年前
I&#x27;m looking to work on implementing a simple hex-based puzzle game I used to play a lot as a web app so I recently tried to do some investigating of what libraries might exist out there for this<p>I landed on Elm and the library that convinced me was seeing this demo for the elm library so seamlessly use SVGs:<p><a href="https:&#x2F;&#x2F;www.danneu.com&#x2F;elm-hex-grid&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.danneu.com&#x2F;elm-hex-grid&#x2F;</a>
protomikron超过 2 年前
So, how&#x27;s the state of Elm?<p>I am familiar with all the social media drama on Elm - are serious things missing, or is it possible to write competitive software (you may define that as you wish) and using the web elements FFI, if things are missing?
评论 #33458150 未加载
评论 #33459811 未加载
davidjfelix超过 2 年前
IMHO prefix commas is fixing one mistake with another mistake. Enforce trailing commas.
评论 #33456483 未加载
评论 #33455886 未加载
评论 #33457081 未加载
评论 #33455871 未加载