Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gurkendoktor
on Dec 13, 2012
|
parent
|
context
|
favorite
| on:
Github Ruby Styleguide
Skipping the second assignment if I don't need it is more of an optimisation. The "long form" would be,
first_user = User.find(4) if first_user second_user = User.find(6) if second_user ... end end
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
first_user = User.find(4) if first_user second_user = User.find(6) if second_user ... end end