#Programming Language
156 posts
TypeScript + React in Practice #2: Typing props and children
How to define props types and how far to narrow them — optional props, union props, and children patterns. Real-world decisions you meet often.
Modern Python Intermediate #6: Pattern matching in depth
The next step from basics match-case — class patterns and __match_args__, sequence/mapping patterns, captures and guards, plus anti-patterns.
TypeScript + React in Practice #1: Getting Started and Setup
Why use TypeScript with React, plus building a React + TS project with Vite and adding types to your first component — all in one go.
Modern Python Intermediate #5: Decorator patterns
Every form of decorators that wrap functions — basic form, parameterized decorators, functools.wraps, class decorators, and ParamSpec.
TypeScript Basics #7: Utility Types and tsconfig
Standard utility types you will use every day (Partial/Pick/Omit/ReturnType, etc.) and the key tsconfig.json options that control compile behavior — wrapping up the series.
Modern Python Intermediate #4: Iterables/generators/yield from
How for works — the iterable protocol, generator functions and expressions, delegation with yield from, and send/throw — all in one place.
TypeScript Basics #6: Generics in Depth
Tools that draw out the real expressive power of generics — constraints, multiple type parameters, generic interfaces/classes, keyof, and indexed access types.
Modern Python Intermediate #3: Context managers (with, contextlib)
How with collapses try/finally, building your own context manager with __enter__/__exit__, the concise @contextmanager form, and practical tools like ExitStack and suppress.
TypeScript Basics #5: Function Types
How to express function types precisely — optional/default/rest parameters, function signatures, overloads, and a first encounter with generics.
Modern Python Intermediate #2: typing in earnest — Generic, Protocol, TypedDict, Literal
The next step from basics type hints — Generic for parameterizing types, Protocol for precise duck typing, TypedDict for dict shapes, and Literal for narrow unions.
TypeScript Basics #4: Union / Literal / Narrowing
Union types and literal types for expressing values that are one of several possibilities, plus narrowing patterns to refine the type inside branches — all in one place.
Modern Python Intermediate #1: dataclass and __slots__
Every option of @dataclass for short, safe data classes — frozen, kw_only, field() — and __slots__ for memory savings.