Comment by vidarh

Comment by vidarh a day ago

1 reply

If debugging is hard to you in Ruby because of monkey patching, it's an issue of not knowing the debugging tools. Attach pry or Ruby debug, and show the source location of a method, or log them. This isn't surprising - debugging Ruby is different to debugging most static languages, and more tutorials on how to do this well would be nice...

Also the use of monkey patching in Ruby peaked something like a decade and half ago. Outside of Rails, it's generally frowned on and introducing new methods is usually addressed by opting in by including modules these days.

ukprogrammer a day ago

Agreed, it still absolutely astounds me the number of developers out there that do not use a debugger as an essential part of their toolkit.