I Choose Ruby on Rails in the AI Coding Era
In the evolving landscape of AI-assisted coding, Ruby on Rails (Rails) is emerging as a surprisingly strong choice for new projects, challenging the prevalent preference for more modern stacks like TypeScript and React. The framework's convention-over-configuration philosophy plays a crucial role in this shift. AI coding assistants, such as Claude Code and Codex, require time and resources to understand the structure of fragmented JavaScript projects. In contrast, Rails offers a clear and consistent organization, allowing these models to immediately start generating code without the overhead of orientation, leading to significant efficiencies in token usage during development.
This newfound advantage extends beyond organizational clarity; the Ruby language itself facilitates more concise code compared to TypeScript. Implementing features in Ruby can reportedly consume three times fewer tokens than TypeScript in larger projects, translating to substantial cost savings for teams leveraging AI throughout their development cycles. Furthermore, with Rails now empowered by Hotwire for real-time interactions, the argument that modern user interfaces necessitate a JavaScript framework like React is losing ground. As AI takes on a larger role in coding, Rails' rigid structure becomes an asset, enabling smoother and faster integration with AI tools while still delivering complex, data-driven applications effectively.