Re:Ruby delights built into the language
by culi on Tuesday December 20, 2022 @07:18PM
(#34074936)
Code like this should definitely not be written in production code bases and is really just a fun exercise. I think everyone would agree that if this had been written in 2 or 3 lines it'd be much more readable (and therefore maintainable)
[ Parent
| on HN ]
Re:Ruby delights built into the language
by phoronixrly on Tuesday December 20, 2022 @07:28PM
(#34075018)
Truly, if this was not meant to be pasted in a REPL, it'd be in a class, and probably constitute of several descriptively named methods.