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

I'm a bit confused by the terminology here. I thought "autoloading" referred to deferring the loading of a constant until it is first used (as described in this post[0]). But the author seems to be talking about loading code without an "import/use/require" statement.

Are those two different meanings for "autoloading"? Or do the two go together in Ruby? (As is probably obvious, I'm not a Ruby dev)

[0]: http://www.rubyinside.com/ruby-techniques-revealed-autoload-...



Yeah, there's the autoloading vs. eager loading question of when a constant first triggers loading a code file, but I think in a broader sense autoloading is used to refer to the idea that your code files will just automatically get loaded in a project as long as you use the right naming conventions.




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

Search: