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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: If I only learn one static typed language, which one should I learn?

12 点作者 gtt将近 5 年前
It all depends on what I what to achieve and I think I want is just a safer and faster python.

14 条评论

tmoaad将近 5 年前
I might go against the grain here, but if I&#x27;ve had nothing but pure bliss working in Java.<p>If you&#x27;re just starting out, Head First Java is the way to go. Then expand your knowledge, look at things like Lombok, or go for one of the languages built on the JVM (Kotlin&#x2F;Scala). Want insane performance out of the box? Look at Vert.X. There&#x27;s a library for everything as the language has been around since &#x27;95.
评论 #23623468 未加载
cercatrova将近 5 年前
If you want a safer and faster Python, use Nim. That&#x27;s literally what it was made for.<p>If you want to learn functional programming, learn Rust or Haskell. Rust is more pragmatic and is used more than Haskell, but Haskell has more FP features.<p>I recommend against Go because it&#x27;s not really FP, and it has a lot of language inconsistencies compared to Rust for example.
sloaken将近 5 年前
My go to plan is based on debuggers. So whichever language you can find a GREAT debugger in is the one to go with.<p>Second criteria would be a language which I knew an expert in. There are plenty of good languages, but when you are stuck or need advise, there is nothing like being able to call up your brother and &#x27;discuss&#x27; how you plan to do things.<p>Portability is a nice feature, but with all the available virtual environments, it is less important. Although I must say to be able to occasionally program on my phone, during a boring meeting, would be nice.
yagodragon将近 5 年前
Go is probably the best candidate for a safer and faster python. However, if i had to choose only one statically typed language to learn that would be Java. The language is super popular, the tooling is great. There are tons of learning resources and books. It&#x27;s used by big tech companies(amazon, google etc) for some serious engineering work. It opens up the door to the jvm world where you can also explore languages like kotlin, scala and clojure.
auslegung将近 5 年前
If you’re just wanting a safer and faster Python you probably want Go or Rust. I’m very biased towards Haskell and love it so I’m going to recommend you at least read about its pros&#x2F;cons (don’t get bogged down with syntax or monads yet, just read about what problems it solves).
评论 #23623950 未加载
photawe将近 5 年前
I would recommend C#. It&#x27;s really really amazing, you can do both OOP and FP, and Visual Studio is quite well at handling really large projects.<p>Debugging is also a bliss.
ttymck将近 5 年前
<p><pre><code> answer, err := GetAnswer() if (err != nil) { return &quot;Rust&quot; } </code></pre> (but yes, you probably want Go)
verdverm将近 5 年前
Go<p>There is a poll HN feature if you are curious
JS2Java将近 5 年前
Go or Nim.
bjourne将近 5 年前
Learn C or Java. Those languages will be around forever.
smlckz将近 5 年前
Why no one talking about OCaml?
k0t0n0将近 5 年前
&gt; safer and faster python.<p>ohh, f# or Haskell
mikecoles将近 5 年前
Go for Go.
docflabby将近 5 年前
C++