Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Havoc
53 days ago
|
parent
|
context
|
favorite
| on:
John Carmack on mutable variables
Good point. Had never occurred to me that keeping steps help debug. Obvious in hindsight
Sammi
53 days ago
[–]
For the same reason almost all my functions end with this:
const result = ... ; return result;
I know debuggers can show return values, but that doesn't help when you're just doing a quick console log inspection.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: