News for hackers. Stuff that matters.
Re:Ruby delights built into the language by n0tth3dro1ds on Tuesday December 20, 2022 @07:59PM (#34075318)
So you have to add code to debug it with #tap? I don’t care if the chain is unbroken: you have to CHANGE THE CODE YOU SHIPPED in order to properly debug it. That’s idiotic. And before you say “oh, this is just an exercise”, I can tell you from personal experience that I encounter this endlessly in prod code with both Python and Kotlin chained functional style garbage. It is often not debuggable without break-up and unrolling.
Re:Ruby delights built into the language by aiwv on Tuesday December 20, 2022 @08:36PM (#34075583)
> you have to CHANGE THE CODE YOU SHIPPED in order to properly debug it

If I'm at the point where I need to debug a production process with breakpoints, I'd rather just find a new job than worry about my coworker's coding style.