Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slavik81
on March 8, 2017
|
parent
|
context
|
favorite
| on:
Writing good code: how to reduce the cognitive loa...
The former constrains the scope of someFoo to if statement, while the latter does not. Minimizing variable scope is one of the things I find really helps reduce cognitive load, so I'm not sure I'd want to make that replacement.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: