News for hackers. Stuff that matters.
Re:Low Hanging Fruit of Programming Language Design by amorphid on Wednesday November 22, 2017 @01:10PM (#15758988)
> So if your code is literally the same, there's no reason not to extract it into a function.

Isn't that how we ended up with left-pad.js?

Re:Low Hanging Fruit of Programming Language Design by naasking on Wednesday November 22, 2017 @02:24PM (#15759642)
Nothing wrong with importing a left-pad module if you're using a sane language with a sane development toolbox. I'll leave it to you to decide whether JS fits that bill.