Settings

Theme

You Don't Need Types in Ruby

zhisme.com

13 points by zhisme 3 months ago · 7 comments

Reader

dzonga 3 months ago

There's an excellent talk from Ruby conf given by Noel Rapin - https://youtu.be/OM37TfsCyF4?si=HsS9yXNGiTlf5Oo9 about this.

there's so many ways you can enjoy ruby without types.

az09mugen 3 months ago

That's exactly the essence and the power of Ruby. If you want static typing, compilation, performance with Ruby-like syntax just use Crystal https://crystal-lang.org/

mooktakim 3 months ago

Yes absolutely. People forget one of the reasons to use ruby is the beauty of the code. Any typed language is verbose and ugly. I understand other languages are more safe, I'm happy to code unsafe for developer joy.

karmakaze 3 months ago

You also don't need variable names with point-free form, also known as tacit programming. I still prefer to name and type intermediate things.

monarchwadia 3 months ago

And this is why I don't use Ruby.

Lapsa 3 months ago

Sorbet needs type inference and `dynamic` keyword

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection