The Fewer the Concepts, the Better the Code
summary
Claim: minimizing the number of distinct concepts in code increases who can read and safely change it. Evidence: two Ruby implementations of the same task show RuboCop metrics flagging the idiomatic version as higher complexity while a concept count finds 13 concepts versus 9 concepts in the grotty loop, so the loop is learnable by more engineers. Tools and examples include RuboCop, RSpec, Rails routing concerns, a tax example, Stitch Fix deployment work, Twitter’s Scala School, and tradeoffs like Heroku vs RDS vs EC2.
AI-written summary · about
chapters (12)
- 0:00Start
- 0:31Justin
- 1:33Code Reviews
- 5:02Rubocop Metrics
- 7:23cart1.rb concepts
- 8:14cart2.rb concepts
- 12:08Josh's Contributions
- 14:47Understanding
- 17:39add_taxl.diff
- 19:45triangle_spec.rb
- 20:43config/routes.rb
- 25:47Monolith vs. Microservices








