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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Scala or Elixir, What would you recommend me?

14 点作者 sanosuke超过 9 年前
Hi! Which programming language do you recommend me to learn next, Scala or Elixir? I want to be able write concurrent systems. But I also want to be hireable. Thanks.

7 条评论

jnbiche超过 9 年前
While Scala&#x27;s Akka is pretty sweet for concurrent systems, Erlang&#x2F;Elixir puts them all to shame. I think that Elixir and Phoenix will very rapidly assume position #1 for web frameworks, surpassing Node.js and Golang among the cutting edge but practical crowd in the next 1-2 years, and surpassing Ruby and Python among the more conservative crowd in the next 3-4 years. Java may be so entrenched in Entreprise systems that it will never be replaced, but if any ecosystem could do it, it&#x27;s Erlang&#x2F;Elixir.<p>That said, if you want to work with one of these two languages in a job <i>now</i>, Scala is obviously a better bet. But I could see that changing in as soon as 1 year from now.<p>Also, if you plan to mix a lot of computationally expensive stuff with concurrency, then Scala may be worth seriously entertaining regardless of the job situation or popularity, although for that, C&#x2F;++ and ZeroMQ may be the best bet. Based on my limited experience, and what I&#x27;ve read from expert Erlang users, hybrid C&#x2F;Erlang projects tend to eliminate a lot of the concurrency benefits that pure Erlang systems have.<p>But I&#x27;ve been playing around more and more with Phoenix and other Elixir and Erlang projects over the past month, and am pretty amazed at what I&#x27;ve seen. As much as I enjoy FP, I&#x27;m sad that I discounted Erlang for so long because of its lack of static typing (which is unfortunate, but far from being a deal breaker for me now that I&#x27;ve explored Erlang a little more).
weatherlight超过 9 年前
If you want a job right this moment, Scala.<p>If you want to learn about FP, and build things where concurrency wasn&#x27;t an after thought, be happy while doing it, and be a head of the curve when Elixir conquers the world.... Elixir.
jfaucett超过 9 年前
This type of question gets asked a lot on the net and as someone with experience I can say it rarely matters what language you know its what you have built, can build and your architectural skills that matter. The language is just a tool for the task and will vary depending on the task. So ask yourself what you want to build then choose the language, the other way around makes no sense. Its like saying I want to be a carpenter should I learn how to use a hammer or a chainsaw? Only when you know youll be chopping down a tree for wood first can you make a reasonable choice to use a chainsaw.<p>Recruiters might not get this and just ask for knowledge of X or Y but at some point in your interview process theres most likely going to be a lead engineer sitting across from as an influencer on whether to hire you or not, and if hes worth anything hes only going to care about your &quot;building&quot; skills not language X or Y.
评论 #10300175 未加载
eranation超过 9 年前
If you want to be hireable then forget about both learn Ruby or Java, you&#x27;ll get tons of hiring options (depends on where you are and what types of companies you like)<p>Scala will get you more job openings now than Elixir, but less than Java jobs or even Rails&#x2F;Node&#x2F;Django jobs.<p>If you are into big data, then right now the most &quot;hyped&quot; toolset is Apache Spark and it is written in Scala and it does not have an Elixir API (not anytime soon)<p>One last thing, what do you prefer: dynamic typing or static typing? If you prefer dynamic Elixir is going to feel much better than Scala. If static typing is a must for you, Scala is your choice...<p>Also in Scala you get all of Java&#x27;s ecosystem in terms of reusable libraries.<p>Elixir looks great and the Erlang VM is exciting and I know that my next language to play with is going to be Elixir. But this is because I already know Scala pretty well. (My main day job language)
lectrick超过 9 年前
Elixir all the way. The earlier you get in on this wave, the better for you... although it may take a year before the offers start rolling in. Just find whatever work you can now in it or at least pick up the basics. It&#x27;s fun!!
brudgers超过 9 年前
Why not both?
justthistime_超过 9 年前
Language rarely matters, but Scala is were the action is today and probably in the future.<p>Both languages could be considered &quot;add-ons&quot; on top of their runtime, so you have to think about how likely it is that the &quot;base&quot; language gets good enough to slow down adoption significantly.<p>In Scala&#x27;s case it&#x27;s quite unlikely that Java will ever be able to even decrease the gap let alone closing it.<p>Elixir feels a lot like CoffeeScript in that regard.
评论 #10300133 未加载