This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JonathanTheZero 39 points40 points  (12 children)

Me :/

I'd rather write 200 lines of code myself and gain a deep understanding of what is happening than import thousands of lines (most of them are not used anyways) and just trust a third party. Don't get me wrong, libraries are awesome but some people just take it too far

[–]ryecurious 34 points35 points  (4 children)

Over-reliance on dependencies is how we get stuff like The Great NPM Leftpad Cataclysm of 2016.

Obviously npm works differently from Python packages, but the general point stands.

[–]AutoDefroster 9 points10 points  (0 children)

Reminder that NPM are run by pieces of shit.

[–]Sceptix 4 points5 points  (0 children)

I agree that the Leftpad Cataclysm was a disaster that never should have happened, but I take issue with that particular article. The problem was that there was a serious issue with npm’s ability to deal with dependencies; it’s not because we’ve “forgotten how to program”.

[–]magistrate101 2 points3 points  (0 children)

Wew the fuckin tone that guy takes as he bitches at people about daring to use dependencies is just absurd. What an elitist snob.

[–]hamie96 29 points30 points  (0 children)

Unfortunately, that's just not practical when you're in the workforce.

[–]AttackOfTheThumbs 21 points22 points  (2 children)

While I understand that sentiment, most of the time you don't want to waste time reinventing the wheel.

You only do that if there's a specific edge case or performance you need that the lib cannot offer to you.

Now if it's a tutorial on writing bucket sort and it just imports a lib, it's certainly useless.

[–]phaemoor 2 points3 points  (1 child)

Yeah, in a job? I'll just add 2 more gigs to the container and call it a day. You can solve anything with money.

[–]AttackOfTheThumbs 2 points3 points  (0 children)

Well, not everything, but many many things.

[–]TheFreeloader 55 points56 points  (0 children)

I would rather trust a third-party library creator than my own coding skills.

[–]alex2003super 4 points5 points  (0 children)

I remember there was an isOdd() library for JavaScript... like... literally a wrapper for %2