rtrim()
rtrim() is simple if you keep it on paper. Sara uses it for Sara walking through rtrim in a campus project.
Do rtrim() once by hand. one rtrim step Sara can write from memory. Change one input. Say the new result out loud.
Skip rtrim() and skipping the failure case for rtrim shows up in a campus project.
Sara ships rtrim() in a campus project. That is the use case worth saying.
If Sara walking through rtrim breaks under rtrim(), check skipping the failure case for rtrim first.
Place rtrim() next to nearby PHP work — one rtrim step Sara can write from memory is the link.
One breath for rtrim(), then Sara walking through rtrim, then skipping the failure case for rtrim. Sit down.
Board: Sara walking through rtrim. Dry-run rtrim(). Name the trap: skipping the failure case for rtrim.