Tag: best-practice
All the articles with the tag "best-practice".
My posts
Why aiming for 100% coverage can be a mistake
Published: at 01:34 PMDiscover why aiming for 100% test coverage in software development can be counterproductive. Learn practical strategies to focus on core functionality, avoid unnecessary tests, and improve code quality without wasting resources.
Tech Watch Posts
Reactivity is easy
Published: at 01:46 PMReactivity in React doesn’t have to be complicated. Learn how fine-grained, selector-based reactivity works with a 35-line solution—no magic, just clean code.
Use Compound Components React Advanced Pattern For Better Software Design
Published: at 12:32 PMLearn how to create and design better React components using the Compound Components React advanced pattern.
Open-Closed Principle (OCP) In React: Write Extensible Components
Published: at 01:40 PMA practical look at applying the Open-Closed Principle to React.
Memoizing components in React: a case for useMemo
Published: at 02:24 PMReact.memo is often used to optimize component rendering, but useMemo offers more control and transparency. This article explains why useMemo could be a solution too to memoize components in React applications until the React Compiler take care of it for us.
React Reconciliation: The Hidden Engine Behind Your Components
Published: at 02:49 PMA deep dive into how React's reconciliation algorithm works and why it matters for performance
Event-Driven Architecture for Clean React Component Communication
Published: at 01:34 PMDiscover how event-driven architecture simplifies React component communication and eliminates prop drilling. Learn to implement a custom useEvent hook for cleaner, more maintainable code with real-world examples.
Beyond React.memo: Smarter Ways to Optimize Performance
Published: at 08:46 AMWhy composition patterns might be better than memoization for React performance
The URL is a great place to store state in React
Published: at 08:25 AMDiscover why storing state in the URL is a powerful yet often overlooked approach in React. Learn how to persist state across page reloads, share application states, and enhance user experience with practical examples and best practices.
Don't use TypeScript types like this. Use Map Pattern instead
Published: at 02:22 PMDiscover how to improve TypeScript type flexibility and maintainability using the Map Pattern. Learn to avoid tightly coupled code, enforce stricter controls, and follow the Open/Closed Principle for cleaner, more scalable TypeScript projects. Read the full guide now.
How to Use Zod for React API Validation
Published: at 02:20 PMLearn how to use Zod for API validation in React to ensure data consistency and prevent errors. This guide covers setting up Zod, defining schemas, integrating with API calls, and handling errors effectively. Improve your React app's reliability and developer experience with Zod.