Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Primer on the 4 Rules of Simple Design
Search
Marty Haught
September 15, 2016
Technology
71
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Primer on the 4 Rules of Simple Design
A short introduction to the 4 Rules of Simple Design given at Boulder Ruby in 2015 and 2016.
Marty Haught
September 15, 2016
More Decks by Marty Haught
See All by Marty Haught
Baltic_Ruby_Keynote_2025.pdf
mghaught
0
120
State of RubyGems 2024
mghaught
0
280
Interviewing Developers - Boulder Ruby May 2018
mghaught
1
150
The Prototyping Mindset - Devoxx.us 2017
mghaught
0
210
Make Better Decisions
mghaught
0
210
Make Better Decisions
mghaught
0
52
Ruby Community: Awesome; Could be Awesomer
mghaught
2
310
Ruby Community: Awesome; Could be Awesomer
mghaught
4
210
Other Decks in Technology
See All in Technology
設計の世代交代を乗り越える、14年続くAndroidアプリの開発戦略
sansantech
PRO
1
120
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.5k
なぜSRE・セキュリティは評価されないのか?守りの組織を事業成長エンジンに変えた実践
cscengineer
PRO
3
2.1k
Benchmarking Vector Databases: pgvector vs. LanceDB
tsho
0
140
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
290
Claude Codeの体系的な理解と知識のフック
oikon48
10
6.7k
データエンジニアの困りごとをDevinと一緒に解消する
10xinc
2
790
Webとヘルスデータ
yukukotani
0
170
Beyond the Hype: Practical AI for Your Oracle Database with MCP
thatjeffsmith
1
230
PM領域でのAI Agentの活用
lycorptech_jp
PRO
0
270
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
140
Self Healing Rollouts: Automating Production Fixes with Agentic AI
kdubois
0
150
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.8k
Context Engineering - Making Every Token Count
addyosmani
9
1.1k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
240
Ruling the World: When Life Gets Gamed
codingconduct
0
320
Odyssey Design
rkendrick25
PRO
2
800
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
360
Tell your own story through comics
letsgokoyo
1
1.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
640
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
230
The Spectacular Lies of Maps
axbom
PRO
1
970
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Transcript
Primer on the 4 Rules of Simple Design Marty Haught
@mghaught
Origin • Introduced by Kent Beck pre 2000 • via
Extreme Programming (XP) • Associated with “Do the simplest thing that could possibly work.”
Corey Haines http://bit.ly/4rules-boulderruby $11.99 • via Code retreats • Conway’s
Game of Life
The Rules 1. Tests pass 2. Expresses intent 3. No
duplication 4. Small
1. Tests Pass • Need to verify that your code/system
works • Automated tests are the fastest way to verify
2. Expresses Intent • Intention revealing • You can quickly
look at it and know what it does • Not bad naming, unclear or inaccurate • Does the method/variable match the language you use to describe it?
3. No Duplication • DRY - Don’t Repeat Yourself •
Commonly thought of as repetition in code structure (lines of code) • Also knowledge duplication • "Every piece of knowledge should have one and only one representation."
4. Small • No extraneous parts to the code •
Does everything there have a purpose? • Is it still being used? • Did I extract too far?
Resources • Corey’s Book: http://bit.ly/4rules-boulderruby • XP wiki: http://c2.com/cgi/wiki?XpSimplicityRules •
JB Rainsberger: http://www.jbrains.ca/permalink/ the-four-elements-of-simple-design