3 ms·
I haven’t used Elixir but I used Ruby as my main programming language for a few years and my biggest complaint with Ruby syntax is decision fatigue. There’s alm
by philwelch 3y ago
I haven’t used Elixir but I used Ruby as my main programming language for a few years and my biggest complaint with Ruby syntax is decision fatigue. There’s almost never a single clear and obvious way to do something. Overall I find Ruby syntax to prioritize cutesy aesthetics over practicality.
- tokamak-teapot 3y agoIf you use Elixir for a while you may find that there is a lot more consistency, and almost no ‘cutesy’ code around. Elixir’s syntax only looks a little like Ruby at first glance.
- arrowsmith 3y agoYeah, as a seasoned Ruby dev I found the "similarities" between Elixir and Ruby to be surface-level. They're very different languages. Even the syntax isn't that similar once you get past your first impression. But don't listen to me - take it from none other than José Valim, Elixir's creator: > Folks tend to understate the influence of Erlang and overstate the influence of Ruby on Elixir. … Ruby did influence the syntax and the names in the standard library, but the latter was also done in a more "democratic" fashion: I would look into Ruby, JavaScript, Clojure, Haskell, and choose a name that was common and closer reflected the semantics that would fit Elixir (for example, the term "protocol" come from Clojure). https://news.ycombinator.com/item?id=36604054 https://news.ycombinator.com/item?id=36604054
- philwelch 3y agoThat’s encouraging to hear.
- Alifatisk 3y ago> There’s almost never a single clear and obvious way to do something. You hit the nail with this one