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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

My First Experience with OCaml

16 点作者 pltvss8 个月前

2 条评论

keyle8 个月前
I think it was a pretty ambitious first project in OCaml, which is vastly different from the languages you came from.<p>I took a similar path years ago and I found your situation akin to mine. The documentation is spotty, full of gaps, particularly for a new comer; although I found some reasonable books that helped &quot;OCaml from the very beginning, 2013&quot; and &quot;Real world OCaml 2nd edition, 2022&quot;.<p>I love OCaml but I don&#x27;t see myself going back to it. I love re-reading old code that has been cleaned up. It reads like perfect design. It&#x27;s satisfying.<p>However I found writing OCaml to be painful, battling the syntax and the LSP. The LSP being actively highlighting everything red due to one typo, because the syntax is this way, and it&#x27;s frustrating... And sure, you can work without LSP support, but it&#x27;s useful than cmd+tabbing 300 times to run the program and watch it crash on typos. The right balance is to turn it off and turn it back on at times.<p>But once finished, and years down the line, re-reading completed OCaml projects is a joy. I&#x27;d like to imagine that it made me a better programmer in other languages; due to the type-system-first approach, and transformation of data through functional programming.
评论 #41611244 未加载
pltvss8 个月前
Added a part about tests as well.
评论 #41606378 未加载