Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Part 130 min · narrated · preview

Written summary

  • Chapter 1: The Certainty Illusion--–- Every senior engineer eventually learns the same painful lesson: the rules that governed software for forty years stop working the moment you call an LLM.
  • They added retry logic.
  • A sorting algorithm does not occasionally decide to skip an element because it is "feeling lazy."
Read along — the full text

Chapter 1: The Certainty Illusion--–- Every senior engineer eventually learns the same painful lesson: the rules that governed software for forty years stop working the moment you call an LLM. This chapter is about why that happens, what replaces those rules, and how to think about LLM applications without losing your engineering identity.In early 2023, a mid-sized fintech company spent six weeks building what they called "the perfect prototype." Their internal chatbot could answer customer questions about transaction histories, explain fee structures, and even escalate disputes. The demo was flawless. The CEO was moved by its potential. Then they deployed to five hundred beta customers, and within forty-eight hours, the bot had hallucinated a nonexistent monthly fee, told three customers to "contact support at a disconnected phone number," and refused to answer a simple balance inquiry because it "felt uncomfortable sharing financial information."The engineers did what engineers always do: they wrote unit tests.

They added retry logic. They lowered the temperature parameter. They increased the prompt's verbosity. Nothing worked reliably, because they were trying to debug a stochastic system with deterministic tools.This chapter is the antidote to that story. You will learn why LLMs are fundamentally different from any other runtime you have worked with, what breaks when you treat them like normal APIs, and how to adopt a new engineering mindset called evaluation-driven development. By the end, you will stop thinking like someone who merely calls APIs and start thinking like someone who orchestrates probabilistic systems with rigor and confidence.The Comfort of DeterminismBefore we talk about LLMs, let us be precise about what "normal software" means and why it has felt so safe for so long.For the past four decades, we have built systems on a beautiful, comforting assumption: given the same inputs and the same internal state, a program produces the same outputs every single time.

A sorting algorithm does not occasionally decide to skip an element because it is "feeling lazy." A database query does not return slightly different rows depending on the phase of the moon. A compiler either works correctly or fails with a deterministic error message that you can reproduce on demand.This property is called determinism. It is the bedrock of debugging, testing, monitoring, and reasoning about systems. When a deterministic program misbehaves, you can trace the execution path, examine the state at each step, and identify exactly where the deviation occurred. You can write a unit test that reproduces the failure consistently. You can fix the bug and prove it is fixed because the test will pass deterministically forever, on every machine, in every time zone, under every load condition.Determinism gives us confidence.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in