Test-Driven Engineering AcademyRed ➔ Green ➔ Refactor

Master Real Engineering. One Passing Test at a Time.

Tutorial videos give you the illusion of competence. Zero2One puts you directly in the driver’s seat: read concept-first lessons, write code in browser runtimes, and prove your solution against automated unit test suites and hidden adversarial edge cases.

100% In-Browser ExecutionVisible & Hidden Edge-Case GradingNo Local Setup RequiredXP & Daily Streaks
zero2one-tdd-runner v2.4
Phase 2 Drill
Pyodide WASM

LRU Cache / Token Bucket Rate Limiter

Implement a memory-bounded token bucket that refills tokens per second and rejects bursts when depleted.

SPECIFICATION SUITE4 assertions
1

test_initial_burst_allowed

bucket.consume(5, 0.0) == True

2

test_depleted_burst_rejected

bucket.consume(10, 0.1) == False

3

test_refill_elapsed_rate

bucket.consume(4, 2.0) == True

4

test_hidden_concurrency_jitter

[HIDDEN] adversarial timestamp jitter test

solution.py
class TokenBucket:
    def __init__(self, capacity: int, refill_rate: float):
        self.capacity = capacity
        self.refill_rate = refill_rate
        self.tokens = float(capacity)
        self.last_timestamp = 0.0

    def consume(self, tokens: int, now: float) -> bool:
        # Refill tokens based on elapsed delta
        delta = max(0.0, now - self.last_timestamp)
        self.tokens = min(self.capacity, self.tokens + delta * self.refill_rate)
        self.last_timestamp = now
        
        if self.tokens >= tokens:
            self.tokens -= tokens
            return True
        return False
Click "Run Test Suite" above to execute in-browser WASM tests

How Zero2One works

A tight loop of learn, build, test, and progress keeps you moving from first concept to shipping engineer.

STEP 1

Learn

Comprehensive, concept-first lessons that explain the why before the how.

STEP 2

Experiment

Run real code in your browser. No installs, no setup, instant feedback.

STEP 3

Practice & Get Tested

Solve graded drills against visible and hidden specification tests.

STEP 4

Master & Progress

Earn XP, keep streaks, and watch your career track come together.

Lesson-First + Hands-On Drill

We combined the best learning mechanics from Duolingo, Coursera, W3Schools, freeCodeCamp, and 01Edu into one engine.

Lesson-First

Coursera / W3Schools model

Concise conceptual exposition with key takeaways, demo code, and real-world context before any graded work.

Drill

01Edu / freeCodeCamp model

Graded hands-on application with visible and hidden specification tests. You only advance by proving skill.

Adaptive Placement

Duolingo + Udemy hybrid

Already know the basics? Test out of repetitive modules and unlock advanced checkpoints instantly.

In-Browser Execution

WebContainers + Pyodide + WASM

No local setup. Write code, run tests, and see results in a real runtime inside the browser.

Gamification

Duolingo-style retention

Daily streaks, freeze tokens, XP multipliers, and achievement unlocks keep learning momentum.

AI Vibe Evaluation

Prompt engineering mastery

Track 7 grades prompt quality, AST compliance, and agent outputs using LLM-as-a-Judge evaluation.

Progress you can see

XP, levels, streaks, and achievements turn consistent practice into long-term mastery.

Daily Streaks

1.2× at 7 days, 1.5× at 30 days. Freeze tokens protect your streak on busy weeks.

XP Multipliers

+50 XP per lesson, +20 first-try bonus, +250 capstones. Streaks multiply everything.

Achievements

Unlock badges for streaks, capstones, test-outs, and polyglot completion across tracks.

Why interactive beats passive

Reading about code is not the same as writing it. Zero2One puts a real runtime in your browser so you can experiment, break things, and fix them — the way engineers actually learn.

  • Run code instantly, no environment setup.
  • Prove understanding with graded tests.
  • Build streaks that keep you coming back.
  • Track XP and level up as you go.

THE LOOP

  1. 1 — LEARN the concept deeply
  2. 2 — EXPERIMENT in the browser
  3. 3 — PRACTICE with a graded drill
  4. 4 — RUN code + hidden tests
  5. 5 — FIX mistakes until green
  6. 6 — EARN XP + advance track

Start from zero. Ship with confidence.

Pick a track or course and write your first passing test today.