Abstract Algorithms
Explore

Start here

Python

Learn Python as a connected topic across chapters, concepts, simulations, and interview reasoning.

PythonMental ModelTradeoffsFailure ModesInterview ReasoningPythonic Code

Begin with

Pythonic Code gives you the cleanest entry point before branching into constraints, failures, and related systems.

34

Chapters

10

Concepts

Start With Pythonic Code

Grounding

Build the mental model.

Start Reading

Shape

See how the pieces depend on each other.

See Context

Consequence

Compare what improves and what breaks.

Compare Tradeoffs

Stress

Change constraints and watch behavior.

Practice Reasoning

Next

Move to the next useful edge.

Continue Reading

Related systems

Follow the nearby ideas

Use the map as a quiet orientation layer, then move back into the articles for depth.

Guidance

Python

Continues from what you have already explored.

System behavior

HyperLogLog Cardinality Estimation

Hash values route into registers, leading-zero runs update maxima, and the harmonic mean estimates unique cardinality with bounded error.

Open
Step 1 / 3Normal flow
itemprefixbucketmax rhoestimateuser idUInput StreamActorXHash FunctionComputeGPrefix RouterBoundaryDm RegistersDurabilityCHarmonic MeanCoordinatorSCardinality EstimateService

Read in sequence

1Pythonic Code: Idioms Every Developer Should KnowTLDR: Writing for i in range(len(arr)): works, but Python veterans will flag it in your first code review. Idiomatic Python uses enumerate, zip, comprehensions, context managers, unpacking, the walrus27 min2Python OOP: Classes, Dataclasses, and Dunder Methods📖 Why Every Java Developer Writes Un-Pythonic Classes on Day One Imagine a developer — let's call him Daniel — who has written Java for six years. He sits down to write his first Python class and pro22 min3List Comprehensions, Generators, and Lazy Evaluation in Python📖 The MemoryError That Launched a Thousand Generators Meet Priya. She is a data engineer at a logistics company, tasked with crunching a 10 GB CSV of shipping events. She opens her laptop, writes wha24 min4Functions in Python: Parameters, Return Values, and ScopeTLDR: Python functions are first-class objects, not just reusable blocks. They support keyword arguments, safe defaults with None, variadic *args/**kwargs, closures, and LEGB scope resolution. These f22 min5Functional Python: map, filter, itertools, and functools📖 The Nested-Loop Tax: When Five Stages of ETL Collapse Under Their Own Weight Picture this task. You receive a batch of raw order records from a sales API. Your pipeline must: (1) skip cancelled ord29 min6File I/O and Exception Handling in Python📖 The Config File That Took Down a Friday Deployment Picture this: it's 5 PM on a Friday. A developer pushes a new service to production. The deployment succeeds, but five minutes later the service i22 min7Python Data Structures: Lists, Dicts, Sets, and TuplesTLDR: Python's four built-in collections are not interchangeable — their internals are fundamentally different. list is a dynamic array: fast at the end, slow for membership. dict is a hash table: O(126 min8Python Basics: Variables, Types, and Control FlowTLDR: Python variables are labels that point at objects — not typed boxes. The type lives with the object, not the variable. Master truthiness, f-strings, for/while loops, and the handful of pitfalls 22 min9Async Python: asyncio, Coroutines, and Event Loops Without the Confusion📖 The 500-Second Problem: What Cooperative Multitasking Actually Fixes Suppose your monitoring pipeline checks the health endpoint of 1,000 internal microservices. Each HTTP call takes about 500 mill27 min10RAG vs Fine-Tuning: When to Use Each (and When to Combine Them)📌 TL;DR Summary Use RAG when facts change frequently and answers must be source-grounded. Use fine-tuning when you need stable behavior: tone, format, and domain-specific reasoning. Use RAG + fine-t31 min11Fine-Tuning LLMs with LoRA and QLoRA: A Practical Deep-DiveTLDR: LoRA freezes the base model and trains two tiny matrices per layer — 0.1 % of parameters, 70 % less GPU memory, near-identical quality. QLoRA adds 4-bit NF4 quantization of the frozen base, enab31 min12Build vs Buy: Deploying Your Own LLM vs Using ChatGPT, Gemini, and Claude APIsTLDR: Use the API until you hit $10K/month or a hard data privacy requirement. Then add a semantic cache. Then evaluate hybrid routing. Self-hosting full model serving is only cost-effective at > 50M 31 min

Showing the top 12 of 34 matching chapters.

Related threads

Abstract Algorithms · © 2026 · Engineering learning lab