KayavakLibrary

Kayavak / What's new

What's new

New books, chapters and features

New books, chapters and features, newest first. To hear about them without coming back to check, follow Kayavak. Each chapter also shows when its text last changed.

  1. Easier to read, in every theme; concepts in search

    Every colour now meets 4.5:1 contrast in the light, sepia and dark themes, links in running text are underlined, wide code blocks and tables can be scrolled from the keyboard, and long inline code wraps on phones. Search now finds trails and every concept in the library. Two forward references to the wrong volume were corrected.

  2. Concepts, offline books, predict-first code and two new trails

    Concepts lists every idea defined in the library's glossaries (1,270 of them), each with its home chapter, and the 63 that cross three or more books, side by side. Any book can now be kept for offline reading from its contents page, and the pages you read are kept too, in your own browser. A new reading setting, Predict outputs before seeing them, hides each program's output until you've written down what you expect. Code walkthroughs that quote a project at a commit now link each quoted file to that exact version. Two new trails: Java from the language to the machine, and tests you can trust.

  3. Seven new scenes for the Java chapters of The Backend

    Step-through scenes for chapters 33 to 41: why == on boxed integers matches at 127 and not at 128, how dynamic dispatch picks the method, how type erasure lets a wrong type in and fails far away, how lazy streams pull one element at a time and stop early, how sealed types make a new case a compile error, how the JIT warms code from the interpreter to C2 and back, and where the bytes go in an int, an Integer and a HashMap entry.

  4. Backend projects: companion, build stage 56 and release 0.3.0

    Chapter 55, the end of Volume 3, gains its companion and the Volume 3 capstone stage of the TiffinBox build. The chapter's definitions of done, run against TiffinBox's server, passed 8 of 13: every API access rule held, while the web pages let anyone read any receipt and order as anyone. The stage fixes that, puts the checks in the release check, keeps or re-points every promise earlier stages made, and ships release 0.3.0. A new scene in chapter 55 shows why a definition of done checks only the doors it lists. Nine forward references to the wrong volume in earlier stages are corrected.

  5. Fixed: empty quizzes on practice pages

    Exercise, companion and TiffinBox build chapters showed a 'Chapter quiz' heading with 0 questions, volume pages a '0 quizzes' chip, and the reading desk '0 of N quizzes passed'. Chapters without a quiz now show none, the last session ends with a link to the next chapter, quiz counts only count chapters that have one, and the site check fails on any quiz without questions. Two shelves were added to the plan: Mental Models and Contributing to Open Source.

  6. Backend testing: companion, build stage 55 and a mutation-testing scene

    Chapter 54 gains its companion (TiffinBox's own suite, tested: a mutation run that 'killed' every mutant because the tests couldn't run, 18 of 38 access-rule mutants surviving 78 passing tests, a test over every route that found a validation-before-authentication leak, and a flaky test found by running the suite twenty times; Spring's test context cache as an LRU, from source), TiffinBox's stage 55, and a step-through scene of mutation testing. Open

  7. Caching: companion, build stage 54 and an invalidation-race scene

    Chapter 53 gains its companion (measured on TiffinBox, which has no database to cache in front of: a reconnect stampede of 600 kitchen pages that held up orders at every other kitchen because each page rebuilt its snapshot under a shared lock, fixed with caches keyed by each kitchen's version, no TTL and no purge, and what a cache must leave out; Spring's @Cacheable(sync = true) from source), TiffinBox's stage 54, and a step-through scene of the invalidation race and how versions end it. Open

  8. Resilience: companion, build stage 53 and a circuit-breaker scene

    Chapter 52 gains its companion (a slow-disk game day on TiffinBox: one slow instance of two cut 36,513 orders in 20 seconds to 41, because orders queued on a per-customer lock no metric could see; shedding on the oldest write in progress, with readiness that holds still, brought it to 40,194; Spring 7's @ConcurrencyLimit blocks by default, from source), TiffinBox's stage 53 (fault injection, admission control, overload-aware readiness, job deadlines), and a step-through scene of a circuit breaker. Open

  9. Async work and messaging: companion, build stage 52 and an outbox scene

    Chapter 51 gains its companion (measured: a dashboard that made every beacon wait 105 ms by holding a lock while it sorted, compaction rewriting ten bytes per byte written, the JDK's scheduler silently cancelling a job that threw once, and per-request lines turned into a daily who-and-what report; Spring's scheduler error handling from source), TiffinBox's stage 52 (jobs with visible health, the summary off the lock, compaction with a ratio, a usage report), and a step-through scene of dual writes against the transactional outbox. Open

  10. Spring Security: companion, build stage 51 and a PKCE scene

    Chapter 50 gains its companion (measured: an API where anyone could read, cancel and accept any order; an access rollout in report mode that found 124 protected requests from our own tests before anything was refused; a correctly signed token with two roles; browser streams that can only carry cookies; Spring Security's bearer-token resolver and login redirects from source), TiffinBox's stage 51 (signed tokens with key rotation, a session cookie, one place for access rules), and a step-through scene of OAuth 2.0 with PKCE through a backend-for-frontend. Open

  11. Persistence: companion, build stage 50 and a persistence-context scene

    Chapter 49 gains its companion (measured on TiffinBox's own order log: a log that couldn't open past 2 GiB, restarts growing with every order ever placed, compaction that cut the files by a third but not the state, and 40 kill -9s with nothing lost; Kafka's log cleaner from its source), TiffinBox's stage 50 (windowed reading, segments, crash-safe snapshots, idempotency-key retention), and a step-through scene of one transaction's persistence context: identity, N+1, dirty checking, versions and detached entities. Open

  12. Spring Web: companion, build stage 49 and a dispatcher scene

    Chapter 48 gains its companion (measurements: a text format that accepted orders for kitchens that don't exist, one request reading the clock three times across 11:00, problem details that a kitchen screen would have shown the cook as JSON, and a deprecation whose every user was our own code), TiffinBox's stage 49 (an order service and its controller, one instant per request, typed JSON bodies, problem details, Deprecation and Sunset headers), and a step-through scene of one request through Spring MVC. Open

  13. Spring Boot: companion, build stage 48 and a probes scene

    Chapter 47 gains its companion (measurements: a server that said ready while its first requests were twenty times slower; restarts behind haproxy that lost 8 to 10 orders until the server waited after saying not ready; a 44 ms stall on pages over 8 KB from Nagle's algorithm), TiffinBox's stage 48 (live and ready endpoints, warm-up, drain, TCP_NODELAY), and a step-through scene on liveness versus readiness. Open

  14. Chapter 46: wired, not reached for

    Companion and TiffinBox stage for Spring Core: a time zone the JDK turns into GMT when misspelt, one order priced three ways by three zones, property sources that hide shadowed values, and business days of 23 and 25 hours. New scene: what you get back is a proxy. Open

  15. Chapter 45: through the middle

    Companion and TiffinBox stage for HTTP API design, measured through nginx as a shared cache: a proxy that speaks HTTP/1.0, responses stored and served after they changed, a no-cache menu no shared cache would keep, and a contract check for breaking changes. New scene: what a cache in the middle does with your headers. Open

  16. Chapter 44: find one request

    Companion and TiffinBox stage for backend fundamentals: request ids from the user's screen to the log line, an asynchronous access log measured against a slow destination, request context lost across threads, and a graceful shutdown that no longer waits for idle connections. New scene: graceful shutdown. Open

  17. Chapters 41–43: memory, packaging, builds

    Companions and TiffinBox stages for memory and performance, modules and packaging, and build systems, with measured findings: a retry cache that kept stale orders, allocation profiles that disagree with themselves, a slim runtime that started slower, and a test that Gradle skipped after the file it checks was broken. Two new scenes: the class path, and a build as a graph of inputs. Open

  18. Five new trails, and practice everywhere you revise

    New trails for security, data engineering, mobile, product engineering, and testing with design. Each trail step and each recap now links to the chapter's exercises, companion and TiffinBox stage, and recaps include the misconceptions each companion corrects. The Workbench lists every step-through scene, including a new one on the class path. Open

  19. Go in the browser, ten more languages, QR codes and a Follow page

    Go now runs in your browser. Java, C, C++, Rust, Kotlin, C#, Zig, Haskell, Scala and Swift can run on Compiler Explorer, only after you agree to send the code there. Share and the Desk show QR codes for phones. A new Follow page explains how to get new chapters in a feed reader, and Shelves lists the subjects still to come. Open

  20. Run the code, and diagrams that move

    Code examples in chapters now have a Run button: JavaScript, TypeScript, Python (with NumPy) and SQL run in your browser, and the Workbench has a code bench to edit and share them. Eleven step-through diagrams show how things move: a page load, the TCP handshake, hash tables, consistent hashing, cache-aside, CPU caches, a race condition, the event loop, B-trees, Raft and load balancing. Open

  21. A front door, trails, sessions and your desk

    A new front page for every reader, with trails for eight goals and how long each takes. Books sit on the Shelves, reading orders and guides on Trails, practice on the Workbench, revision sheets under Recaps. Chapters are split into sessions of about ten minutes, each ending with a question. Your desk shows all your progress and moves it to another device with a file or a link. Every chapter has a share button, an updated date and a way to send corrections. Open

  22. Volume 3 companion, chapters 33 to 36, and four new build stages

    Companion pages for Language Foundations, OOP, Collections and Generics, and TiffinBox stages 34 to 37: a compiler plugin for language traps, a golden master, a kitchen queue rebuilt as an index, and typed keys. Open

  23. A calmer reading room, full-screen diagrams and recaps

    New layout, search across every book, reading settings, an outline beside each chapter, diagrams you can open full screen, and every revision sheet gathered by volume. Open

  24. The practice shelf

    Exercise books and companions for Volumes 1 and 2, and the TiffinBox Build: one ordering service grown chapter by chapter. Open

  25. The Lab beside every chapter

    A whiteboard on every chapter, and interactive tools for Volume 1: bytes, numbers, hash tables, sorting, logic, caches, scheduling, subnets and a tiny compiler.

  26. The whole Software Engineering shelf: 25 volumes

    From how a computer works to running systems in production, every volume in the same shape. Open

  27. Kayavak becomes a library

    The first book on the shelf: Foundations of Computing, starting from zero.