3 ms·
Elixir. While Rust and Go get way more exposure lately, they're mostly designed for systems programming. Many more of us do web development, and it's really ama
by skrebbel 12y ago
Elixir. While Rust and Go get way more exposure lately, they're mostly designed for systems programming. Many more of us do web development, and it's really amazing how fast Elixir has become a very cool and mature environment for developing great web apps.
Elixir is a really cool language, and also a great way to learn functional programming. But more than that, it gets all the non-languagy stuff right. The build system is amazing, your code hot-reloads out of the box, dependency management is very well done (source-only, git-friendly, project-local, etc), the community is very friendly and going fast.
And code scales by default. I might exaggerate here, but sometimes it feels like need to really try to write code that's hard to spread across servers. If you consider it's non-trivial to even use all your CPU cores on Node.js, the Erlang VM will blow your mind.
- Kiro 12y agoI'm a web developer currently learning Haskell. Would you recommend learning Elixir instead?
- verroq 12y agoAs someone that hasn't heard of Eilxir before but has done a bit of Haskell. Haskell is mind expanding on it's own right.
- christensen_emc 12y agoFor me, learning Haskell was a supremely educational experience. There is no better way to learn functional programming techniques and you will not regret learning it. That said I can count the number of times I've used Haskell in a non trivial application on one hand. Elixir lets me use a lot of the stuff I learned with Haskell, and I've already used it building a real time component for an app I'm working on. Take from that what you will.
- skrebbel 12y agoNo. You waste time if you half-learn something and then hop to the next hot thing again. Haskell is awesome too. Do know that conceptually, Elixir and Haskell are pretty far apart. They're both functional, but that's about it. Elixir is dynamically typed, Haskell very much not so. It's a whole different approach to programming; where in Haskell, you'd "let the types guide you", in Elixir you simply can't do that. Elixir is much closer to Lisps in that regard.
- bwilliams 12y agoI'm somewhat in the same position and I'm learning both. Haskell is great for learning new programming concepts like monads, applicative, and every other crazy thing Haskell programmers love. It also helps you think and get used to the concept of pure and unpure functions which definitely expands into other languages in a positive way. Elixir on the other hand gives you a great development environment by default with ExUnit for testing, the Mix build tool, hex.pm packages, a tempting library, and more. All of the tools feel mature as well. Immutability with rebinding is great, concurrency is made simple compared to some other languages, and it also has the entire Erlang ecosystem of libraries to work with. It's definitely easier to write Elixir, but I wouldn't say better. They're both great languages, just different.
- codygman 12y agoI'm using snap in a freelance project right now. Haskell is also great for web development, keep at it!
- juliangregorian 12y agoI know what you're saying with respect to Elixir's distributed programming features (it seriously is great) but it's not that hard to use CPUs in Node: http://nodejs.org/api/cluster.html#cluster_cluster http://nodejs.org/api/cluster.html#cluster_cluster
- wildmXranat 12y agoI guess a lot of the benefits listed are a result of erlang vm.