News for hackers. Stuff that matters.
Re:Coding agent in 94 lines of Ruby by elif on Saturday May 17, 2025 @07:30AM (#44013534)
Thank you for showing off why ruby is useful not just in the current year, but particular to the current time and AI situation. When you're dealing with code written with hallucinations, you want an easy to understand quickly language (of which ruby is S tier) where out of place behavior cannot hide in code so repetitive and unnecessary that your mind tries to skip over it.
Re:Coding agent in 94 lines of Ruby by radanskoric on Saturday May 17, 2025 @08:58AM (#44013982)
That's an excellent point.

Code was always read more than written. With AI it shifts even more towards reading so language readability becomes even more important. And Ruby really shines there.

Re:Coding agent in 94 lines of Ruby by dontlaugh on Sunday May 18, 2025 @09:38AM (#44021344)
Ruby, the language famous for lots of difficult to understand runtime “magic”?
Re:Coding agent in 94 lines of Ruby by radanskoric on Sunday May 18, 2025 @11:42AM (#44022173)
It's a sharp knife. You can create a messy nightmare or a clean super readable codebase, it's up to how good the author is.
Re:Coding agent in 94 lines of Ruby by dontlaugh on Sunday May 18, 2025 @02:43PM (#44023461)
So Ruby isn’t actually a good target for stochastic parrots, after all.

You’d want the opposite, a language with automatically checked constraints that is also easy to read.

Re:Coding agent in 94 lines of Ruby by hoipaloi on Monday May 19, 2025 @10:25PM (#44037185)
I'll take ruby, give me the sharp knife, I know what I'm doing...