Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These discussions (in the comments) tend to become this "to write everything yourself or not" discussions which are extreme in nature and very binary. While reality is way more nuanced.

Why do you add a dependency? Because you need a certain functionality.

The alternative to adding this dependency is to write the code yourself.

That is totally feasible for a lot of dependencies.

That is totally infeasible for a lot of dependencies.

It's a trade off, as always. The fact is, that most of us, who do this for a living, need to ensure that our software runs and continues to run and may be adapted in a timely manner, when new requests come in from the client/owner.

Using dependencies or not using depdencencies isn't gonna change that.

Now, granted, some ecosystems are a bit extreme on the "let's add a dependency for this 1 line of code."

On the other hand: should I really roll my own crypto? (Jk)

Should I really write those 5000 lines of well tested code myself, just because I can? And because MAYBE it's not touched in a month from now?

Every (later executed) line I add to the project, be it one written by myself or an external dependency, becomes part of the code. So I have to be able to maintain it. Might be easier if I write it myself. Might be way more difficult and time consuming if I write it myself...

I have so many tasks to do and while I enjoy coding, I have to make my top priority a working system.

So should I mindlessly add dependencies? Of course not!

Should I just reinvent the whole world? Of course not! (Unless the client absolutely wants me to. And pays me to do it)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: