3 ms·
There are multiple ways to do things in many languages. And Ruby is a rather sane one. The worst language in that regard is Scala by far. There are the "Scala
by LordHeini 6y ago
There are multiple ways to do things in many languages. And Ruby is a rather sane one.
The worst language in that regard is Scala by far.
There are the "Scala is Haskell" people where everything is a pure function and written in point free style.
There are the ones who think Scala is just Java with type inference.
And the everything needs to be a DSL people.
Or everything needs to be implicit and generic in a static singleton.
There are a bazillion ways to write the most trivial stuff. Use for comprehensions, recursion, higher order functions, or your usual for each loop. If you hate your coworker use some fancy type system trickery. Does not matter pick and choose.
Ruby is mostly confined compared to many similar languages like Python.
I would say that even JavaScript is way more chaotic in that regard.