Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brookst
3 months ago
|
parent
|
context
|
favorite
| on:
Ask HN: What trick of the trade took you too long ...
100% agree. “Error” is as big and ambiguous as “success”. What should a successful function return? True / false? An object? A URI? Nothing?
There is no rule of thumb because the scenarios are too varied and context matters.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
There is no rule of thumb because the scenarios are too varied and context matters.