Hacker News new | ask | show | jobs
by ramon156 24 days ago
I would advice reading the "efficient rails" book, which explains a lot about how to debug RoR apps.
1 comments

The fact that you have to read a book and break out a debugger to do the equivalent of "find all" in any other languages should tell you something right?

My experience is exactly the same as Milch's. I've tried to fix stuff in Gitlab but given up when I couldn't even find where it things are defined.

That can happen in other languages, e.g. Rust or C where macros are used. But it's pretty much the exception there whereas in Rails it seems to be done by default.

Exactly. Sure, I can go read a book and learn about Rails. If I wanted to be a Rails specialist I probably would, but I don't want to be a Rails specialist. And like you said, other languages can do this too, but I haven't really found it to be too much of an issue. I remember one time where I had to break out whatever the rustc flag is that just produces the code with expanded macros, but that's it.