TDD Workflow with a Real-World Example
Walk through the red-green-refactor cycle step by step, building a password validator to learn practical test-driven development.
1745 posts · page 15 of 37
Walk through the red-green-refactor cycle step by step, building a password validator to learn practical test-driven development.
Understand the differences between test doubles: mocks, stubs, spies, and fakes, with practical examples in JavaScript and Python.
Catch unintended UI changes automatically by comparing screenshots with Playwright's built-in visual comparison tools.
Use assertion functions to narrow types at runtime, replacing manual throw-and-cast patterns with compiler-understood safety checks.
Implement the builder pattern in TypeScript with compile-time enforcement of required fields using generics and conditional types.
Learn how TypeScript declaration files work, when to write your own .d.ts files, and how to type untyped JavaScript libraries.
Set up TypeScript project references to manage multi-package monorepos with incremental builds, clean boundaries, and fast compilation.
Master the typeof and keyof type operators to derive types from values and extract object keys for type-safe lookups and mappings.
Production-ready Docker Compose patterns: override files, healthchecks, resource limits, logging, and secrets management.
Master Docker layer caching: instruction ordering, cache mounts, BuildKit inline cache, and CI registry caching for faster builds.
Go beyond basic multi-stage builds. Learn cache mounts, parallel stages, and distroless bases to shrink Docker images by 90%.
Master Go channels and select statements with patterns for fan-out, fan-in, timeouts, cancellation, and pipeline composition.
Learn production-grade context patterns in Go including timeouts, cancellation propagation, value passing, and middleware integration.
Learn Go composition over inheritance with struct embedding, interface embedding, and practical patterns for clean architecture.
Master Go error wrapping with fmt.Errorf %w, errors.Is, errors.As, and custom error types for clear, debuggable error chains.
Practical Go generics patterns for production code: type-safe collections, result types, repository layers, and functional helpers.
Build composable HTTP middleware in Go for logging, auth, rate limiting, and recovery using standard library patterns.
Use Go's race detector to find and fix data races, plus tools and patterns for debugging concurrent programs effectively.
Learn Go's slog package for structured, leveled logging with JSON output, custom handlers, and context-aware log enrichment.
A practical guide to Go sync primitives including Mutex, RWMutex, WaitGroup, Once, and when to choose each over channels.
Write clear, maintainable Go tests using table-driven patterns, test helpers, subtests, and cleanup functions.
Lock down pod communication with Kubernetes NetworkPolicies. Learn ingress and egress rules, label selectors, and namespace isolation.
Set CPU and memory requests and limits correctly. Understand QoS classes, OOMKilled errors, and CPU throttling in Kubernetes.
Master zero-downtime deployments with Kubernetes rolling updates, rollback commands, and deployment strategies like blue-green and canary.
Master AbortController in JavaScript -- cancel fetch requests, debounce events, set timeouts, and build cancellable async workflows.
Visualize how the JavaScript event loop works -- understand the call stack, microtask queue, macrotask queue, and execution order.
Master JavaScript generators and iterators -- learn function*, yield, Symbol.iterator, and how to build custom iterable objects.
Master the JavaScript Intl API for locale-aware formatting of numbers, currencies, dates, relative time, and list conjunctions.
Explore pattern matching in JavaScript today with switch(true), and preview the TC39 pattern matching proposal for cleaner conditional logic.
Learn JavaScript private class fields with #, static blocks, private methods, and how they compare to closures and WeakMap patterns.
Learn how to use JavaScript Proxy and Reflect to intercept operations, build validators, create observable objects, and write metaprogramming patterns.
Explore the Temporal API for JavaScript -- a modern, immutable, and time-zone-aware replacement for the legacy Date object.
Understand JavaScript WeakMap and WeakSet, their garbage collection behavior, and practical use cases like caching, private data, and DOM metadata.
Compare Python's concurrency models -- threading, multiprocessing, and asyncio -- with practical examples and performance guidance.
Learn how Python context managers work under the hood, build custom ones with classes and contextlib, and explore advanced patterns.
Go beyond basic dataclass usage with post-init processing, field factories, inheritance, frozen instances, and custom serialization.
Understand Python's descriptor protocol, how properties work internally, and how to build reusable validation descriptors.
Master Python's itertools module with practical recipes for grouping, windowing, chaining, and processing iterables efficiently.
Explore how CPython manages memory with reference counting, generational garbage collection, and practical tips to avoid memory leaks.
Demystify Python metaclasses with practical examples. Learn how classes are created, when to use metaclasses, and real-world patterns.
Replace os.path with pathlib for cleaner, more readable file path handling in Python. Covers all essential operations with examples.
Learn how __slots__ reduces memory usage in Python classes, when to use it, and the trade-offs involved.
Understand how the React Compiler works, what automatic memoization means, and how it eliminates the need for useMemo, useCallback, and React.memo.
Master React's concurrent rendering features including useTransition, useDeferredValue, and strategies for keeping your UI responsive.
Solve React Context performance problems with provider splitting, value memoization, selector patterns, and smart composition strategies.
Learn how to test custom React hooks using renderHook from React Testing Library, covering state, effects, async behavior, and context.
Master error boundary patterns in React including granular boundaries, recovery strategies, logging, and the react-error-boundary library.
Learn how Server Functions with 'use server' let you call backend logic directly from React components without building API routes.