Require means "load this right now". autoload means "load this when you need to use it". well, why not just use autoload for everything? Why load anything before it's absolutely needed? One reason is that autoload only works for constants.

yyamanoyyamano のブックマーク 2012/02/04 04:20

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Why are autoload, load_all! and require all used in active_support.rb?

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう