Getting rid of projects and plans that we will not get back to frees up mental space for things that excite us.Read full article
End of an era
Earlier this week, the team behind Moment declared the project legacy. It will remain available, but they won’t make any significant changes to it. You are free to keep using it forever, but don’t expect any improvements.
We recently moved to date-fns, which offers the same functionality we used from Moment. It is modular, which allows us to use only the features we need without including everything else as well. The move from Moment to date-fns was very easy.
Moment was an excellent choice for years, and the team behind it deserves a lot of praise. Now that there are more modern alternatives, deprecating it is a difficult but good move from them. If you have not made the switch away from Moment yet, now might be a good time.
No code starts out as unmaintainable legacy we don’t dare to change. All codebases end up there because of a lot of small decisions like these examples.Read full article
Web servers can send different files to browsers based on headers in a request. Knowing this, we can send WebP-files only to browsers that support them.Read full article