Search
Lessons (7)
- DRY: Don't Repeat Yourself
… frontend and backend A shared schema (for example, Zod) used by both API types written by hand in …
- TypeScript Essentials
… of truth (remember DRY ). ts import { z } from "zod"; const UserSchema = z.object({ id: z.number(), name: z …
- Advanced TypeScript for Frontend
… Validate it before it enters application state. Validate unknown data at the boundary ts import { z } from "zod …
- TypeScript in Practice
… A schema library (Zod, Valibot, ArkType) checks the data and produces the type: ts import { z } from "zod …
- Node.js and Express
… last . Validation and errors js import { z } from "zod"; class HttpError extends Error { constructor(status, message) { super(message …
- Authentication, Authorization & API Security
… SameSite - [ ] Validate all input (schema validation such as Zod or Joi) - [ ] Parameterised queries / ORM - [ ] Authorization check on every …
- Frontend Testing Strategy
… API disagreeing on shapes Pact, shared schemas (OpenAPI / Zod) A practical CI pipeline mermaid flowchart LR PR[Pull …