The technique of caching instance variables has a specific “academic” name but I can’t remember it. Please help me out.
def current_user
@current_user ||= User.find(session[:user_id])
end
Marshaling is called Marshalling.
Lazy loading is called lazy loading.
The described technique is called … ?
Memoization. http://en.wikipedia.org/wiki/Memoization