Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 234 words in the discussion.

Trending Topics

#orms#rails#benefit#abstractions#sql#css#means#needs#typing#javascript

Discussion (6 Comments)Read Original on HackerNews

andrewstuartabout 2 hours ago
AI needs typing.

Also AI does not benefit from abstractions such as ORMs - you are far better to have your AI write SQL.

That goes for all abstractions including CSS JavaScript and everything else Rails has wrapped.

Golang with raw SQL CSS JavaScript works really well cause it avoids many abstractions and affordances that Rails makes to humanize programming.

earthnailabout 1 hour ago
Rails no longer wraps CSS or JS.

And it can benefit from ORMs, because it means less tokens.

The biggest advantage of Rails is convention over configuration. Standardisation means AI is trained on lots of standardised codebases. So that still pays in AI land. The question to me is whether that’s such a big upside that it gives a real edge. Not sure on that; Python has way more code overall.

bbaron63about 2 hours ago
I don't see why using AI with ORMs has no benefits. The AI could be useful in analyzing the SQL that is generated by the ORM to advise and surface potential performance bottlenecks. The AI could advise whether using lazy or eager strategies should be used.
lucisferreabout 2 hours ago
AI needs typing? Why? That seems counterintuitive to me.

I agree on ORMs, but that would apply with or without AI for me personally. ORMs and ActiveRecord are an obvious and well documented anti-pattern at this point in time.

zbentleyabout 1 hour ago
AI can benefit significantly from type checking. This provides a minimal-setup-required feedback loop that it can use to address errors. User defined types are also a greppable “what do I need to look at in this codebase to implement feature X?” signal, and serve as a means of hinting what you want the AI to change without writing code (stub out some functions and/or refer to new nonexistent types rather than writing prose for some parts of your spec).
chrisjjabout 1 hour ago
> The One Person Framework

AI ate your hyphen?