r/ProgrammerAnimemes • u/bucket3432 • Jan 30 '20
OC Dependencies
Enable HLS to view with audio, or disable this notification
1.6k
Upvotes
r/ProgrammerAnimemes • u/bucket3432 • Jan 30 '20
Enable HLS to view with audio, or disable this notification
View all comments
Show parent comment
2
u/Oiux Jan 31 '20
There's no excuse for loading moment in a project and just using methods already easily available / implementable within JS Date.
But regardless, even if you ever feel the need to use a library, use it. If you're not sure, always just go with the library. I've noticed lots of junior developers always think they can reimplement everything themselves to save space and performance but it usually has the opposite impact on the project.
Honestly, it's 2020: No one really seriously cares about 500kb of space and how performant your code is unless it starts to negatively impact the users experience