News for hackers. Stuff that matters.
Re:Preventing the Collapse of Civilization [video] by noir_lord on Saturday May 18, 2019 @06:07AM (#19946620)
> My mantra for using a library is - if you could've written the library yourself, then use it. Otherwise, you dont know enough and using it as a blackbox is certainly going to lead to disaster in the future (for you or some other poor soul).

That is largely my attitude to using any package/library - if the entire dev team gets hit by a bus tomorrow can I maintain this (i.e. keep it working reliably in production), if the answer is no then I nearly always avoid it and if I can't I wrap it in my own layer so that I can replace it later.

I've been an enterprise developer for a long time so my worldview is shaped by "this will likely stick around twice as long as anyone expects minimum" though.

Re:Preventing the Collapse of Civilization [video] by Filligree on Saturday May 18, 2019 @07:23AM (#19946815)
I have a friend with that attitude. It's led him to implementing his own encryption libraries, UI libraries and so forth, and...

Well, I have to admit he's smart, but the software he writes outside of work is some of the worst I've ever used. Furthermore, I was able to crack his RSA implementation with a straightforward timing attack.

Some things shouldn't be reimplemented.

Perhaps he could have implemented them, then used something else? True, but that's a hard sell.

Re:Preventing the Collapse of Civilization [video] by detaro on Saturday May 18, 2019 @07:27AM (#19946833)
Surely you can at least estimate if you could have created/could maintain a library without actually doing a reimplementation, e.g. by diving into a bug or two?
Re:Preventing the Collapse of Civilization [video] by LandR on Saturday May 18, 2019 @09:38AM (#19947317)
First rule of crypto, never roll your own crypto!