Having read a couple weeks ago that autoload
is officially deprecated, Matz discourages use of it. What is to replace it? What should developers do instead? I used it in some command-line gems to save unnecessary loading of libs that may never be used, as well as in JRuby to prevent the same for .jar
files.
I've seen people use the EasyLoad gem, it claims to be a autoload
alternative. It loads based on directory module naming convention.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With