Articles

Short explainers, each on one idea. Pick a tag to see only its articles.

Level: intermediate

6 of 66 articles

  • Module 3: Wrapping What You Have

    Adapter, Facade, Decorator and Proxy: four ways to wrap code you already have, including the JavaScript Proxy object.

    Module
  • Module 4: Swapping Behavior

    Strategy, State and Command in TypeScript: swap what the code does without a growing if/else.

    Module
  • Module 5: Events and Chains

    Observer with EventEmitter, Chain of Responsibility, and middleware in Express and Koa.

    Module
  • Module 6: Wiring an App

    Dependency Injection, the composition root, and when a container such as NestJS is worth adding.

    Module
  • Module 7: Talking to the Database

    Repository and Unit of Work in TypeScript, with node:sqlite, and how they differ from Data Mapper and Active Record.

    Module
  • How Node.js Works: The Event Loop

    Two rules that let you predict the order of setTimeout, setImmediate, process.nextTick and Promise callbacks in Node.js, with code you can run to check each one.

    Languages & Runtimes