Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At least with an explicit import you have something to search for.

I have often spent several minutes trying to find a definition for a ruby method/modules/class only to finally have to run it and dump the file location manually with `source_location` to find out it's really a 3rd party gem added to the project.

Admittedly, Rails makes this much worse.



Let alone other 'magical' techniques Ruby affords, e.g. you can re-open a class to monkey-patch more methods in; or even define method_missing so that the methods an object has are dynamic. Some very neat stuff.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: