#Programming Language

156 posts

TypeScript Advanced #2: Mapped types
7 min read

TypeScript Advanced #2: Mapped types

Mapped types that transform an entire object type — how Partial/Required/Readonly are built, plus key remapping (as) and modifiers (+/-).

Modern Python Advanced #5: GIL and concurrency — threading vs multiprocessing vs asyncio
7 min read

Modern Python Advanced #5: GIL and concurrency — threading vs multiprocessing vs asyncio

What the GIL is, the role of threading/multiprocessing/asyncio, and the free-threaded build of Python 3.13–3.14 (PEP 703/779) — all in one place.

TypeScript Advanced #1: keyof and typeof
3 min read

TypeScript Advanced #1: keyof and typeof

The two most fundamental tools for building types — using keyof to gather keys, typeof to derive types from values, and the patterns that become possible when they meet.

Modern Python Advanced #4: Async in depth — event loop, gather/wait, async generator
4 min read

Modern Python Advanced #4: Async in depth — event loop, gather/wait, async generator

The next step from intermediate intro — how the event loop actually works, the difference between Future and Task, gather vs wait, async generator, and async iteration.

TypeScript + React in Practice #6: Fetch and API response typing
3 min read

TypeScript + React in Practice #6: Fetch and API response typing

The limits and risks of generic fetchers, and patterns for truly safe handling of external data using zod runtime validation.

Modern Python Advanced #3: Metaclasses — when do you really need them?
3 min read

Modern Python Advanced #3: Metaclasses — when do you really need them?

Classes that build classes — what type really is, division of labor with __init_subclass__, what class decorators can solve, and the narrow places where you really need a metaclass.

TypeScript + React in Practice #5: Context and generic components
3 min read

TypeScript + React in Practice #5: Context and generic components

Type-argument patterns for createContext, a safe useContext helper, and how to build reusable List/Select-like components with generic components.

Modern Python Advanced #2: Descriptors and __set_name__
3 min read

Modern Python Advanced #2: Descriptors and __set_name__

How property works — the __get__/__set__ protocol and data/non-data descriptors, and clean validation fields with __set_name__.

TypeScript + React in Practice #4: Typing events and forms
3 min read

TypeScript + React in Practice #4: Typing events and forms

What types to use for React event objects and how to type controlled/uncontrolled forms in TypeScript — with practical patterns.

Modern Python Advanced #1: Magic methods in depth and protocols
4 min read

Modern Python Advanced #1: Magic methods in depth and protocols

Every hook where Python objects integrate with language features — __call__, __getitem__, __hash__, __format__, __getattr__ — gathered in one place.

TypeScript + React in Practice #3: Typing hooks
4 min read

TypeScript + React in Practice #3: Typing hooks

How far to leave types to inference and when to be explicit for built-in hooks — useState, useReducer, useRef, useCallback, and useMemo.

Modern Python Intermediate #7: Async intro (asyncio)
3 min read

Modern Python Intermediate #7: Async intro (asyncio)

Meaning of async/await, the event loop, asyncio.gather and TaskGroup, and mixing with sync code — a first step into asyncio in one place.