Hacker News new | ask | show | jobs
by bdd8f1df777b 808 days ago
> With proper error handling, that's about 50 lines of C code.

Writing proper error handling in C is a very tedious and error prone task. So it doesn't surprise me that people would rather call another library instead.

3 comments

> So it doesn't surprise me that people would rather call another library instead.

Which shall be harder to justify now: "You're calling a gigantic library full of potential security holes just to call one function, to save writing a few lines of code, are you trying to JIA TAN the project?".

> Writing proper error handling in C is a very tedious and error prone task.

Managing C dependencies is even more tedious and error prone. And even in C, opening a UNIX domain socket to write a single packet is not that hard.

You think error handling for a socket connection + send is outside the capabilities of those developing sshd?
You think every time people call an external library to save their effort is a proof of their lack of capabilities?