TypeScript
TypeScript pays off once you stop reaching for `any`. These articles cover the type system as a tool — what narrowing buys you, when generics are worth the syntax, and how to configure the compiler so it catches real bugs.
The type system
- TypeScript "Type Is Not Assignable" Errors Explained "Type 'string' is not assignable to type 'number'" is TypeScript telling you the value you have does not fit the slot you put it in. The indented lines say exactly where. Tutorial · 8 min read · September 2, 2026
- TypeScript for JavaScript Developers: What Changes and What Does Not TypeScript is JavaScript with a compiler that reads your code before your users do. Most of what you already know still applies — you are adding a safety net, not learning a new language. Tutorial · 9 min read · August 15, 2026
- Java Generics: Type Erasure and What It Breaks A list declared to hold Strings can genuinely contain an Integer, and the ClassCastException fires nowhere near the line that put it there. Erasure explains why. Tutorial · 13 min read · August 6, 2026
- TypeScript Utility Types You Will Actually Use Omit<User, "emial"> compiles without a single complaint and hands you back the entire type. Utility types remove real duplication, but only if you know exactly where they stop checking. Tutorial · 11 min read · August 6, 2026
- TypeScript Type Narrowing: From typeof to never You checked typeof value === "object" and TypeScript still says the value might be null. It is not being difficult. It knows something about JavaScript that you forgot. Tutorial · 11 min read · August 6, 2026
- TypeScript Enums vs Union Types: Which to Use Every other TypeScript construct disappears when you compile. Enums do not. That one fact explains most of the advice telling you to use string literal unions instead. Comparison · 11 min read · August 6, 2026
- TypeScript Generics Explained With Practical Examples A beginner-friendly guide to TypeScript generics, from a simple identity function to constraints and reusable, type-safe container types. Tutorial · 9 min read · July 22, 2026
- TypeScript any vs unknown: Which Should You Use? any switches off type checking; unknown keeps you safe but makes you narrow first. See exactly what each allows in code, plus a clear pick. Comparison · 9 min read · July 22, 2026
- TypeScript Interface vs Type: When to Use Which interface and type look almost the same in TypeScript. Here is what actually differs — merging, unions, extending — and which to pick day to day. Comparison · 8 min read · July 22, 2026
More on TypeScript
- Drizzle ORM Basics: SQL-First Type-Safe Queries Most ORMs hide SQL behind their own vocabulary. Drizzle keeps the shape of SQL and adds types on top, so what you write and what runs look almost identical. Tutorial · 8 min read · September 14, 2026
- Bun vs Node.js: What the New Runtime Actually Changes Bun is not just a faster Node. It folds four separate tools into one binary and runs TypeScript with no build step. Here is what that means in practice. Comparison · 8 min read · September 13, 2026
- tRPC Explained: End-to-End Type Safety Without a Schema No OpenAPI file, no code generation, no GraphQL schema. tRPC shares one TypeScript type between server and client and lets the compiler catch every mismatch. Tutorial · 8 min read · September 13, 2026
- Zod: Runtime Validation That Matches Your TypeScript Types TypeScript types vanish when your code runs, so an API response you typed as User could be anything. Zod checks the data for real - and hands you the type for free. Tutorial · 8 min read · August 25, 2026
- Prisma ORM Basics: Type-Safe Database Access for Node.js Prisma turns your database schema into a typed client, so a misspelled column fails at compile time instead of at 2am. Here is the setup and the traps beginners hit. Tutorial · 9 min read · August 24, 2026
- Angular: Why It Feels So Different From Everything Else Angular is not a library with a router bolted on. It is a full framework with opinions about structure, and that is either exactly what you want or exactly what you do not. Tutorial · 9 min read · August 15, 2026
- TypeScript With React: Props, Hooks and Events useState([]) gives you an array of never, so the first setItems call fails with an error that mentions a type you never wrote. That one line explains most React and TypeScript friction. Tutorial · 12 min read · August 6, 2026
- Module Not Found: Fixing Cannot Resolve Errors The import works on your Windows laptop and fails on the Linux deploy box. That is not a mystery; it is your filesystem quietly ignoring capital letters. Tutorial · 11 min read · August 6, 2026
