4 ms·
> I can see a name and match that to an import and match that to a package. I like this too, but... I don't find dynamic languages to be very explicit. Given
by rgoulter 5y ago
> I can see a name and match that to an import and match that to a package.
I like this too, but... I don't find dynamic languages to be very explicit.
Given that Python is a dynamic language, I only going to know what I can do with (or what is true about) the arguments to some function if I have worked with the codebase previously (or have sufficiently good documentation, and unit test coverage).
- horsawlarway 5y agoAt 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.
- rgoulter 5y agoLet 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.