News for hackers. Stuff that matters.
Re:Never use a dependency that you could replace with an aft... by tluyben2 on Tuesday August 11, 2020 @04:18PM (#24125477)
Well, my point was more that if a programmer thinks '5 minutes work' it's often 10+ minutes; so when a programmer thinks 'an afternoon', you can possibly lose a week. And then the article really doesn't work.

And yeah, I would and do write leftpad myself it it's not in the stdlib. But if there is a large library full of similar (string) functions that I might need, I would include that library. Not a singular dependency for this type of function.

There are no comments on this comment yet.