Week 2 - Structuring Pipelines

Introduction to Data Pipelines

Configuration & Secrets (.env)

Separation of Concerns

OOP vs Functional Programming

Dataclasses for Data Objects

Functional Composition

Testing with Pytest

Linting and Formatting with Ruff

Practice

Gotchas & Pitfalls

Week 2 Assignment: Clean Pipeline

Week 2 Glossary

Going Further

Career relevance: Week 2

Week 2 Kickoff Slides

๐Ÿ“Š Week 2 Kickoff Slides

The slide deck used in the Week 2 in-class kickoff session. The deck covers: welcome back + recap, the live quiz, chapter-by-chapter tour (Ch1-8), two live exercises from the practice chapter, the agenda card, the assignment scaffold tour, and the closing hand-written reflection.

<aside> ๐Ÿ’ก Use this as a recap. If you missed class or want to re-walk the agenda, the deck mirrors the structure of the lesson: same section numbers, same order. Especially useful for the assignment-launch walk-through (ยง8) when you start the assignment at home.

</aside>

Download

week_2__presentation.pdf

week_2__presentation.pdf

What's in it

The slides are deliberately student-facing only. The teacher's per-section script (pacing, quiz answer cribs, exercise reference solutions, deep-dive default topics, closer rubric) lives in the GitHub-only week_2__lesson_plan.md (visible on GitHub only; not synced to Notion, so no link from this page).

Practice exercises (referenced in the live exercise slides)

The two live exercises the deck showcases come from the Learning-Resources repo. One Codespace covers both:

Section Exercise Codespace folder
ยง3 Live Exercise A (recommended) Ex 3: Separate I/O from Logic data-track/week-2/exercise_3/
ยง3 Live Exercise A (alternative) Ex 1: Move Secrets to .env data-track/week-2/exercise_1/
ยง7 Live Exercise B (recommended) Ex 4: Write Tests with Pytest data-track/week-2/exercise_4/
ยง7 Live Exercise B (alternative) Ex 2: Model Data with a Dataclass data-track/week-2/exercise_2/

The teacher chooses which to run live based on quiz wrong-pick patterns. Solutions live in each exercise_N/solutions/ folder.


The HackYourFuture curriculum is licensed underย CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with โค๏ธ by the HackYourFuture community ยท Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.