Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
require
autoload
load
http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-require
http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-autoload
http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-auto
Matz (2011) "discourage the use of autoload"

”

[...] autoload itself has fundamental flaw under
multi-thread environment....
What I think after some research...

”

Peter Cooper: I'll be taking the "cross that bridge
when I get to it" approach
htt...
Ruby's require, autoload and load methods
Ruby's require, autoload and load methods
Ruby's require, autoload and load methods
Ruby's require, autoload and load methods
Ruby's require, autoload and load methods
Upcoming SlideShare
Loading in …5
×

Ruby's require, autoload and load methods

Autoload is a nice feature, but it's good to know the difference when you begin using multiple files in your projects.

  • Be the first to comment

Ruby's require, autoload and load methods

  1. 1. require autoload load
  2. 2. http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-require
  3. 3. http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-autoload
  4. 4. http://ruby-doc.org/core-2.1.0/Kernel.html#method-i-auto
  5. 5. Matz (2011) "discourage the use of autoload" ” [...] autoload itself has fundamental flaw under multi-thread environment. I should have remove autoload when I added threads to the language. [...] I hereby declare the future deprecation of autoload. Ruby will keep autoload for a while, since 2.0 should keep compatibility to 1.9. But you don't expect it will survive further future, e.g. 3.0. I strongly discourage the use of autoload in any standard libraries. https://www.ruby-forum.com/topic/3036681 https://bugs.ruby-lang.org/issues/5653
  6. 6. What I think after some research... ” Peter Cooper: I'll be taking the "cross that bridge when I get to it" approach http://www.rubyinside.com/ruby-techniques-revealed-autoload-1652.html I‘m full of autoload because the lazy loading feature is awesome...

    Be the first to comment

    Login to see the comments

  • googya

    Aug. 8, 2014

Autoload is a nice feature, but it's good to know the difference when you begin using multiple files in your projects.

Views

Total views

2,398

On Slideshare

0

From embeds

0

Number of embeds

5

Actions

Downloads

11

Shares

0

Comments

0

Likes

1

×