Choose execution and state ownership
TypeScript in Production notes about Choose execution and state ownership
Choose execution and state ownership
Awaiting Async Work in TypeScript Loops: Choose Sequential `for...of` or Concurrent `Promise.all`
Use `for...of` when each operation must finish before the next starts; use `Promise.all` for independent operations, while accounting for its rejection behavior.
Choose execution and state ownership
Choose TypeScript or Python for a Backend Service: Workload, Contracts, and Ownership
Choose the language around the service’s defining dependencies, then account for runtime validation, contract ownership, and the cost of operating another service.
Choose execution and state ownership
TypeScript Classes vs Modules: Should State Belong to an Instance or a File?
Use a class when callers need independently changing state; use a module to group operations and control what other files can import.



