News for hackers. Stuff that matters.
Re:Ask HN: When does it make sense to roll your own X? by nickjj on Sunday July 14, 2019 @06:18AM (#20432692)
It really depends on the task at hand and what the alternatives are.

For example I would much rather write 200 lines of my own code to deal with user authentication (leaning on my framework or a lower level library to deal with the gory bits of setting and deleting sessions), vs. pulling in some higher level authentication library that has 3,000 lines of code but tries to be so generic that it's a jumbled mess which is difficult to customize.

Basically the more important the feature is for my application, the more inclined I am to write my own code. Although I may at times draw inspiration from other libraries that don't quite solve my problem but helps me get closer to what I want to do.

There are no comments on this comment yet.