3 ms·
But that's why the context of the question is important. It's not clear from your comment, but I'd give a different answer if the question was strictly academic
by nkrisc 4mo ago
But that's why the context of the question is important. It's not clear from your comment, but I'd give a different answer if the question was strictly academic in nature (reinventing the wheel) or focused on practical work realities (use a library).
- inigyou 4mo agoEven using a library isn't that practical. It may be the zeitgeist in JavaScript but that doesn't mean it's actually a good idea. Nobody remembers left-pad? If you're writing Java or Python then checking if your date class can already do it is a good idea.
- bandrami 4mo agoI've managed to work in tech for 30 years without ever significantly coming into contact with javascript professionally. I hire Ada and C programmers for a stodgy defense contractor where we have to wear ties and it takes 6 months to get a new library approved; unicorns don't really thrive in this environment (or in Fairfax County in general).