Hacker News new | ask | show | jobs
by culi 1283 days ago
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)
1 comments

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.