CodeSnatch Logo
 ██████╗ ██████╗ ██████╗ ███████╗    ███████╗███╗   ██╗ █████╗ ████████╗ ██████╗██╗  ██╗██╔════╝██╔═══██╗██╔══██╗██╔════╝    ██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██╔════╝██║  ██║██║     ██║   ██║██║  ██║█████╗      ███████╗██╔██╗ ██║███████║   ██║   ██║     ███████║██║     ██║   ██║██║  ██║██╔══╝      ╚════██║██║╚██╗██║██╔══██║   ██║   ██║     ██╔══██║╚██████╗╚██████╔╝██████╔╝███████╗    ███████║██║ ╚████║██║  ██║   ██║   ╚██████╗██║  ██║ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝    ╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝    ╚═════╝╚═╝  ╚═╝

Learn · Earn · Connect

Tags

Abstraction

Abstraction

0 lessons
4 community items

abstraction

Community

4 items
Article

Type Hints, mypy, and the Runtime Truth

Python type hints are documentation that a static checker reads. The runtime ignores them. Here is what hints do, what mypy adds, and the libraries that validate at runtime on purpose.

py-type-hints
abstraction
fundamentals
interview-prep
design-patterns

1k

25

4.4 (10)

Apr 18, 2026

by @imanichen

Article

dataclasses, attrs, and pydantic: Pick One

Three libraries solve the data-container problem and they answer different questions. dataclasses for internal objects, attrs for power-user customisation, pydantic for validating external input.

py-dataclasses
py-type-hints
design-patterns
abstraction
interview-prep

306

9

4.4 (10)

Feb 3, 2026

by @yasminromero

Article

Adapter and Facade: The Two Patterns I Actually Use

Two structural patterns that survive every codebase: Adapter (when you cannot change the other side) and Facade (when you cannot change yours). The shape of each, and the small tells that say which one fits.

design-patterns
patterns
oop
abstraction
encapsulation

1k

27

4.3 (12)

Dec 15, 2025

by @sanjayward

Article

Dependency Injection Without a Framework

DI is a pattern, not a framework. The plain-language version (pass things in instead of newing them inside) covers ninety percent of cases. The trade-off versus DI containers, and where each one breaks down.

design-patterns
patterns
oop
abstraction
testing

490

5

4.3 (14)

Dec 4, 2025

by @ramijohansson