Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koenraad
10 months ago
|
parent
|
context
|
favorite
| on:
Unwrapit provides a way to handle errors in JS/TS
You are talking about a larger fundamental problem; code quality. This library can be a way to handle errors just as the try/catch block is. If agreed on within the team ofcourse.
Cthulhu_
10 months ago
[–]
That's the big if, but even if your team agress to use this, the greater JS ecosystem doesn't, so you end up being the odd one out.
"Law of least surprise" is a good thing to keep in mind when writing maintainable code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: