The Future of Ruby and Rails in the Age of AI
obie.medium.com
obie.medium.com
Obie also mentions my company's product Blueprints. Blueprints allows you to capture existing, known-good patterns in your code base, and then use them as a base for an LLM to generate variations from. We've got editor plugins for the major editors and we're also starting to roll out downloadable packages like this DaisyUI-styled Phlex component one: https://blueprints.sublayer.com/packages/phlex-daisyui
Happy to answer any questions about it!
These are exactly the reasons why ruby will not be the future of programming. Do you think AIs are going to write code in dynamic languages? They would have to search the entire space of possible programs that includes infinite syntactically incorrect programs whereas if they used a statically typed language they could be hooked into the language server and each token that is generated will only come from the space of syntactically correct programs.
That’s not really how AIs work, at least not the LLMs of today. They aren’t operating on a search space, and they aren’t following or explicitly constrained by any defined rules of grammar (programming or English or otherwise). It’s “just” probabilistic next token generation, it doesn’t care if your language is typed or not.
AI seems like the last nail in the coffin for an easy, slow-evolving, highly standardized ecosystem like Rails'.
In short, using Rails was already pretty easy pre-AI, now it's just too easy. That might be nice for misc purposes like prototyping something, or teaching people how to make webapps, but for all other purposes it makes us disposable peons.
Even in better times than 2022-24, I expect Rails salaries not to grow particularly. I don't expect it to die either - probably it will be not unlike PHP: easy, pretty nice, but ultimately a voluntary choice to have a lower salary.
I thank Ruby/Rails for various aspects that have made my career better, but it's wiser to move on to something more niche and that doesn't pretend we're still living in 2008.