When to use "load" rather than "require" in Ruby? -
i understand require
loads file once, while load
loads every time called.
it looks using require
preferable in situations.
my question is, when use load
rather require
?
if need force reload (a common example web server or test server). should use autoload when there reasonable chance piece of code won't hit, or want address app load time issues. should use require @ other times.
Comments
Post a Comment