Rename pattern to Slice with Lambda; add no-loop minimal shape and capture-to-parameter lesson

This commit is contained in:
Your Name
2026-09-29 13:32:47 +00:00
parent c153aba61e
commit f9bb7b982a
2 changed files with 37 additions and 4 deletions
@@ -1,6 +1,6 @@
# Split Loop with Lambda — storyboard / handout
# Slice with Lambda — storyboard / handout
Step-by-step mechanics of the **Split Loop with Lambda** refactoring, one diagram per
Step-by-step mechanics of the **Slice with Lambda** refactoring (formerly called "Split Loop with Lambda"), one diagram per
step, each step followed by the exact code (full before/after, highlights as `←`
comments). Written to be sliced into slides later; until then it works as a handout.
@@ -8,6 +8,7 @@ Sources: `../zeroth-draft-of-refactoring-pattern.md` (the mechanics),
`../split-loop-with-lambda-learning-hour.md` (where we stop: after step 3 + the test),
`../exercise/rehearsal-findings.md` (the drift anti-pattern and the "both calls!"
caution). Java only. Pristine start: `../exercise/java`, end state: `../exercise/solution`.
C# demo examples live at `../exercise/csharp/` (MetaphorFree.cs, WeatherStation.cs, IceCreamShop.cs), and there is a reveal.js deck at `/home/cardfanatic/qwan/slides-rjs/decks/slice-with-lambda/slides.md`.
## How to read the diagrams