← 💻 Coding & Engineering Craft
Core
Testability and Dependency Injection
Code that reaches out to the clock, the network, the filesystem, or a random generator cannot be tested deterministically, because its output depends on the world. The fix is to separate pure logic from side effects and inject the things that touch the world (the clock, I/O, randomness) so a test can pass fakes. When you inherit untestable code, pin its current behavior with a characterization test first, then refactor under that net.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
LESSONS THAT TEACH THIS
Foundations of Forward Deployed EngineeringTranslate source data without losing its meaning30 min→The FDE EngagementChoose the integration path that meets the workflow and can be operated24 min→Foundations of Forward Deployed EngineeringLeave tests that catch regressions and explain their limits30 min→
PRACTICE THIS IN REAL QUESTIONS
ML System Design (Product)Design the ranking model for a personalized feed (Instagram-style).→System Design & Production EngineeringExplain how rate limiting works, fixed window, sliding window, token bucket. When does each break?→ML System Design (Product)Design a music recommendation system (Spotify-style).→ML System Design (Product)Design an evaluation framework for an ads-ranking system.→ML System Design (Product)Predict watch time for items in a video catalog, Netflix-style. How do you build it?→ML System Design (Product)Design a system to detect bots and inauthentic accounts in real time.→
