SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
“Simple”
                          Design and Testing
               by @zspencer for @rubytaiwan on May 31, 2011
               http://www.zacharyspencer.com




                                                 @rubytaiwan
Wednesday, June 1, 2011
WTF is “SIMPLE?!”


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Everything is in my
            language of choice
                                                          It’s all in a single method!
                Took the fewest
                  keystrokes!

                                                          It’s aesthetically clean!

                      I just like it!


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Maximizing the amount
                  of work *not* done

                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
For Who?
                   •      The Users/Customers

                   •      The Stakeholders/Sponsors

                   •      The Team/You

                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Your Users




                           http://www.flickr.com/photos/57634636@N00/5134293410/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Your Stakeholders




                             http://www.flickr.com/photos/the_warfield/4992455554/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Your Team




                          http://www.flickr.com/photos/reinholdbehringer/1073165898/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Ok. How?


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Radiate Information
               Center Design On The User
               Write Changeable Code


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Radiate Information
               Center Design On The User
               Write Changeable Code


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Ok. How?


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
4 Rules for
                                 Simple Design
                  * Pass All Tests
                  * Duplicate No Behavior or Configuration
                  * Express Intent Clearly and Consistently
                  * Have No Superfluous Parts



                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
All Tests Must Pass!


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Automated Story Tests




                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Automated Unit Tests




                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Exploratory Testing




                              http://www.flickr.com/photos/rogersmith/4947063094/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
No Duplication




                              http://www.flickr.com/photos/vermininc/3327459367/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Smell Yer Code!




                                 http://www.flickr.com/photos/spine/2076612679/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Duplication Smells!
 http://rubylearning.com/blog/2010/11/08/how-does-your-code-smell/


                   •      Reinvented Wheel                  •   Data Classes

                   •      Combinatorial Explosion           •   Procedural Code

                   •      Middle Man                        •   Repeated Value

                   •      Greedy Methods/                   •   Big Classes
                          Modules


                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Express Intent
                  Clearly + Consistently!




                               http://www.flickr.com/photos/spacelion/263948300/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Reveal Why




                             http://www.flickr.com/photos/freeparking/2247693823/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
(Re)Name Stuff




                            http://www.flickr.com/photos/cinderellas_blog/255282013/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Extract and Move Stuff




                              www.flickr.com/photos/22746515@N02/2989699245/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Some More Smells!
 http://rubylearning.com/blog/2010/11/08/how-does-your-code-smell/


                   •      Uncommunicative Name              •   Global Variables

                   •      Type Included in Name             •   Dynamic Code Creation

                   •      Inconsistent Names                •   Comments

                   •      Long Parameters                   •   Complicated Booleans




                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
No Superfluous Parts!




                                http://www.flickr.com/photos/altuwa/4530651461/
                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
Photo Credits
                   •      Kids Using iPads: Kathy Cassidy
                                                            •   Walmart Storefront: Walmart
                                                                Corporate
                   •      The Boardroom: The Warfield

                                                            •   Breakdancer: Gueorgui
                   •      Software Team at Work: Reinhold
                          Behringer
                                                            •   Alfred Lord Tennyson: freeparking

                   •      Passing Test: Davey Brown
                                                            •   The Pelican: Cindy Andrie

                   •      Spy Plane: Roger Smith
                                                            •   Earth Mover: Bert Kaufmann

                   •      Octuplet Consumers:Vermin Inc.
                                                            •   Rube Goldberg Machine: Sebastian
                                                                B
                   •      Smelling Wine: Rick

                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011
More Learnin’
                   •      A List of Books and Articles on Simple Design and
                          Testing: http://bit.ly/simple_design_and_testing

                   •      Other Resources I Think Are Awesome (Broken Down by
                          Speciality): http://bit.ly/zspencer_recommends

                   •      Pillars Free Webinars: http://pillartechnology.com/content/
                          webinarbrowse

                   •      Other Free Pillar Resources: http://pillartechnology.com/
                          page/agilelinks

                     @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011


Wednesday, June 1, 2011

Más contenido relacionado

Último

H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Último (20)

H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Simple design and Testing by @zspencer for @rubytaiwan

  • 1. “Simple” Design and Testing by @zspencer for @rubytaiwan on May 31, 2011 http://www.zacharyspencer.com @rubytaiwan Wednesday, June 1, 2011
  • 2. WTF is “SIMPLE?!” @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 3. Everything is in my language of choice It’s all in a single method! Took the fewest keystrokes! It’s aesthetically clean! I just like it! @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 4. Maximizing the amount of work *not* done @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 5. For Who? • The Users/Customers • The Stakeholders/Sponsors • The Team/You @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 6. Your Users http://www.flickr.com/photos/57634636@N00/5134293410/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 7. Your Stakeholders http://www.flickr.com/photos/the_warfield/4992455554/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 8. Your Team http://www.flickr.com/photos/reinholdbehringer/1073165898/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 9. Ok. How? @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 10. Radiate Information Center Design On The User Write Changeable Code @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 11. Radiate Information Center Design On The User Write Changeable Code @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 12. Ok. How? @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 13. 4 Rules for Simple Design * Pass All Tests * Duplicate No Behavior or Configuration * Express Intent Clearly and Consistently * Have No Superfluous Parts @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 14. All Tests Must Pass! @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 15. Automated Story Tests @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 16. Automated Unit Tests @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 17. Exploratory Testing http://www.flickr.com/photos/rogersmith/4947063094/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 18. No Duplication http://www.flickr.com/photos/vermininc/3327459367/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 19. Smell Yer Code! http://www.flickr.com/photos/spine/2076612679/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 20. Duplication Smells! http://rubylearning.com/blog/2010/11/08/how-does-your-code-smell/ • Reinvented Wheel • Data Classes • Combinatorial Explosion • Procedural Code • Middle Man • Repeated Value • Greedy Methods/ • Big Classes Modules @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 21. Express Intent Clearly + Consistently! http://www.flickr.com/photos/spacelion/263948300/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 22. Reveal Why http://www.flickr.com/photos/freeparking/2247693823/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 23. (Re)Name Stuff http://www.flickr.com/photos/cinderellas_blog/255282013/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 24. Extract and Move Stuff www.flickr.com/photos/22746515@N02/2989699245/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 25. Some More Smells! http://rubylearning.com/blog/2010/11/08/how-does-your-code-smell/ • Uncommunicative Name • Global Variables • Type Included in Name • Dynamic Code Creation • Inconsistent Names • Comments • Long Parameters • Complicated Booleans @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 26. No Superfluous Parts! http://www.flickr.com/photos/altuwa/4530651461/ @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 27. Photo Credits • Kids Using iPads: Kathy Cassidy • Walmart Storefront: Walmart Corporate • The Boardroom: The Warfield • Breakdancer: Gueorgui • Software Team at Work: Reinhold Behringer • Alfred Lord Tennyson: freeparking • Passing Test: Davey Brown • The Pelican: Cindy Andrie • Spy Plane: Roger Smith • Earth Mover: Bert Kaufmann • Octuplet Consumers:Vermin Inc. • Rube Goldberg Machine: Sebastian B • Smelling Wine: Rick @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011
  • 28. More Learnin’ • A List of Books and Articles on Simple Design and Testing: http://bit.ly/simple_design_and_testing • Other Resources I Think Are Awesome (Broken Down by Speciality): http://bit.ly/zspencer_recommends • Pillars Free Webinars: http://pillartechnology.com/content/ webinarbrowse • Other Free Pillar Resources: http://pillartechnology.com/ page/agilelinks @zspencer -- http://www.zacharyspencer.com -- @rubytaiwan May 31, 2011 Wednesday, June 1, 2011