Re:Choosing Ruby on Rails for web development project in 2019
by bjz_ on Wednesday May 29, 2019 @11:16AM
(#20041147)
The lack of a type system in Elixir is a productivity killer though :(
[ Parent
| on HN ]
Re:Choosing Ruby on Rails for web development project in 2019
by Dangeranger on Wednesday May 29, 2019 @11:29AM
(#20041310)
You can annotate your types if you want and get a lot of editor benefits. Also, I don’t buy the “we need strong types for everything” argument, as optional typing in Clojure, JavaScript, and now Ruby gives you lots of benefits without having to think all the way through the app’s architecture.
Re:Choosing Ruby on Rails for web development project in 2019
by chessturk on Wednesday May 29, 2019 @12:28PM
(#20042213)
Can you give me an example of this? I'm genuinely wondering if I've just dodged a pain point so far.
My other strongest languages are Golang and JavaScript, so I'm used to (duck-)typed and untyped approaches, and I've never felt that Elixir was difficult to work with because of the lack of types. I've treated pattern-matching like type inference, and as long as you have guard clauses, the worst that can happen is a runtime error which you "let fail" anyway.
I guess the guard clauses are a bit of boilerplate, but I feel like these complaints have a different root. I just don't see it yet.
Re:Choosing Ruby on Rails for web development project in 2019
by strzibny on Wednesday May 29, 2019 @01:50PM
(#20043235)
I think combination of type annotations and pattern matching actually works pretty well. Yes, it's not Rust though:)