News for hackers. Stuff that matters.
Re:Day.js Fast 2kB alternative to Moment.js with the same mo... by TekMol on Sunday October 09, 2022 @04:44AM (#33139168)
You are trying to convince me with the popular "This is not going to work for a much more complex system".

I heard it very often. I don't buy it. Any system, no matter how complex, can be composed of small, simple systems.

I never ran against a "complexity wall" when writing software in a lean way and suddenly thought "Damn, those tens of thousands of lines of library code now would be the better approach".

Re:Day.js Fast 2kB alternative to Moment.js with the same mo... by 9wzYQbTYsAIc on Sunday October 09, 2022 @05:37AM (#33139412)
More power to you if you have the budget to spend time writing code that someone else has already written.
Re:Day.js Fast 2kB alternative to Moment.js with the same mo... by maigret on Sunday October 09, 2022 @05:24AM (#33139355)
That’s very true. A colleague recently started using the same method and is achieving bundles and dependencies orders of magnitude smaller. As a result, he has to care less about security, build times and build breaks and spends more time coding. Developers have unlearned to build basic functionality apparently, especially in the front end area.
Re:Day.js Fast 2kB alternative to Moment.js with the same mo... by 9wzYQbTYsAIc on Sunday October 09, 2022 @05:43AM (#33139449)
It’s not really a question of unlearning, its more of a question of economics.

Sound software construction techniques are one thing, but convincing someone to pay you to reinvent the wheel is another.

Especially when you consider that budgets for new, bespoke brand websites can start as low as about a couple of days pay for a senior developer.