Do reinvent the wheel.Throughout the years, I have been told numerous times not to reinvent the wheel. In principle, this is sound advice. But a piece of advice repeated thousands of times becomes a mental rule – harmful and prejudicial. We've taken it too far It has led ...4SAGJun 22, 2024 · 3 min readtypeofweb.com
Mastering Next.js Prefetching: Enhance Navigation with the SuperLink ComponentNext.js has a component that enables prefetching and client-side navigation between routes: Link. It's one of the primitives upon which you build applications. Yet, there are a lot of misconceptions about how prefetching actually works. To add to the...PMay 26, 2024 · 6 min readtypeofweb.com
Property-based testing in TypeScriptThere is no doubt writing tests brings value. I believe every professional should write tests for their code, and no software should ever be released without tests. We may discuss whether metrics such as code coverage are useful or not. We may argue ...May 20, 2024 · 6 min readtypeofweb.com
XY Problem – or when we don't know what we're asking aboutCertainly, everyone has faced the XY Problem at some point in their lives, perhaps even without realizing it. Some might even be "committing" it right now. The XY Problem happens when we seek a solution rather than discussing the issue itself. Why is...Feb 29, 2024 · 6 min readtypeofweb.com
Polymorphic components in ReactEvery now and then, I encounter a situation where I need a link that looks like a button. Or a button that looks like a link. Isn't it a perfect use case for a polymorphic component? In this article, I'll argue why polymorphic components should be av...1GMFeb 17, 2024 · 5 min readtypeofweb.com