Human reasoning: ten thinking habits research shows you can learn
About how people think, not AI. Ten habits for everyday engineering decisions (reviews, alerts, estimates, incidents, planning), each with the research behind it and an honest rating.
Senior Software Architect / Tech Lead
Here you'll find tutorials on technologies I recently found fascinating, or simply wanted to brush up on.
Showing all 39 tutorials, newest first
About how people think, not AI. Ten habits for everyday engineering decisions (reviews, alerts, estimates, incidents, planning), each with the research behind it and an honest rating.
Iterators, generator pipelines, context managers, strategies, template methods, observers, plugin hooks, commands, chains of responsibility and middleware, state, visitors and single dispatch, mementos, mediators and interpreters, each traced through a real project such as Django, pytest or the standard library.
Protocols and duck typing, adapters, facades, object and function decorators, proxies, descriptors, composites, mixins, bridges and flyweights, each traced through a real project such as requests, Flask, Click or the standard library, with the Python you would write yourself.
Factory functions and alternative constructors, factory methods, abstract factories, builders, prototypes, singletons, registries, lazy initialization, object pools and dependency injection, each traced through a real project such as Django, SQLAlchemy, pytest or the standard library.
Requirements, estimates and the API, then counting tokens at the model gateway, plan windows and limit checks, the usage API, a Kinesis stream, Valkey live counters with reservations, idempotent credit debits and hourly reconciliation, and usage carried on every response, on AWS, in interview order.
Wheels, startup hooks, how pip and uv resolve versions, lock files and cooldowns, PyPI, CI secrets and publish tokens, release pipelines, signatures and provenance, and what a payload takes, one link at a time, through the two 2026 LiteLLM compromises.
Issuer and acquirer processors, access points, the switch and its data centres, risk scores and stand-in, clearing, settlement and disputes, cross-border payments, Visa, Mastercard, Amex, Discover and domestic networks, and where payment data lives, one part at a time, on the same coffee as part 1. Part 2 of 2.
Card numbers and issuers, acquirers, card networks, authorization, clearing and settlement, interchange, tokens, adding a card to Wallet, the Secure Element, NFC, offline taps and transit gates, and in-app payments, one part at a time, from one tap at a café counter. Part 1 of 2.
The /proc files, processes and threads, CPUs and their time modes, system calls and interrupts, the scheduler and load average, virtual memory, the page cache, disks and I/O wait, swap and the OOM killer, cgroups and steal time: every htop number traced to the part of the machine that makes it.
Spans, OpenInference attributes, trace context, OTLP, Phoenix’s database, evals, prompt versions, experiments, redaction and GDPR erasure, one part at a time, on a shop’s returns agent.
Terraform with the AWS provider, part by part: configuration, providers, plan and apply, the state file, what happens when code, state and AWS disagree, import, moved and removed blocks, lifecycle rules, remote state with locking, and modules, with every plan line from a real run.
The authorization endpoint and consent, the token endpoint and PKCE, JWTs and how an API checks them, OpenID Connect, refresh tokens and revocation, the backend-for-frontend pattern and DPoP, one part at a time, from one sign-in to an API call.
Sockets and the selector, coroutines, the event loop and futures, tasks and TaskGroup, cancellation and timeouts, semaphores and connection pools, the default thread pool, the GIL, interpreter pools, free-threaded 3.15 and debug mode, built up one part at a time around one link checker.
Bedrock’s Converse API, inference profiles, the accounts Claude runs in, invocation logs, GPU instances, SageMaker AI endpoints, autoscaling, batch, PrivateLink, SCPs and guardrails, added one at a time until a support chat’s whole AI stack fits on one map.
Client libraries, exporters, scraping, the Pushgateway, the TSDB, PromQL, dashboards, rules and Alertmanager, one part at a time, on a two-copy checkout service, with PCA exam cues.
Hosted zones, records, routing policies, health checks, the VPC Resolver, private zones, hybrid endpoints, DNS Firewall, DNSSEC, query logs and Profiles, added one at a time until a company’s whole DNS fits on one map.
The API server, etcd, controllers, scheduler, kubelet, Services, CoreDNS, volumes and node heartbeats, one part at a time, on a three-node cluster running one small app, with KCNA exam cues.
Access keys, SigV4, STS roles, the credential chain, IAM Identity Center, Session Manager and RDS IAM auth, one part at a time, on the path from one laptop to a private database.
KMS keys, data keys, key policies, grants, CloudTrail, cross-account and multi-Region keys, rotation, key stores and deletion, added one at a time until the whole setup fits on one map.
Subnets, route tables, security groups, network ACLs, NAT, endpoints, PrivateLink and Transit Gateway, added one at a time until the whole network fits on one map.
The task set, the grader, the harness, the score and its error bar, the runner, the leaderboard, the arena and the guards against leaked questions, one part at a time, from one coding agent’s run on SWE-bench Verified.
The model call, LangChain, retrieval, LangGraph, the Claude Agent SDK, Langfuse and Airflow, one part per chapter, on one insurance-claims system.
The latent and its autoencoder, the seed, the denoiser that predicts noise and how it was trained, the sampler, the text encoder and cross-attention, guidance, and what newer models replaced, one part at a time.
The host and its clients, the stdio pipe and JSON-RPC, versions in _meta, tools, resources and prompts, the call and its approval, the context window, elicitation, Streamable HTTP, OAuth and the host’s guardrails, one part at a time, on the 2026-07-28 revision.
The parts of a coding agent, one per chapter: the loop around a stateless model, the request it sends, what loads before you type, the search tools, the prompt cache, the edit and its permission gate, hooks, subagents and compaction.
Copyable code blocks for loops and conditions, every operator including * and ** unpacking, the primitive types, the built-in functions, int and bit tricks, list, str, tuple, dict, set, Counter, defaultdict, deque, heapq, sorting and bisect, itertools, functools and math, plus ListNode, TreeNode, BFS, Dijkstra, union-find and trie templates, type hints and mypy, each type with what its operations cost.
The checkout, the object store, refs, linked worktrees and the agent sessions on top of them, one part per chapter, until three agents editing one repository fit on one map.
The parser, bytecode, the interpreter loop, the profile, JIT tiers and deoptimization, the ahead-of-time compiler, the native binary and saved profiles, added one part at a time with one function in Python, TypeScript, Java and Go.
How a reasoning model is put together, part by part: the decode loop and the thinking block, the 0-or-1 checker and the RL loop that trained the habit, then the effort setting, the vote, the bill and the small students that copy it.
Ten thousand clients hit one 4-core server, and each waits 100 ms on a database. The parts that hold those waits, one at a time: sockets, threads, pools, epoll, event loops, runtime schedulers and Python’s lock, measured in Java, Node, Go and Python.
Every part of a transformer language model, one chapter each, on one map of GPT-2 small: tokenizer, embeddings, attention, MLP, output head, sampler, KV cache, and the encoder side of the 2017 original.
How LoRA fine-tunes a frozen model, part by part: two thin matrices beside each weight, the side path they run on, which matrices get them, training, rank, and how the result is merged or served.
The parts of an AI assistant a prompt injection passes through, one per chapter (the model, the prompt, the inbox, retrieval and memory, tools, the exits), then the filter, tool scope, egress allow-list, quarantined reader and approval gate that contain it.
Traces, a golden set, a runner, code checks, human review, an LLM judge, statistics, a merge gate and a canary, one part per chapter, on one refund agent’s prompt change.
The numbers that set what a model costs and how fast it answers, one part of the server at a time.
The model call, the request, the loop, tools and MCP servers, the router, memory, the plan, the policy gate, the approval queue, the output check and the trace store, one part per chapter, on one support agent refunding a double charge.
A federal HR assistant answers from 2 million words of US law, part by part: the loader, chunker, embedding model, vector index, reranker and prompt builder that turn an $800 guess into a cited $1,500.
The parts of a neural network, one per chapter, built around one handwritten 7: pixels, neurons, layers, softmax, loss, backpropagation, convolution and recurrence, with every number from one real run.
Typing google.com into a fresh Chrome, part by part: the input path, the address bar, DNS, TCP, TLS 1.3 with a post-quantum key share, Google’s edge, HTTP/2, the servers behind it, the renderer, and what QUIC and the HTTP cache change.