Digging Up Code Graves in Ruby
summary
Claim: Ruby's standard library exposes Ruby Coverage stdlib which reports per-line execution counts so experiments reveal which branch never runs. Example: a transcript-grading implementation toggles between generic and plus/minus strategies via a feature flag; Coverage shows one path with zero hits. Operational signals include flags at 100% traffic for long periods. Tooling suggestions include logging and the circles utility to do or die to warn or crash after a deadline. Costs shown: wasted API calls, extra tests, slower onboarding.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:20Code Hygiene
- 3:10Dead Code
- 6:41Feature Toggles
- 10:41Example
- 15:15Strategies
- 19:56What if








