Y
Hacker News
new
|
ask
|
show
|
jobs
by
atmosx
1300 days ago
Ruby 3 supports type signatures:
https://github.com/ruby/rbs
1 comments
Gigachad
1300 days ago
The rails creator DHH has indicated that rails would “absolutely not” be getting type support.
link
gregors
1300 days ago
That's absolutely the correct call for rails.
link
Gigachad
1299 days ago
It's the main reason I see Rails not lasting another decade. All the Rails apps I have been working on become almost unmanageable after 6+ years because keeping things updated on an untyped system is borderline impossible to do safely.
link
atmosx
1299 days ago
There are solutions like sorbet[^1] and sorbet-rails[^2]. Have you tried them?
[^1]:
https://sorbet.org/
[^2]:
https://github.com/chanzuckerberg/sorbet-rails
link
chris12321
1298 days ago
Just because Rails is untyped doesn't mean you can add type definitions to your own code within a rails application.
link