News for hackers. Stuff that matters.
Re:Autotuner: How to Speed Up Your Rails App by princevegeta89 on Thursday April 25, 2024 @02:05PM (#40160995)
Ruby is incredible. It is still one of the best choices for a platform to build a company or a product quickly with. If it cannot keep up with your scale, throw more hardware at it and it will still be worth it in terms of time and man-hours saved.

I only ever wanted compile-time linting and better autocompletion such as in the case of Elixir LS. Does something like that exist for Ruby now? How is Crystal these days?

Re:Autotuner: How to Speed Up Your Rails App by TobiasBales on Thursday April 25, 2024 @04:42PM (#40162744)
There is ruby-lsp and ruby-lsp-rails. For the former to shine you do need to use sorbet but for any moderate to large sized rails app I'd personally recommend it anyway. Yes it's not perfect, yes it has a learning curve but boy does it make refactoring easier, faster and safer.

ruby-lsp-rails builds on top of that and hands out information on models and routes mostly

Re:Autotuner: How to Speed Up Your Rails App by pqdbr on Thursday April 25, 2024 @06:27PM (#40163864)
Also using ruby-lsp with VS Code and it's been a game-changer.
Re:Autotuner: How to Speed Up Your Rails App by Lio on Friday April 26, 2024 @04:47AM (#40167182)
I'm using ruby-lsp and DAP with NeoVim and I know others using it with emacs so ruby-lsp really is a great boon to the community.
Re:Autotuner: How to Speed Up Your Rails App by Lio on Friday April 26, 2024 @04:45AM (#40167172)
Autocompletion is getting much improved.

In the latest version of IRB for example they can use RBS based static typing for autocompletion[1].

This gives me a lot of hope that we'll have a more widely used static typing solution soon. i.e. some coming together of Sorbet, Steep and RBS.

1. https://github.com/ruby/irb?tab=readme-ov-file#type-based-co...