Skip to content
jsmanifest logojsmanifest

Posts tagged “best practice

31 posts found

TypeScript Discriminated Unions: Make Illegal States Unrepresentable

TypeScript Discriminated Unions: Make Illegal States Unrepresentable

July 9, 2026

Learn how TypeScript discriminated unions model state so invalid combinations simply won't compile. Master the discriminant pattern, exhaustiveness checking with never, and dramatically cleaner reducers.

typescripttype-safetybest-practice+1
TypeScript Mapped Types Deep Dive: Transform Types Like a Pro

TypeScript Mapped Types Deep Dive: Transform Types Like a Pro

January 22, 2026

Master TypeScript's mapped types to build custom type transformations. Learn keyof iteration, property modifiers, and key remapping to create bulletproof utility types.

typescripttype-safetydevelopment+1
Streams API: Processing Large Data Efficiently in JavaScript

Streams API: Processing Large Data Efficiently in JavaScript

January 19, 2026

Master JavaScript Streams API to process large files efficiently. Learn ReadableStream, WritableStream, and TransformStream with real examples.

javascriptstreamsperformance+2
5 Voice Coding Patterns That Boosted My Productivity 3x with Claude Code

5 Voice Coding Patterns That Boosted My Productivity 3x with Claude Code

January 17, 2026

Boost your coding speed 3x with voice input. Learn 5 practical patterns for voice-driven development using VoiceMode MCP and Claude Code.

productivitydevelopmentbest-practice+2
The Power of TypeScript's Satisfies Operator

The Power of TypeScript's Satisfies Operator

January 16, 2026

Learn when and why to use TypeScript's satisfies operator. Master the difference between type annotations, as assertions, and satisfies for bulletproof type safety.

typescripttype-safetybest-practice+1
5 AI-Powered TypeScript Refactoring Workflows That Save Hours

5 AI-Powered TypeScript Refactoring Workflows That Save Hours

January 13, 2026

Transform legacy code faster with these practical AI-assisted refactoring patterns. From callbacks to async/await, class components to hooks, and more.

typescriptairefactoring+2
7 Principles That Actually Matter in RESTFul API Design

7 Principles That Actually Matter in RESTFul API Design

January 12, 2026

Learn 7 essential RESTful API design principles with real Express and Fastify examples that will help your team build better, more maintainable APIs in JavaScript.

javascriptapidevelopment+4
Why TypeScript Works Better with AI Coding Tools

Why TypeScript Works Better with AI Coding Tools

January 12, 2026

Discover how TypeScript's type system gives AI tools the context they need for smarter refactoring, better code generation, and fewer bugs. Real examples included.

typescriptaidevelopment+2
10 TypeScript Utility Types That Will Make Your Code Bulletproof

10 TypeScript Utility Types That Will Make Your Code Bulletproof

January 11, 2026

Master TypeScript's built-in utility types to eliminate type duplication, prevent bugs, and write maintainable code that scales. Learn Pick, Omit, Partial, and 7 more essential utilities with real-world examples.

typescripttype-safetybest-practice+1
Build Type-Safe Form Validators in TypeScript with Zod

Build Type-Safe Form Validators in TypeScript with Zod

January 11, 2026

Master runtime form validation in TypeScript using Zod. Learn to build type-safe validators that catch errors at compile-time and runtime with practical examples.

typescriptdevelopmentbest practice+2
Virtualization for Long Lists: Performance in JavaScript

Virtualization for Long Lists: Performance in JavaScript

January 11, 2026

Rendering 10,000 items? Virtualization reduces DOM nodes from thousands to ~50, transforming sluggish lists into butter-smooth experiences. Here's how.

javascriptreactperformance+2
5 Test Integrity Rules Every AI Agent Should Follow (Before They Break Your Tests)

5 Test Integrity Rules Every AI Agent Should Follow (Before They Break Your Tests)

January 10, 2026

Learn the 5 critical test integrity rules that prevent AI agents from creating self-validating tests. Includes TypeScript examples and research-backed best practices.

testingtypescriptbest practice+2
Teaching AI Agents to Batch React State Updates with ESLint

Teaching AI Agents to Batch React State Updates with ESLint

January 9, 2026

Learn how to prevent AI coding assistants from creating useState render waterfalls by combining custom ESLint rules with Claude instructions for automatic useImmer enforcement.

javascriptreactai+3
10 JavaScript Practices You Should Know Before Tomorrow

10 JavaScript Practices You Should Know Before Tomorrow

February 21, 2022

This post will go over 10 JavaScript tricks and best practices that every front end engineer should know before tomorrow

javascripttricksbest practice
8 Horrifying Practices You Really Must Not Do in JavaScript

8 Horrifying Practices You Really Must Not Do in JavaScript

January 28, 2022

JavaScript can be a really flexible but powerful language when developing code but it's not always straight forward to know which practices we should avoid. In this post we will be going over 8 Practices You Really Must Not Do in JavaScript and should not do before it gets too late.

javascriptbest practicecrash
Write More Robust JavaScript: 7 Best Practices

Write More Robust JavaScript: 7 Best Practices

January 15, 2020

Here are seven code practices in JavaScript that will help you write stronger code

javascriptcompositionbest practice+5
5 Anti-Patterns in JavaScript to Avoid When Working With Collections

5 Anti-Patterns in JavaScript to Avoid When Working With Collections

December 5, 2019

This article will go over 5 anti-patterns to avoid when working with collections in JavaScript

javascriptbest practiceanti pattern+2
Promises in JavaScript

Promises in JavaScript

December 2, 2019

This post aims to shed some light on how you can use promises in JavaScripts

javascriptbest practicepromise+2
4 Dangerous Problems in JavaScript Easily Solved by The Builder Design Pattern

4 Dangerous Problems in JavaScript Easily Solved by The Builder Design Pattern

November 24, 2019

This article will go over 4 dangerous problems in JavaScript that are easily solved by the builder design pattern

javascriptreactpattern+4
The Builder Pattern in JavaScript

The Builder Pattern in JavaScript

November 20, 2019

The design pattern we will be going over today is commonly known as the Builder Design Pattern, which is a pattern used to help construct complex objects.

javascriptreactpattern+4
The Power of the Module Pattern in JavaScript

The Power of the Module Pattern in JavaScript

November 1, 2019

We will be going over the module pattern in JavaScript and understand the benefits it provides to help us build robust applications

javascriptpatternbest practice+4
The Mediator Pattern in JavaScript

The Mediator Pattern in JavaScript

October 27, 2019

In this article, we will be going over the _mediator pattern_ and implementing one using JavaScript

javascriptreactpattern+4
The Publish/Subscribe Pattern in JavaScript

The Publish/Subscribe Pattern in JavaScript

October 10, 2019

In this article, we will be going over the publish/subscribe pattern in JavaScript and see how simple (but powerful) it is to implement in our JavaScript applications.

javascriptpatternbest practice+4
The Power of the Observer Pattern in JavaScript

The Power of the Observer Pattern in JavaScript

October 5, 2019

We will be going over the Observer Pattern and implementing it through JavaScript so that hopefully you can attain a better understanding of it if you're having trouble understanding the concept.

javascriptpatternbest practice+5
The Power of Higher Order Functions in JavaScript

The Power of Higher Order Functions in JavaScript

September 18, 2019

A powerful feature i'm going to talk about in this article utilizes functions, called a higher order function. Powerful examples will also be shown in this article.

javascriptpatternbest practice+2
8 Miraculous Ways to Bolster Your React Apps

8 Miraculous Ways to Bolster Your React Apps

August 25, 2019

This artice will go over 8 Miraculous Ways to Bolster Your React Apps

javascriptreactbest practice
14 Beneficial Tips to Write Cleaner Code in React Apps

14 Beneficial Tips to Write Cleaner Code in React Apps

August 17, 2019

Here are 14 beneficial tips to help you write cleaner code in react apps

javascriptreactclean code+3
Designing API Methods in JavaScript

Designing API Methods in JavaScript

July 21, 2019

This article will go over a couple of rules to keep in mind when designing methods for an API in JavaScript

javascriptapiarchitecture+6
8 Practices In React That Will Crash Your App In The Future

8 Practices In React That Will Crash Your App In The Future

July 3, 2019

If you're currently building an application using react or thinking of using react for upcoming projects, then this tutorial is for you. I hope this tutorial will help you on your journey to make great react applications too by exposing a few code implementations that you ought to think twice about

javascriptreactbest practice+1
10 Things NOT To Do When Building React Applications

10 Things NOT To Do When Building React Applications

June 28, 2019

React comes with its own set of gotchas, some of it potentially becoming a severe problem to your applications if you don't take care of them now. This article will go over 10 things not to do when building react applications

javascriptreactbest practice+2
12 Things NOT To Do When Building React Apps With Redux

12 Things NOT To Do When Building React Apps With Redux

June 8, 2019

If you've never had experience building a react redux application for production, then this article can help you prepare for the next large scaled application you build.

javascriptreactredux+5