var isEven = require('is-even');
786,000 monthly downloads btw and only one direct dependency.On is-odd! The actual implementation of is-even starts with
var isOdd = require('is-odd');
(That said, the implementation of is-odd looks like it covers some subtle cases that people might mess up rolling their own...)Sure it’d take 15 seconds to write a method but why if you don’t have to
What would not be fine is to just quietly have that attitude and assume without checking that no one who uses Node a lot has any idea how to do basic things without relying on a library. It's not terribly uncommon for people to think that at least here on HN, I suppose, although I have yet to run into it in an interview or an engineering culture. But if your engineering culture is host to such attitudes, it's best for all involved to be open about that. You'll avoid wasting both candidates' time and your own.
You're saying that like it's some kind of defense of the library. In the real world it isn't.
Granted that this seems a lot of effort to put into analyzing the contents of a Github repo tagged "troll-bait", from the user "i-voted-for-trump". But hey, this is HN, so it's whatever I guess.
Amateurishness is normal to some extent, but JS has the ecosystem where beginner mistakes are often seen as the right way to do things.
COBOL is from a different time and family of what we ( mainstream ) understand today as "programing languages". How many "crimes" are committed today writing business rules in Java or C#, etc?
Dijkstra's statement, like anything else has a time and context and I hope something solid from the COBOL family existed today.
"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration."
- Edsger W. Dijkstra
Maybe php and node are the cobol and basic of our generation?