Ask HN: When do you use a library vs. implement something yourself?
46 by cowpig | 23 comments on Hacker News.
At one end are single-function npm libraries that led to the left-pad fiasco[1]. At another end are things that you should only be implementing yourself in highly unusual circumstances, such as cryptography libraries. Where on this spectrum do you usually implement the thing yourself, and what is your thought process? What are the costs of importing a library, and how are those costs different for different projects? Are there security risks? What are the benefits? Conversely, what are the costs and benefits of implementing something in-house? Has there ever been a case where you've tried to roll your own and it ended in disaster? Or where you'd wished you'd never added a dependency on some library? [1] https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
Middlesbrough
TV aerials Middlesbrough primarily operate throughout the North of England with occasional involvement in the other UK and European projects. TV aerials Middlesbrough offer a wide range of services, all related to the reception and distribution of Satellite and Terrestrial transmissions for both commercial and domestic applications. Councils, Housing Associations, Hospital Trusts and like organisations.
Today's Trending Video in Middlesbrough
Middlesbrough News Featured post
Kim Jong-un: fragile and under pressure but he won’t give up
The Observer The North Korean leader’s surprise freeze of his nuclear programme is less a genuine move than a diplomatic manoeuvre,...
BBC News - Home
Best Video In Middlesbrough
The Guardian
Best Middlesbrough Videos
Friday, 20 April 2018
New top story on Hacker News: Ask HN: When do you use a library vs. implement something yourself?
Labels:
Hacker News,
Middlesbrough
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment