Skip to content

🐍 Python Engineering & Algorithmic Core

Production Python — Từ Scripting đến System Engineering

Không chỉ "viết Python chạy được" — mà viết Python đúng chuẩn engineering: type-safe, testable, profiled, packaged. Từ object model internals đến async/await production patterns.

ModulesLessonsDuration
62645–65 giờ

📋 Overview

Learning Outcomes

  • ✅ Hiểu sâu Python object model: everything is an object, descriptor protocol, MRO
  • ✅ Áp dụng type hints + mypy cho production codebases
  • ✅ Master async/await: event loop internals, task scheduling, concurrency patterns
  • ✅ Thiết kế testing strategy: unit, integration, property-based testing
  • ✅ Đóng gói và distribute Python packages chuẩn PyPI
  • ✅ Profile và optimize: cProfile, memory_profiler, line_profiler
  • ✅ Viết code Python đạt chuẩn engineering team review

Prerequisites

  • Viết được Python cơ bản: functions, classes, list comprehensions
  • Hiểu import system và module structure
  • Đã sử dụng pip install và virtual environments
  • Nắm cơ bản OOP concepts

🗺️ Suggested Roadmaps


📚 Curriculum Tree

⚠️ Curriculum Index Preview: Đây là bản preview cấu trúc curriculum — hiển thị danh sách module, lesson titles, và exercise types. Nội dung bài học đầy đủ (lecture notes, code examples, exercises có lời giải) nằm trong Premium Pack.

bundle-python--mod-01: Python Object Model & Memory (4 lessons)
Object Model: id, type, value

Mutability, identity vs equality, interning, small integer cache

Exercise Types:

  • 🔍 SpotTheBug
  • 🎯 ScenarioChoice

⏱️ ~45 phút · 📊 intermediate

Memory Management: Reference Counting & GC

Cycle detection, gc module, weakref, memory profiling

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~50 phút · 📊 advanced

Descriptors, Properties & __slots__

Data vs non-data descriptors, property protocol, memory savings

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~45 phút · 📊 advanced

The GIL: What It Is and What It Isn't

Thread safety myths, CPU-bound vs IO-bound, multiprocessing escape

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~40 phút · 📊 intermediate

bundle-python--mod-02: Type System & Modern Python (5 lessons)
Type Hints Fundamentals

Basic annotations, Optional, Union, Literal, TypeAlias

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~40 phút · 📊 beginner

Generics & Protocols

TypeVar, Generic classes, structural subtyping with Protocol

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~50 phút · 📊 intermediate

Dataclasses & Attrs

Field specifications, frozen, post_init, slots, comparison

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~40 phút · 📊 intermediate

Pattern Matching (Structural)

match/case, guard clauses, class patterns, exhaustiveness

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~45 phút · 📊 intermediate

Mypy & Runtime Type Checking

Strict mode, plugin system, Pydantic, beartype

Exercise Types:

  • 🔍 SpotTheBug
  • 🎯 ScenarioChoice

⏱️ ~40 phút · 📊 intermediate

bundle-python--mod-03: Async/Await & Concurrency (4 lessons)
Coroutines & Event Loop Internals

Generator-based vs native coroutines, event loop lifecycle

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~55 phút · 📊 intermediate

asyncio Patterns: Tasks, Gather, Semaphore

Fan-out/fan-in, rate limiting, timeout handling, cancellation

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~50 phút · 📊 intermediate

Threading vs Multiprocessing vs Async

Decision matrix, Pool patterns, shared state pitfalls

Exercise Types:

  • 🎯 ScenarioChoice
  • 🏗️ ArchitectureDragDrop

⏱️ ~45 phút · 📊 intermediate

Async Context Managers & Iterators

aiohttp, async generators, structured concurrency (trio/anyio)

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~45 phút · 📊 advanced

bundle-python--mod-04: Testing & Quality Engineering (5 lessons)
pytest Fundamentals & Fixture Architecture

Fixture scopes, conftest, dependency injection pattern

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~45 phút · 📊 beginner

Parametrize & Test Matrix Design

Edge case generation, equivalence partitioning, boundary values

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~40 phút · 📊 intermediate

Mocking: unittest.mock & pytest-mock

When to mock, mock hell, dependency injection over mocking

Exercise Types:

  • 🔍 SpotTheBug
  • 🎯 ScenarioChoice

⏱️ ~45 phút · 📊 intermediate

Property-Based Testing with Hypothesis

Strategies, shrinking, stateful testing, finding edge cases automatically

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~50 phút · 📊 advanced

Coverage, Mutation Testing & CI Integration

Branch coverage, mutmut, pytest-cov, coverage thresholds

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~35 phút · 📊 intermediate

bundle-python--mod-05: Packaging & Distribution (4 lessons)
Virtual Environments & Dependency Resolution

venv, pip, pip-tools, uv — resolution algorithm, lock files

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~35 phút · 📊 beginner

pyproject.toml & Modern Packaging

PEP 621, build backends, setuptools vs hatch vs poetry

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~40 phút · 📊 intermediate

Publishing to PyPI

Build, test, upload workflow, trusted publishing, versioning

Exercise Types:

  • 🧩 Parsons
  • 🎯 ScenarioChoice

⏱️ ~35 phút · 📊 intermediate

Docker + Python: Production Patterns

Multi-stage builds, slim images, non-root user, health checks

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~45 phút · 📊 intermediate

bundle-python--mod-06: Performance & Profiling (4 lessons)
Profiling: cProfile & line_profiler

Finding bottlenecks, flame graphs, snakeviz visualization

Exercise Types:

  • 🎯 ScenarioChoice
  • 🔍 SpotTheBug

⏱️ ~40 phút · 📊 intermediate

Memory Profiling & Optimization

tracemalloc, objgraph, generator pipelines, slots

Exercise Types:

  • 🔍 SpotTheBug
  • 🎯 ScenarioChoice

⏱️ ~45 phút · 📊 advanced

NumPy Vectorization & Algorithmic Speedups

Broadcasting, ufuncs, avoiding Python loops, benchmarking

Exercise Types:

  • 🧩 Parsons
  • 🔍 SpotTheBug

⏱️ ~50 phút · 📊 advanced

Cython & Numba: Compiled Python

When to use, JIT compilation, type annotations for speed

Exercise Types:

  • 🎯 ScenarioChoice
  • 🧩 Parsons

⏱️ ~45 phút · 📊 expert


📦 What You Get

  • PDF lecture notes (32 bài, kèm code examples)
  • Obsidian vault với Python pattern library
  • Project templates: package structure, CI config, test setup
  • Profiling scripts và benchmark templates

Lifetime updates: cập nhật theo Python minor versions (3.12, 3.13+). Type system changes tracked.


Câu hỏi thường gặp

Quy trình mua hàng như thế nào?

Bạn nhắn tin qua Messenger với bundle muốn mua. Đội ngũ PENALGO sẽ xác nhận đơn hàng, hướng dẫn thanh toán qua chuyển khoản ngân hàng, và gửi link Google Drive chứa tài liệu trong vòng 24 giờ sau khi xác nhận thanh toán.

Tài liệu được giao dưới dạng gì?

Mỗi bundle bao gồm: PDF lecture notes (full diagrams), Obsidian vault (backlinks & graph view), code templates theo ngôn ngữ, và toàn bộ được đóng gói trong Google Drive ZIP. Bạn nhận link tải một lần và sở hữu vĩnh viễn.

Chính sách cập nhật tài liệu ra sao?

Lifetime updates — mỗi phiên bản mới được gửi qua email đăng ký kèm changelog chi tiết. Tối thiểu 2 lần cập nhật mỗi năm cho mỗi bundle, bổ sung case studies mới và cập nhật theo phiên bản công nghệ.

Tôi có thể hoàn tiền không?

Hoàn tiền 100% trong vòng 24 giờ kể từ khi nhận tài liệu, không cần lý do. Sau 24 giờ, do tính chất digital của sản phẩm, chính sách hoàn tiền không còn áp dụng.

Nên mua bundle nào trước?

Tuỳ mục tiêu: Chuẩn bị phỏng vấn → bắt đầu với Algorithms & Data Structures Core. Muốn lên senior → System Design Universe. Chuyển sang DevOps → Docker Masterclass + Infrastructure & DevOps. Xem mục Roadmaps để tìm lộ trình phù hợp nhất với career path của bạn.

Roadmap hoạt động như thế nào?

Mỗi roadmap là một lộ trình học tập được thiết kế cho một mục tiêu nghề nghiệp cụ thể. Roadmap gợi ý thứ tự học các module từ nhiều bundle khác nhau, kèm milestone checkpoints để tự đánh giá tiến độ. Roadmap là hướng dẫn — bạn vẫn cần mua bundle tương ứng để truy cập nội dung.

Curriculum Tree trên web hiển thị gì?

Curriculum Tree là bản preview cấu trúc module/lesson — cho thấy phạm vi và độ sâu của mỗi bundle. Đây là metadata (tiêu đề, mục tiêu, tags), không phải nội dung bài học đầy đủ. Nội dung chi tiết nằm trong Premium Pack khi bạn mua.

Tài liệu có phù hợp với người mới bắt đầu không?

Mỗi bundle ghi rõ prerequisites (yêu cầu đầu vào) — kiểm tra trước khi mua. Đa phần bundle yêu cầu kiến thức nền tảng cơ bản. Nếu bạn đã nắm vững prerequisites, tài liệu sẽ đưa bạn từ intermediate lên production-grade level.

Tôi có thể xem trước nội dung bài học không?

Curriculum Tree trên web cho phép bạn xem danh sách module, lesson titles, mục tiêu, và exercise types. Đây là preview đủ để đánh giá scope và depth. Nội dung bài học đầy đủ (lecture notes, code examples, exercises) chỉ có trong Premium Pack.

Hỗ trợ kỹ thuật khi gặp vấn đề với tài liệu?

Liên hệ qua Messenger hoặc email hỗ trợ. Đội ngũ phản hồi trong vòng 24 giờ (ngày làm việc). Hỗ trợ bao gồm: vấn đề tải file, lỗi format, câu hỏi về nội dung, và gợi ý lộ trình học tập.

Có giảm giá khi mua nhiều bundle không?

Có chính sách combo khi mua từ 3 bundle trở lên. Nhắn tin qua Messenger để nhận báo giá combo phù hợp với mục tiêu học tập của bạn.


💬 Mua ngay

Xin chào! Tôi quan tâm đến bundle "Python Engineering & Algorithmic Core" (bundle-python). Tôi muốn biết thêm thông tin và cách mua.

💬 Mua qua Messenger

Nội dung đầy đủ được giao trong Premium Pack qua Google Drive.


Quay lại Premium Vault · Xem Roadmaps

Cập nhật lần cuối: