Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Agile Design
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Rick Liu
March 25, 2016
Technology
90
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Agile Design
Requirements change and softwares rot.
We can write code more resilient to changes.
Rick Liu
March 25, 2016
Transcript
13 slides
Agile Design
Softwares rot • Difficult to change • Fragile • Dependencies
• Needless Complexity • Needless Repetition • Difficult to understand
The COPY Program
Requirements Write a program that copies characters from the keyboard
to the printer.
The initial design Copy Read Keyboard Write Printer char char
Version 1 of Copy program 1 def copy 2 while
c = Keyboard.read do 3 Printer.write(c) 4 end 5 end
Change requirements The Copy program should also be able to
read from paper tape reader.
First modification of Copy program 1 pt_flag = false 2
3 def copy 4 while c = (pt_flag ? PaperTape.read : Keyboard.read) do 5 Printer.write(c) 6 end 7 end
Give ‘em an inch The customers would sometimes like the
Copy program to output to the paper tape punch.
Second modification of Copy program 1 pt_flag = false 2
punch_flag = false 3 4 def copy 5 while c = (pt_flag ? PaperTape.read : Keyboard.read) do 6 punch_flag ? Punch.write(c) : Printer.write(c) 7 end 8 end
Responding to change 1 class KeyboardReader 2 def read 3
Keyboard.read 4 end 5 end 6 7 8 def copy(reader=DefaultReader) 9 while c = reader.read do 10 Printer.write(c) 11 end 12 end
Agile Design A process, not an event Continuous improvement Principles,
patterns, practices Keeping the design clean
Books • Agile Software Development, Principles, Patterns, and Practices, by
Robert C. Martin • Working Effectively with Legacy Code, by Michael Feathers
More Decks by Rick Liu
See All by Rick Liu
Functional Programming Concepts
rickliu
0
250
You Don't Need a JavaScript Framework
rickliu
0
140
Safe Navigation in Ruby 2.3
rickliu
0
79
Active Job in Rails 4.2
rickliu
0
69
Other Decks in Technology
See All in Technology
高品質と高スピードを支える品質のシフトレフトのアプローチ
goyoki
3
890
Kiro Web 入門 (サインインから、頼み方、PR の受け取り、クラウドの決まりまで) | 目指せ Kiro マスター 04
inariku
PRO
2
110
An Introduction to Context Ontology Accelerator (teaching AI agents what your data means)
inariku
PRO
1
240
ぼくのClaude Codeの使い方
falken
PRO
4
6.7k
Active Directory と Entra ID のむむむな関係
murachiakira
PRO
4
1.8k
ゼロから作るWebアプリの新定番!?Amplify Gen 2 × AWS Blocksで実現する「開発速度とRDBの柔軟性のいいとこ取り」
amixedcolor
1
250
Steering と Hook (チームの決まりを守らせる) | 目指せ Kiro マスター 06
inariku
PRO
2
120
Claude Securityを使ってみた / claude-security-claude-code-meetup-nagoya
tnir
0
110
人間+AIを「チーム」としてプロセスを再設計する
littlehands
1
1.6k
Shared Signals Framework 仕様解説
oidfj
0
430
Quick Automate | 目指せ Quick マスター 12
inariku
PRO
1
110
マネジメントされる側の仕事は「文句」を言うこと
riyaamemiya
2
740
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
810
Are puppies a ranking factor?
jonoalderson
2
4.2k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Marketing to machines
jonoalderson
1
6k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
How to train your dragon (web standard)
notwaldorf
96
6.9k
BBQ
matthewcrist
90
10k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
300
The Curse of the Amulet
leimatthew05
4
17k
Large-scale JavaScript Application Architecture
addyosmani
516
110k