SlideShare una empresa de Scribd logo
1 de 38
Back to basics
                  hands-on




            Italian Agile Day 2011

Antonio Carpentieri             Paolo Polce
Basic doesn’t mean
      simple
Basics are
advanced topics
Let’s define good
      software
High cohesion
Coincidental
  cohesion
    (Worst)
Functional
 cohesion
   (best)
Low coupling
Content coupling
      (worst)
Message coupling
 (lowest before No coupling)
How to get there?
The principles
S.O.L.I.D.
S.O.L.I.D.
S.O.L.I.D.
S.O.L.I.D.
S.O.L.I.D.
S.O.L.I.D.
Patterns should
 emerge from
  refactoring
Composition
   over
inheritance
Decorator
Composite
Adapter
Tell don’t ask
No getters
   rule
User stories
Landing on Go
As a player, when I land on go I get
$200 as my salary for staying in the
game


Acceptance criteria:
•During a turn a Player lands on Go and their balance
increases by $200

•During a turn a Player lands on some "normal" location and
their balance does not change
Passing over Go
As a player, I receive $200 when I
pass over Go
Acceptance criteria:
•Player starts before Go near the end of the Board, rolls
enough to pass Go. The Player's balance increases by $200

•Player starts on Go, takes a turn where the Player does not
additionally land on or pass over Go. Their balance remains

unchanged.

•Player passes go twice during a turn. Their balance increases by
$200 each time for a total change of $400
Landing on Go To Jail
As a Player, when I land on Go To
Jail during a turn I move directly to
Just Visiting
Acceptance criteria:
•Player starts before Go To Jail, lands on Go To Jail, ends up
on Just Visiting and their balance is unchanged

•Player starts before Go To Jail, rolls enough to pass over Go
To Jail but not enough to land on or pass over go. Their balance

is unchanged and they end up where the should based on what

they rolled
Landing on Income Tax
As a Player, landing on Income Tax
forces me to pay the smaller of 10%
of my total worth or $200
Acceptance criteria:
•During a turn, a Player with an initial total worth of $1800
lands on Income Tax. The balance decreases by $180

•During a turn, a Player with an initial total worth of $2200
lands on Income Tax. The balance decreases by $200

•During a turn, a Player with an initial total worth of $0 lands
on Income Tax. The balance decreases by $0
Landing on Income Tax
Acceptance criteria (continued):
•During a turn, a Player with an initial total worth of $2000
lands on Income Tax. The balance decreases by $200

•During a turn, a Player passes over Income Tax. Nothing
happens
Landing on Luxury Tax
As a Player, when I land on Luxury
Tax, I pay $75.


Acceptance criteria:
•Player takes a turn and lands on Luxury tax. Their balance
decreases by $75

•Player passes Luxury Tax during a turn. Their balance is
unchanged
Player Buys Property
As a player, I can buy an unowned
property when I land on it during a
turn

Acceptance criteria:
• Land on a Property that is not owned. After turn, property is
owned and balance decreases by cost of property

• Land on a Property that I own, nothing happens
• Pass over an unowned Property, nothing happens
Player Pays Rent
As a player, I pay rent when I land
on a Property that is owned by
someone else
Acceptance criteria:
• Land on a Property owned by other player, player pays rent to
owner. Player's balance decreases by rent amount. Owners balance

increases by rent amount.

• If landing on Real Estate and not all in the same Property
Group are owned, rent is stated rent value

• If landing on Real Estate and Owner owns all in the same
Property Group, rent is 2 times stated rent value
Player Pays Rent (Railroad)
As a player, I pay special rent when I
land on a Railroad that is owned by
someone else


Acceptance criteria:
• If landing on Railroad, rent is 25, 50, 100, 200 depending on
how many are owned by owner (1 - 4)
Player Pays Rent (Utility)
As a player, I pay special rent when I
land on a Utility that is owned by
someone else


Acceptance criteria:
• If landing on Utility and only one Utility owned, rent is 4
times current value on Dice

• If landing on Utility and both owned (not necessarily by same
Player), rent is 10 times current value on Dice
Grazie per l’attenzione


a.carpe@gmail.com                   paolo@webshell.it


            @acarpe                 @paolopolce

feedback on: http://joind.in/4520
     source: http://github.com/acarpe/back-to-basics-hands-on
     credits: Monopoly kata by schuchert
              ( http://goo.gl/OuovG )

Más contenido relacionado

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Destacado

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
Kurio // The Social Media Age(ncy)
 

Destacado (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Back to Basics Hands-on

  • 1. Back to basics hands-on Italian Agile Day 2011 Antonio Carpentieri Paolo Polce
  • 10. Message coupling (lowest before No coupling)
  • 11. How to get there?
  • 19. Patterns should emerge from refactoring
  • 20. Composition over inheritance
  • 25. No getters rule
  • 26.
  • 28. Landing on Go As a player, when I land on go I get $200 as my salary for staying in the game Acceptance criteria: •During a turn a Player lands on Go and their balance increases by $200 •During a turn a Player lands on some "normal" location and their balance does not change
  • 29. Passing over Go As a player, I receive $200 when I pass over Go Acceptance criteria: •Player starts before Go near the end of the Board, rolls enough to pass Go. The Player's balance increases by $200 •Player starts on Go, takes a turn where the Player does not additionally land on or pass over Go. Their balance remains unchanged. •Player passes go twice during a turn. Their balance increases by $200 each time for a total change of $400
  • 30. Landing on Go To Jail As a Player, when I land on Go To Jail during a turn I move directly to Just Visiting Acceptance criteria: •Player starts before Go To Jail, lands on Go To Jail, ends up on Just Visiting and their balance is unchanged •Player starts before Go To Jail, rolls enough to pass over Go To Jail but not enough to land on or pass over go. Their balance is unchanged and they end up where the should based on what they rolled
  • 31. Landing on Income Tax As a Player, landing on Income Tax forces me to pay the smaller of 10% of my total worth or $200 Acceptance criteria: •During a turn, a Player with an initial total worth of $1800 lands on Income Tax. The balance decreases by $180 •During a turn, a Player with an initial total worth of $2200 lands on Income Tax. The balance decreases by $200 •During a turn, a Player with an initial total worth of $0 lands on Income Tax. The balance decreases by $0
  • 32. Landing on Income Tax Acceptance criteria (continued): •During a turn, a Player with an initial total worth of $2000 lands on Income Tax. The balance decreases by $200 •During a turn, a Player passes over Income Tax. Nothing happens
  • 33. Landing on Luxury Tax As a Player, when I land on Luxury Tax, I pay $75. Acceptance criteria: •Player takes a turn and lands on Luxury tax. Their balance decreases by $75 •Player passes Luxury Tax during a turn. Their balance is unchanged
  • 34. Player Buys Property As a player, I can buy an unowned property when I land on it during a turn Acceptance criteria: • Land on a Property that is not owned. After turn, property is owned and balance decreases by cost of property • Land on a Property that I own, nothing happens • Pass over an unowned Property, nothing happens
  • 35. Player Pays Rent As a player, I pay rent when I land on a Property that is owned by someone else Acceptance criteria: • Land on a Property owned by other player, player pays rent to owner. Player's balance decreases by rent amount. Owners balance increases by rent amount. • If landing on Real Estate and not all in the same Property Group are owned, rent is stated rent value • If landing on Real Estate and Owner owns all in the same Property Group, rent is 2 times stated rent value
  • 36. Player Pays Rent (Railroad) As a player, I pay special rent when I land on a Railroad that is owned by someone else Acceptance criteria: • If landing on Railroad, rent is 25, 50, 100, 200 depending on how many are owned by owner (1 - 4)
  • 37. Player Pays Rent (Utility) As a player, I pay special rent when I land on a Utility that is owned by someone else Acceptance criteria: • If landing on Utility and only one Utility owned, rent is 4 times current value on Dice • If landing on Utility and both owned (not necessarily by same Player), rent is 10 times current value on Dice
  • 38. Grazie per l’attenzione a.carpe@gmail.com paolo@webshell.it @acarpe @paolopolce feedback on: http://joind.in/4520 source: http://github.com/acarpe/back-to-basics-hands-on credits: Monopoly kata by schuchert ( http://goo.gl/OuovG )

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. It can be achieved by state decentralization (as in objects) and component communication is done via parameters or message passing\n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n