← Back to context

Comment by rapind

6 hours ago

> Rails is so into agentic coding that they publish benchmarks of how effective different models are for building with rails

To each their own, but I think using Rails in the era of agents is probably a mistake. It has 2 big problems IMO.

(a) A ton of footguns that an agent can and will miss on occasion, and as we manually review less and less code, we will also miss it, and

(b) security on the web has become increasingly important due to hostile AI agents, and while rails has great secure conventions (see (a)), it's still easier to screw up something and not catch it until after it's deployed because there are simply less guardrails in place (dynamic types, no compile, slow tests, generally bad performance profile).

Rails dev here, still using it, still plan on using it, use agents, don't see them making food gun decisions with rails apis just code.

Rails comes with the console by default, so production inspection of a bug is something the ai can do without a ton of bs to be set up, and that console can be forced to be auditable (using standard gems) or read only (using flags).

I used to love rust, still do sorta, but yeah I think this is really not a good argument against a tool that operationally is better at most things at being observed or poked or prodded or tested in production

Not sure if you’re speaking from experience or just being theoretical here. We’re using Rails and it’s been great. Maintenance and upgrades have been a breeze.

All this static vs dynamic stuff doesn’t really matter anymore. AI doesn’t care. You just need to close the feedback loop with tests, linting, a compiler, or whatever else gives it a clear signal.

Simple as that.

What languages are best suited for development with agentic coding?

  • Rust is used a lot. Elixir/Phoenix comes up often. You’re looking for something statically typed with string guarantees and as FP as possible to make unit testing easier.

    • Rust for sure. Builds become a problem eventually though. Elixir is much more interesting now that they added types (I think they're doing more with this still?). I quite like Gleam from a human (non-agent) perspective.

    • I've been using Rust more and more for specific tasks in my Elixir saas app, the two play really well together.

  • the only substantive difference I've noticed is between languages with a proof system and those without, where with a proof system is orders of magnitude better for agentic work.

  • In my experience, Go. It was designed to be idiot-proof. It's very verbose, not very expressive, compiles fast for quick feedback loops, strict autoformatter, plenty of examples in models' training data.