News for hackers. Stuff that matters.
Re:A no-go fantasy: writing Go in Ruby with Ruby Next by specialp on Wednesday November 10, 2021 @10:08AM (#29175378)
It is both one of Ruby's greatest strengths and weakness. I found that metaprogramming was overused in Ruby with an obsession for clean syntax. This then made many projects very hard to debug, and many runtime errors that have traces like "in method_missing at line 68". Like you can't even grep where the code is being called or what was being called.
Re:A no-go fantasy: writing Go in Ruby with Ruby Next by tmm84 on Wednesday November 10, 2021 @08:57PM (#29183592)
This has been my personal frustration with Ruby projects. Basic Ruby is easy to understand but metaprogrammed Ruby requires mastery of the Ruby REPL and a mental model to see where something could be going wrong. Save a few lines for an implementation but spend hours trying to modify/debug it.