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
(excusing my Perl-Ruby mashup)
if (params[:user_id].present){ if (!@owner){ @owner = User.find_by_login(params[:user_id]); } }
if (!@owner){ if (params[:user_id].present){ @owner = User.find_by_login(params[:user_id]); } }
There are no comments on this comment yet.
(excusing my Perl-Ruby mashup)
to: Now the call params[:user_id].present is only made if @owner lacks a value.