Hacker News new | ask | show | jobs
by TheDong 1544 days ago
> Dont worry about any problem, just import something an its fixed! More imports the better!

We're talking about error boilerplate here.

Just as I do not write assembly by hand, but instead let the compiler generate that, just as I don't write http clients by hand, but let someone else do that, yes I would also rather not write error boilerplate by hand.

I would love it if I didn't have to write as much code to solve problems, but I recognize that the problems I'm solving are mostly specific enough that they require bespoke code specialized to the problem space.

However, error handling? Yeah, I don't care to hand-write that.

Said less glibly, I will happily import stuff when it makes my life easier, and write it myself when that is better.