SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Behavior-Driven Development
As a Developer
I want clear requirements
So I can build the right stuff

Andreas Enbohm
@enbohm
(screenshot from http://www.thucydides.info/ and http://www.wakaleo.com/ )
Succesful IT-Projects

1. Build the software right

2. Build the right software
Succesful IT-Projects
State of Succesful IT-Projects
The 2011 edition of Standish Group’s annual CHAOS Report
found that 42% of IT projects were either delivered late, ran
over budget, or failed to deliver all of the requested features,
and 21% of projects were cancelled entirely.
State of Succesful IT-Projects
Scott Ambler’s annual survey on IT Project success rates
found a 30%-50% failure rate depending on the
methodologies used.
Used Functionality
The Consequences of Not Building It Right
In December 2007, the Queensland Health department* kicked off work on a new payroll system
for its 85,000 employees. The initial budget for the project was around $6 million, with a delivery
date scheduled for August 2008. When the solution was rolled out in 2010, some 18 months late, it
was a disaster.
Tens of thousands of public servants were underpaid, overpaid, or even not paid at all.
Since the go-live date, over 1000 payroll staff are required to carry out some 200,000
manual processes each fortnight to ensure that staff salaries are paid. In 2012, an
independent review found that the project had cost the state over $416 million since going
into production, and would cost an additional $837 million dollars to fix. This colossal sum
included $220 million just to fix the immediate software issues that were preventing the
system from delivering its core capability of paying Queensland Health staff what they are
owed each month.

* see http://en.wikipedia.org/wiki/Queensland_Health#Payroll_problems
The Consequences of Not Building It Right

Product
nobody
wants, wrong
built.
BDD
Behavior-driven development combines
techniques and principles of TDD with ideas
from domain-driven design and object-oriented
analysis and design, with the aim of delivering
"software that matters".
Benefits
•
•
•
•
•
•

Only build feature that add real value
Less waste (and hence, reduced cost)
Better communication
Higher quality, better tested product
Traceability, ’Live Documentation’
Enables a way to automatic test the
requirements
BDD
• BDD describes TDD done well
- removes word ’test’
- replace it with behaviour, examples,
scenarios etc.
• Good habits;
1. Working outside-in
2. Using examples to clarify requirements
(scenarios)
3. Using a common (ubiquitous) language
BDD – Value Driven
• A good goal should add value to business
- increase revenue
- reduce cost
- avoid future cost
- protect revenue
”Increase revenue by allowing
customers to…”
”Prevent current customers
switching to competing product
by …”
BDD – What Does the Customer Need?
• Good teams push back!
- users tend to express requirements as implementations
- we need to find the business need!
We need caching

So that the page
loads fast

So that the
customer will buy
stuff on our site and
doesn’t leave page

Why?

Why?

Ok, so to increase the chance a customer
will buy [stuff] it need to be ’fast’. Caching
might be one way to achive this, but
compressing images might be more
effective. Or another way might be loaders,
or ..
BDD – Better understanding
• Working outside-in
- if you need to explain to a computer how to check the
requirement, you’ll need to be damn sure understand it
yourself
• Business black-box testing is often done manually!
- BDD enables automated acceptance testing
• Mininum effort /code to fulfull requirement
BDD – Common Language
• Common Language
- communication often the biggest overhead
- even bigger if you allow different dialects of terminology
- takes time but gains significant advantage
BDD
User Stories
“a concise, written description of a piece of
functionality that will be valuable to a user (or
owner) of the software. It captures the 'who',
'what' and 'why' of a requirement in a simple,
concise way.”
User Stories
Story: Returns go to stock

Goal come first

Narrative:
In order to keep track of stock
As a store owner
I want to add items back to stock when they're returned

Stakeholder is
secondary

The feature must be
required to achieve this
goal
Scenarios
• The ’perfect’ bridge between the businessfacing and technology-facing sides of a team
Common language which is
reflected all way down in the
code

Scenario 1: Refunded items should be returned to stock
Given a customer previously bought a black sweater from me
And I currently have three black sweaters left in stock
When he returns the sweater for a refund
Then I should have four black sweaters in stock
Why User Stories?
"Maybe it is easier to get users to write down what
they need on a card in a few paragraphs than it is to get
them to see the difference between uses and extends"
- Anonymous
Implementation
http://www.thucydides.info/
http://www.thucydides.info/
Wrap-up
• Pros
- increases the quality of the product
- change with confidence
- live documention (great for maintenance)
- less waste, building ”software that matters”
• Cons
- high need of business engagemang (clear
requirements)
- BDD works best in Agile context
- easy to write fragile tests (high maintenence
cost)
Thank You!

Weitere ähnliche Inhalte

Was ist angesagt?

Better Software Keynote The Complete Developer 07
Better Software Keynote  The Complete Developer 07Better Software Keynote  The Complete Developer 07
Better Software Keynote The Complete Developer 07Enthiosys Inc
 
BDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkBDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkAliaksandr Ikhelis
 
Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Drew Jemilo
 
Taking the Robot Out of the Human
Taking the Robot Out of the HumanTaking the Robot Out of the Human
Taking the Robot Out of the HumanIIBA UK Chapter
 
Job-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessJob-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessPRADA Hsiung
 
Getting Comfortable with BDD
Getting Comfortable with BDDGetting Comfortable with BDD
Getting Comfortable with BDDAlex Sharp
 

Was ist angesagt? (10)

Agile Contracts
Agile ContractsAgile Contracts
Agile Contracts
 
Better Software Keynote The Complete Developer 07
Better Software Keynote  The Complete Developer 07Better Software Keynote  The Complete Developer 07
Better Software Keynote The Complete Developer 07
 
9 Proven-Strategies
9 Proven-Strategies9 Proven-Strategies
9 Proven-Strategies
 
BDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkBDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talk
 
Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)
 
Taking the Robot Out of the Human
Taking the Robot Out of the HumanTaking the Robot Out of the Human
Taking the Robot Out of the Human
 
Job-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessJob-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 Process
 
Career Fit 2017
Career Fit 2017Career Fit 2017
Career Fit 2017
 
DDD eXchange
DDD eXchangeDDD eXchange
DDD eXchange
 
Getting Comfortable with BDD
Getting Comfortable with BDDGetting Comfortable with BDD
Getting Comfortable with BDD
 

Ähnlich wie BDD Short Introduction

ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...William Brantley, PhD, PMP
 
Targeted documentation
Targeted documentationTargeted documentation
Targeted documentationAlyssa Fox
 
Behaviour driven development aka bdd
Behaviour driven development aka bddBehaviour driven development aka bdd
Behaviour driven development aka bddPrince Gupta
 
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...Garth Knudson
 
IT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxIT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxdjualaja88
 
Improving Application Development Effectiveness
Improving Application Development Effectiveness Improving Application Development Effectiveness
Improving Application Development Effectiveness Computer Aid, Inc
 
skEdit-marketing plan for new android app
skEdit-marketing plan for new android appskEdit-marketing plan for new android app
skEdit-marketing plan for new android appharichandana kolagani
 
project (Salon Management).pptx
project (Salon Management).pptxproject (Salon Management).pptx
project (Salon Management).pptxssuserefca8b
 
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?Thiga
 
Resume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh DeshpandeResume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh Deshpandehrushikesh deshpande
 
Agile Projects Estimation and Planning
Agile Projects Estimation and PlanningAgile Projects Estimation and Planning
Agile Projects Estimation and PlanningReturn on Intelligence
 
CHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxCHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxwalterl4
 
Sasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- MainframeSasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- Mainframesasikumar s
 
Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Lviv Startup Club
 
How to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringHow to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringAndré Agostinho
 
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationScaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationChef
 
Arvind Pal_Resume
Arvind Pal_ResumeArvind Pal_Resume
Arvind Pal_ResumeArvind Pal
 

Ähnlich wie BDD Short Introduction (20)

ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...
 
Targeted documentation
Targeted documentationTargeted documentation
Targeted documentation
 
Agile sdlc
Agile sdlcAgile sdlc
Agile sdlc
 
Behaviour driven development aka bdd
Behaviour driven development aka bddBehaviour driven development aka bdd
Behaviour driven development aka bdd
 
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
 
IT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxIT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptx
 
Improving Application Development Effectiveness
Improving Application Development Effectiveness Improving Application Development Effectiveness
Improving Application Development Effectiveness
 
skEdit-marketing plan for new android app
skEdit-marketing plan for new android appskEdit-marketing plan for new android app
skEdit-marketing plan for new android app
 
project (Salon Management).pptx
project (Salon Management).pptxproject (Salon Management).pptx
project (Salon Management).pptx
 
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
 
ELEC2017 1.1 r. king - how lean and digital capability can work together
ELEC2017   1.1 r. king - how lean and digital capability can work together ELEC2017   1.1 r. king - how lean and digital capability can work together
ELEC2017 1.1 r. king - how lean and digital capability can work together
 
Resume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh DeshpandeResume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh Deshpande
 
Agile Projects Estimation and Planning
Agile Projects Estimation and PlanningAgile Projects Estimation and Planning
Agile Projects Estimation and Planning
 
REport Fle.pdf
REport Fle.pdfREport Fle.pdf
REport Fle.pdf
 
CHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxCHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docx
 
Sasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- MainframeSasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- Mainframe
 
Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"
 
How to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringHow to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software Engineering
 
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationScaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
 
Arvind Pal_Resume
Arvind Pal_ResumeArvind Pal_Resume
Arvind Pal_Resume
 

Mehr von Andreas Enbohm

Mehr von Andreas Enbohm (8)

Hybrid Applications
Hybrid ApplicationsHybrid Applications
Hybrid Applications
 
Software Craftsmanship
Software CraftsmanshipSoftware Craftsmanship
Software Craftsmanship
 
SOLID Design Principles
SOLID Design PrinciplesSOLID Design Principles
SOLID Design Principles
 
Java7 - Top 10 Features
Java7 - Top 10 FeaturesJava7 - Top 10 Features
Java7 - Top 10 Features
 
Java Extension Methods
Java Extension MethodsJava Extension Methods
Java Extension Methods
 
Scala
ScalaScala
Scala
 
Project Lambda - Closures after all?
Project Lambda - Closures after all?Project Lambda - Closures after all?
Project Lambda - Closures after all?
 
Fest
FestFest
Fest
 

Kürzlich hochgeladen

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...Jeffrey Haguewood
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
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.pptxRustici Software
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
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 WoodJuan lago vázquez
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
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 Takeoffsammart93
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
"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 ...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 

Kürzlich hochgeladen (20)

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...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
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
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
"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 ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

BDD Short Introduction

  • 1. Behavior-Driven Development As a Developer I want clear requirements So I can build the right stuff Andreas Enbohm @enbohm (screenshot from http://www.thucydides.info/ and http://www.wakaleo.com/ )
  • 2. Succesful IT-Projects 1. Build the software right 2. Build the right software
  • 4. State of Succesful IT-Projects The 2011 edition of Standish Group’s annual CHAOS Report found that 42% of IT projects were either delivered late, ran over budget, or failed to deliver all of the requested features, and 21% of projects were cancelled entirely.
  • 5. State of Succesful IT-Projects Scott Ambler’s annual survey on IT Project success rates found a 30%-50% failure rate depending on the methodologies used.
  • 7. The Consequences of Not Building It Right In December 2007, the Queensland Health department* kicked off work on a new payroll system for its 85,000 employees. The initial budget for the project was around $6 million, with a delivery date scheduled for August 2008. When the solution was rolled out in 2010, some 18 months late, it was a disaster. Tens of thousands of public servants were underpaid, overpaid, or even not paid at all. Since the go-live date, over 1000 payroll staff are required to carry out some 200,000 manual processes each fortnight to ensure that staff salaries are paid. In 2012, an independent review found that the project had cost the state over $416 million since going into production, and would cost an additional $837 million dollars to fix. This colossal sum included $220 million just to fix the immediate software issues that were preventing the system from delivering its core capability of paying Queensland Health staff what they are owed each month. * see http://en.wikipedia.org/wiki/Queensland_Health#Payroll_problems
  • 8. The Consequences of Not Building It Right Product nobody wants, wrong built.
  • 9. BDD Behavior-driven development combines techniques and principles of TDD with ideas from domain-driven design and object-oriented analysis and design, with the aim of delivering "software that matters".
  • 10. Benefits • • • • • • Only build feature that add real value Less waste (and hence, reduced cost) Better communication Higher quality, better tested product Traceability, ’Live Documentation’ Enables a way to automatic test the requirements
  • 11. BDD • BDD describes TDD done well - removes word ’test’ - replace it with behaviour, examples, scenarios etc. • Good habits; 1. Working outside-in 2. Using examples to clarify requirements (scenarios) 3. Using a common (ubiquitous) language
  • 12. BDD – Value Driven • A good goal should add value to business - increase revenue - reduce cost - avoid future cost - protect revenue ”Increase revenue by allowing customers to…” ”Prevent current customers switching to competing product by …”
  • 13. BDD – What Does the Customer Need? • Good teams push back! - users tend to express requirements as implementations - we need to find the business need! We need caching So that the page loads fast So that the customer will buy stuff on our site and doesn’t leave page Why? Why? Ok, so to increase the chance a customer will buy [stuff] it need to be ’fast’. Caching might be one way to achive this, but compressing images might be more effective. Or another way might be loaders, or ..
  • 14. BDD – Better understanding • Working outside-in - if you need to explain to a computer how to check the requirement, you’ll need to be damn sure understand it yourself • Business black-box testing is often done manually! - BDD enables automated acceptance testing • Mininum effort /code to fulfull requirement
  • 15. BDD – Common Language • Common Language - communication often the biggest overhead - even bigger if you allow different dialects of terminology - takes time but gains significant advantage
  • 16. BDD
  • 17. User Stories “a concise, written description of a piece of functionality that will be valuable to a user (or owner) of the software. It captures the 'who', 'what' and 'why' of a requirement in a simple, concise way.”
  • 18. User Stories Story: Returns go to stock Goal come first Narrative: In order to keep track of stock As a store owner I want to add items back to stock when they're returned Stakeholder is secondary The feature must be required to achieve this goal
  • 19. Scenarios • The ’perfect’ bridge between the businessfacing and technology-facing sides of a team Common language which is reflected all way down in the code Scenario 1: Refunded items should be returned to stock Given a customer previously bought a black sweater from me And I currently have three black sweaters left in stock When he returns the sweater for a refund Then I should have four black sweaters in stock
  • 20. Why User Stories? "Maybe it is easier to get users to write down what they need on a card in a few paragraphs than it is to get them to see the difference between uses and extends" - Anonymous
  • 24. Wrap-up • Pros - increases the quality of the product - change with confidence - live documention (great for maintenance) - less waste, building ”software that matters” • Cons - high need of business engagemang (clear requirements) - BDD works best in Agile context - easy to write fragile tests (high maintenence cost)