Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
bzdzb's comments
login
bzdzb
on Oct 9, 2012
|
parent
|
context
[–]
| on:
Ask HN: What did the really successful programmers...
I agree. The alternative as you state is nested conditionals. Yuck! An alternative construct I have seen and used is to wrap code in a do {} unless(0) block and break to a single failure return or complete the block to a single success return.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: