Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ruby 2.1: Profiling Ruby. Parent comment
The first line with more explicit precedence is this:
if( params[:user_id].present?) { @owner ||= User.find_by_login(params[:user_id]) }
@owner ||= ( User.find_by_login(params[:user_id]) if params[:user_id].present? )
There are no comments on this comment yet.
The first line with more explicit precedence is this:
The second line is this: In other words, the first version always ran the present? method, while the second version only did so if @owner was false.