TypeScript vs JavaScript
Автор: minimal engineer
Загружено: 2025-09-16
Просмотров: 20
JavaScript vs TypeScript — Which one actually fits your project?
This video cuts through the hype and looks at trade-offs, not tribes. We unpack the “extra build step” argument, why TypeScript’s type inference lowers the learning curve, how abusing any leads to TINO (TypeScript In Name Only), why tests and TS aren’t substitutes but partners, the vendor lock-in myth (TS compiles to plain JS), and where runtime safety really comes from (validation, guards—TS is your co-pilot, not an airbag). We also outline when TS is overkill and when plain JS is perfectly sensible.
What you’ll learn
How a small compile step compares to the unmanaged complexity of growing apps
Why most devs don’t need to write tons of types (thanks to inference)
The real cost of sprinkling any and how it spreads through a codebase (TINO)
TS vs tests = wrong question—use both for different kinds of errors
Why TypeScript isn’t vendor lock-in (output is standard JavaScript)
Runtime safety: null/undefined, await, and input validation are still on you
Clear criteria for choosing JS or TS based on team size, lifespan, velocity, safety
Example from the video
function calculateTotal(price: number, quantity: number): number {
return price / quantity; // Bug! Should be *
}
Perfectly typed, logically wrong—tests catch this, not the type system.
Who this is for
Teams stuck between “move fast in JS” and “stabilize with TS”
Codebases drifting toward any and weak contracts
Engineers designing a sustainable path from MVP → growth → scale
Resources mentioned
TypeScript docs
ESLint + Prettier with TS
Runtime validation (e.g., Zod)
Join the conversation
What criteria matter most in your context—Team Size, Lifespan, Velocity, Safety? Drop a comment.
Hashtags
#JavaScript #TypeScript #WebDevelopment #SoftwareEngineering #CleanCode #Testing #Frontend #NodeJS #Programming #DevTools
typescript, javascript, ts vs js, type inference, any type, tino, runtime validation, zod, eslint, prettier, unit tests, integration tests, null safety, developer productivity, large scale apps, TypeScript vs JavaScript, which to choose, when to use TypeScript, is TypeScript worth it, TypeScript benefits, TypeScript drawbacks, pros and cons, TS build step, extra compile step, vendor lock-in myth, TS outputs plain JS, type inference explained, any type pitfalls, TINO TypeScript In Name Only, tests vs types, unit tests vs TypeScript, integration testing strategy, runtime safety, input validation, runtime guards, schema validation, Zod schemas, Zod vs Yup, io-ts, Valibot, JSON Schema, AJV, strict null checks, null/undefined safety, await error handling, defensive programming, DX developer experience, developer productivity, refactoring safety, scaling codebases, large scale apps, maintainability, tech debt, clean code practices, coding standards, ESLint with TypeScript, Prettier config, tsconfig best practices, incremental migration to TS, adopt TypeScript gradually, JS to TS roadmap, MVP to scale, team size considerations, velocity vs safety, long-term maintainability, API contracts, type-safe APIs, discriminated unions, exhaustive switch, ts-pattern, generics in TypeScript, interface vs type alias, type narrowing, unknown vs any, never type, declaration files d.ts, ambient types, third-party typings, DefinitelyTyped, Node.js with TypeScript, backend with TS, Express TypeScript, NestJS, Fastify TS, Frontend TypeScript, React + TypeScript, Next.js TypeScript, Vue TypeScript, Angular TypeScript, monorepo with TS, turborepo, bundlers (Vite, Webpack, esbuild, SWC), ts-node, tsc, Deno, Bun, E2E tests with Playwright/Cypress, CI for TypeScript, code quality, bug example calculateTotal, logic bugs vs type errors, pairing tests with TS, best practices guide.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: