SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Quality Up Front
How to spend less time debugging
Lars Jarnbo Pedersen
Co-founder Switch-Gears ApS
About me
Partner at Switch-Gears ApS
● Transitioning companies from old
development tools to modern Open Source
ones
Been working for Nokia 2001-2012
● Release manager for S40 software for many
years
● Part of a small team that introduced Git,
Gerrit and Jenkins to S40 development
resulting in BIG productivity gains
Pain in SW Development

50%

COST OF BUGS

of developer time is spent
finding and fixing bugs*

*http://www.businessweekly.co.uk/hi-tech/14898-software-bugs-cost-more-than-double-eurozone-bailout
Why?
Programming is hard…
● you have to map the problem domain to
the programming language in use
● its usually a collaborative effort
● time pressure
● best practises are not shared
Bugs are discovered late…
● context is lost
● often it is not the programmer who
introduced the bug, who is fixing it
Luckily

90%

COST OF BUGS

of the bugs can be
caught during
development*

*http://www.codinghorror.com/blog/2006/01/code-reviews-just-do-it.html
Because
Average defect detection rate is 25 percent for
unit testing, 35 percent for function testing, and
45 percent for integration testing. [McConnell93]
Furthermore, the average effectiveness of
design and code inspections are 55 and 60
percent. [McConnell93]
How?
Peer Code Review
● Beneficial for “quality of review” if the author
pre-reviews and leaves comments for
subsequent reviewers [Cohen2006]
● The longer a reviewer spends on the initial
read-through, the more defects will ultimately
be found [Uwano2006]
● Defect detection drops dramatically after ~60
minutes, to zero after ~90 minutes [Dunsmore2000]
Peer Code Review
● Long methods and loops are very time
consuming to understand [Uwano2006]
● Review 100 to 300 LOC at a time, in 30-60
minutes chunks, with a break between each
sitting [Cohen2006]
● Spend at least 5 minutes reviewing a single
line of code [Cohen2006]
● Limit reviewing to 1 hour per day [Ganssle2009]
Mental Model

Platform Knowledge
+
Development Process
=
Platform Quality
Increase Platform Knowledge
Write Readable Code!!!
● You spend much more time reading code than
writing it - so make it nice to read!
● Refactor if necessary
● Include test-code

Commit changes in logical units
● Always commit working code
● Never mix error-fixes and feature implementations

Write descriptive commit messages
● Make sure the reason for the change is clearly
explained
Optimize Development Process
Make it simple on the developers,
● allow multiple workflows at the developers
desk
● don’t let the release/integration process
stop the development flow
● minimize manual process steps
while keeping a strict process
● automatically build and test all commits
● require code-review of all commits
This is NOT rocket science!
So why don’t we do it already?
● Waterfall development
● Code Reviews are perceived expensive
● Last generation of tools do not support
this easily
What is enabling it now?
● Agile development
● New breed of Open Source tools
Git / Gerrit / Jenkins
Git (DVCS) changes everything!
Git is NOT subversion++
● all operations except for push/pull are
local => well suited for continuous
integration
● allows for multiple workflows
○ development
○ integration / releasing

● is a first class citizen during development
AND debugging!
○ gitk for code analysis
○ git bisect for debugging
Gerrit
A developer codes - and asks for feedback
Peer Code Review
Another developer reviews and comments
Continuous Integration
Actually you saw it in action already!
Good tools help you without getting in the way
Our experiences - Low Gain Example

[Anonymized and obscured]
Our experiences - High Gain Example

[Anonymized and obscured]
References
Books
●
●

Code Complete: A Practical Handbook of Software Construction, Second
Edition by Steve McConnell (Jun 16, 2004)
Clean Code: A Handbook of Agile Software Craftsmanship by Robert C.
Martin (Aug 11, 2008)

Articles
●
●
●
●
●

SCM Ranking (Switch-Gears)
CI Ranking (Switch-Gears)
Best Kept Secrets of Peer Code Review (Smartbear)
The Cost of Software Bugs (Business Weekly)
Code Review - Just Do It (Coding Horror)

Videos
●
●

Linus Torvalds on Git (Google TechTalk)
Development at the Speed and Scale of Google (InfoQ)

Mais conteúdo relacionado

Mais procurados

Teamcity CI Server
Teamcity CI ServerTeamcity CI Server
Teamcity CI ServerKnoldus Inc.
 
Continuous integration & Continuous Delivery @DeVz
Continuous integration & Continuous Delivery @DeVzContinuous integration & Continuous Delivery @DeVz
Continuous integration & Continuous Delivery @DeVzDenis Ristic
 
Observability at Scale
Observability at Scale Observability at Scale
Observability at Scale Knoldus Inc.
 
Keeping Your CI/CD Pipeline as Fast as It Needs to Be
Keeping Your CI/CD Pipeline as Fast as It Needs to BeKeeping Your CI/CD Pipeline as Fast as It Needs to Be
Keeping Your CI/CD Pipeline as Fast as It Needs to BeAbraham Marin-Perez
 
Continuous Integration for Beginners
Continuous Integration for BeginnersContinuous Integration for Beginners
Continuous Integration for BeginnersYüce Çelikel
 
Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Jean-Philippe Briend
 
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)Anatoliy Okhotnikov
 
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...Sauce Labs
 
Overview the Challenges and Limitations of Android App Automation with Espres...
Overview the Challenges and Limitations of Android App Automation with Espres...Overview the Challenges and Limitations of Android App Automation with Espres...
Overview the Challenges and Limitations of Android App Automation with Espres...Sauce Labs
 
Overview of Gitlab usage
Overview of Gitlab usageOverview of Gitlab usage
Overview of Gitlab usageOluDouglas
 
How Vanguard Got to a CD-CD World by Craig Schwarzwald
How Vanguard Got to a CD-CD World by Craig SchwarzwaldHow Vanguard Got to a CD-CD World by Craig Schwarzwald
How Vanguard Got to a CD-CD World by Craig SchwarzwaldSauce Labs
 
Lets talk about CI CD Pipeline in Agile
Lets talk about CI CD Pipeline in Agile Lets talk about CI CD Pipeline in Agile
Lets talk about CI CD Pipeline in Agile Poonam Panday
 
The four generations of test automation
The four generations of test automationThe four generations of test automation
The four generations of test automationrenard_vardy
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous IntegrationVijaya K
 
Continuous Development: Supporting a Release Model
Continuous Development: Supporting a Release ModelContinuous Development: Supporting a Release Model
Continuous Development: Supporting a Release ModelPerforce
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitisSteve Povilaitis
 
Continuous integration CloudParty 21 may 2014 - Milan
Continuous integration CloudParty 21 may 2014 - MilanContinuous integration CloudParty 21 may 2014 - Milan
Continuous integration CloudParty 21 may 2014 - MilanSimone Pasquini
 

Mais procurados (20)

Dev ops
Dev opsDev ops
Dev ops
 
Teamcity CI Server
Teamcity CI ServerTeamcity CI Server
Teamcity CI Server
 
Continuous integration & Continuous Delivery @DeVz
Continuous integration & Continuous Delivery @DeVzContinuous integration & Continuous Delivery @DeVz
Continuous integration & Continuous Delivery @DeVz
 
What is dev ops?
What is dev ops?What is dev ops?
What is dev ops?
 
Observability at Scale
Observability at Scale Observability at Scale
Observability at Scale
 
Keeping Your CI/CD Pipeline as Fast as It Needs to Be
Keeping Your CI/CD Pipeline as Fast as It Needs to BeKeeping Your CI/CD Pipeline as Fast as It Needs to Be
Keeping Your CI/CD Pipeline as Fast as It Needs to Be
 
Continuous Integration for Beginners
Continuous Integration for BeginnersContinuous Integration for Beginners
Continuous Integration for Beginners
 
Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?
 
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)
Project Management: Burn-Down Chart / OrangeHRM Project MOD (eng)
 
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...
How to Measure Success in Continuous Testing by Fernando Vidal and Amir Rozen...
 
Overview the Challenges and Limitations of Android App Automation with Espres...
Overview the Challenges and Limitations of Android App Automation with Espres...Overview the Challenges and Limitations of Android App Automation with Espres...
Overview the Challenges and Limitations of Android App Automation with Espres...
 
Overview of Gitlab usage
Overview of Gitlab usageOverview of Gitlab usage
Overview of Gitlab usage
 
How Vanguard Got to a CD-CD World by Craig Schwarzwald
How Vanguard Got to a CD-CD World by Craig SchwarzwaldHow Vanguard Got to a CD-CD World by Craig Schwarzwald
How Vanguard Got to a CD-CD World by Craig Schwarzwald
 
Lets talk about CI CD Pipeline in Agile
Lets talk about CI CD Pipeline in Agile Lets talk about CI CD Pipeline in Agile
Lets talk about CI CD Pipeline in Agile
 
The four generations of test automation
The four generations of test automationThe four generations of test automation
The four generations of test automation
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
Continuous Development: Supporting a Release Model
Continuous Development: Supporting a Release ModelContinuous Development: Supporting a Release Model
Continuous Development: Supporting a Release Model
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitis
 
Continuous integration CloudParty 21 may 2014 - Milan
Continuous integration CloudParty 21 may 2014 - MilanContinuous integration CloudParty 21 may 2014 - Milan
Continuous integration CloudParty 21 may 2014 - Milan
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 

Destaque

Styrk din rekruttering af specialister med sociale medier- Christina Just - C...
Styrk din rekruttering af specialister med sociale medier- Christina Just - C...Styrk din rekruttering af specialister med sociale medier- Christina Just - C...
Styrk din rekruttering af specialister med sociale medier- Christina Just - C...Mediehuset Ingeniøren Live
 
PA Consulting: VPL – et nyt værktøj til visuel programledelse
PA Consulting: VPL – et nyt værktøj til visuel programledelsePA Consulting: VPL – et nyt værktøj til visuel programledelse
PA Consulting: VPL – et nyt værktøj til visuel programledelseMediehuset Ingeniøren Live
 
The two stonemasons
The two stonemasonsThe two stonemasons
The two stonemasonsDick Noort
 
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...Mediehuset Ingeniøren Live
 
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015Central Ohio Bed Bug Task Force
 
DevOps Culture as a tool
DevOps Culture as a toolDevOps Culture as a tool
DevOps Culture as a toolDick Noort
 
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by.
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by. Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by.
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by. Mediehuset Ingeniøren Live
 
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighed
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighedSusanne Høiberg: Tak til ensartede afgørelser for patenters gyldighed
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighedMediehuset Ingeniøren Live
 
Gry Husby Larsen: Langt billigere og bedre for os
Gry Husby Larsen: Langt billigere og bedre for os Gry Husby Larsen: Langt billigere og bedre for os
Gry Husby Larsen: Langt billigere og bedre for os Mediehuset Ingeniøren Live
 

Destaque (16)

Debugging 2013- Kim christensen
Debugging 2013- Kim christensenDebugging 2013- Kim christensen
Debugging 2013- Kim christensen
 
Fangel consulting: Proaktiv projektledelse
Fangel consulting:  Proaktiv projektledelseFangel consulting:  Proaktiv projektledelse
Fangel consulting: Proaktiv projektledelse
 
DTU Diplom: Om projektledelse hos FlSmidth A/S
DTU Diplom: Om projektledelse hos FlSmidth A/SDTU Diplom: Om projektledelse hos FlSmidth A/S
DTU Diplom: Om projektledelse hos FlSmidth A/S
 
Styrk din rekruttering af specialister med sociale medier- Christina Just - C...
Styrk din rekruttering af specialister med sociale medier- Christina Just - C...Styrk din rekruttering af specialister med sociale medier- Christina Just - C...
Styrk din rekruttering af specialister med sociale medier- Christina Just - C...
 
Insight live om It-sikkerhed- Peter Schjøtt
Insight live om It-sikkerhed- Peter SchjøttInsight live om It-sikkerhed- Peter Schjøtt
Insight live om It-sikkerhed- Peter Schjøtt
 
PA Consulting: VPL – et nyt værktøj til visuel programledelse
PA Consulting: VPL – et nyt værktøj til visuel programledelsePA Consulting: VPL – et nyt værktøj til visuel programledelse
PA Consulting: VPL – et nyt værktøj til visuel programledelse
 
The two stonemasons
The two stonemasonsThe two stonemasons
The two stonemasons
 
Cobbtf summit 2015 Introduction and Agenda
Cobbtf summit 2015 Introduction and AgendaCobbtf summit 2015 Introduction and Agenda
Cobbtf summit 2015 Introduction and Agenda
 
2015 City of Columbus Bed Bug Complaints
2015 City of Columbus Bed Bug Complaints2015 City of Columbus Bed Bug Complaints
2015 City of Columbus Bed Bug Complaints
 
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...
Styrk din rekruttering af specialister med sociale medier- Susanne Junge og D...
 
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015
Bed Bug biology and Research by Dr. Susan Jones at COBBTF Summit 2015
 
Poverty
PovertyPoverty
Poverty
 
DevOps Culture as a tool
DevOps Culture as a toolDevOps Culture as a tool
DevOps Culture as a tool
 
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by.
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by. Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by.
Birgit Bech Jensen - Energimetropol Esbjerg. Sådan brander man en hel by.
 
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighed
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighedSusanne Høiberg: Tak til ensartede afgørelser for patenters gyldighed
Susanne Høiberg: Tak til ensartede afgørelser for patenters gyldighed
 
Gry Husby Larsen: Langt billigere og bedre for os
Gry Husby Larsen: Langt billigere og bedre for os Gry Husby Larsen: Langt billigere og bedre for os
Gry Husby Larsen: Langt billigere og bedre for os
 

Semelhante a Debugging 2013- Lars pedersen

CI/CD: Lessons from LinkedIn and Mockito
CI/CD: Lessons from LinkedIn and MockitoCI/CD: Lessons from LinkedIn and Mockito
CI/CD: Lessons from LinkedIn and MockitoC4Media
 
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoQCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoSzczepan Faber
 
Test Driven Development with PHP
Test Driven Development with PHPTest Driven Development with PHP
Test Driven Development with PHPRogério Vicente
 
Indy meetup#7 effective unit-testing-mule
Indy meetup#7 effective unit-testing-muleIndy meetup#7 effective unit-testing-mule
Indy meetup#7 effective unit-testing-muleikram_ahamed
 
The Evolving Role of Build Engineering in Managing Open Source
The Evolving Role of Build Engineering in Managing Open SourceThe Evolving Role of Build Engineering in Managing Open Source
The Evolving Role of Build Engineering in Managing Open SourceDevOps.com
 
Keeping code clean
Keeping code cleanKeeping code clean
Keeping code cleanBrett Child
 
Balancing Technical Debt and Clean Code
Balancing Technical Debt and Clean CodeBalancing Technical Debt and Clean Code
Balancing Technical Debt and Clean CodeDave Hulbert
 
Not my problem - Delegating responsibility to infrastructure
Not my problem - Delegating responsibility to infrastructureNot my problem - Delegating responsibility to infrastructure
Not my problem - Delegating responsibility to infrastructureYshay Yaacobi
 
meetup version of Paving the road to production
  meetup version of Paving the road to production    meetup version of Paving the road to production
meetup version of Paving the road to production Matthew Reynolds
 
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...dcieslak
 
Services, tools & practices for a software house
Services, tools & practices for a software houseServices, tools & practices for a software house
Services, tools & practices for a software houseParis Apostolopoulos
 
Why every Tester should also aspire to be a Developer on his project!-Sandee...
Why every Tester should  also aspire to be a Developer on his project!-Sandee...Why every Tester should  also aspire to be a Developer on his project!-Sandee...
Why every Tester should also aspire to be a Developer on his project!-Sandee...bhumika2108
 
Develop, deploy, and operate services at reddit scale oscon 2018
Develop, deploy, and operate services at reddit scale   oscon 2018Develop, deploy, and operate services at reddit scale   oscon 2018
Develop, deploy, and operate services at reddit scale oscon 2018Gregory Taylor
 
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...Gibran Badrulzaman
 
Making software development processes to work for you
Making software development processes to work for youMaking software development processes to work for you
Making software development processes to work for youAmbientia
 
Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013Moataz Nabil
 
Efficient platform engineering with Microk8s & gopaddle.pdf
Efficient platform engineering  with  Microk8s & gopaddle.pdfEfficient platform engineering  with  Microk8s & gopaddle.pdf
Efficient platform engineering with Microk8s & gopaddle.pdfVinothini Raju
 
Introduction to Test Automation
Introduction to Test AutomationIntroduction to Test Automation
Introduction to Test AutomationPekka Klärck
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous IntegrationXPDays
 

Semelhante a Debugging 2013- Lars pedersen (20)

CI/CD: Lessons from LinkedIn and Mockito
CI/CD: Lessons from LinkedIn and MockitoCI/CD: Lessons from LinkedIn and Mockito
CI/CD: Lessons from LinkedIn and Mockito
 
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoQCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
 
Test Driven Development with PHP
Test Driven Development with PHPTest Driven Development with PHP
Test Driven Development with PHP
 
Indy meetup#7 effective unit-testing-mule
Indy meetup#7 effective unit-testing-muleIndy meetup#7 effective unit-testing-mule
Indy meetup#7 effective unit-testing-mule
 
The Evolving Role of Build Engineering in Managing Open Source
The Evolving Role of Build Engineering in Managing Open SourceThe Evolving Role of Build Engineering in Managing Open Source
The Evolving Role of Build Engineering in Managing Open Source
 
Keeping code clean
Keeping code cleanKeeping code clean
Keeping code clean
 
Balancing Technical Debt and Clean Code
Balancing Technical Debt and Clean CodeBalancing Technical Debt and Clean Code
Balancing Technical Debt and Clean Code
 
Not my problem - Delegating responsibility to infrastructure
Not my problem - Delegating responsibility to infrastructureNot my problem - Delegating responsibility to infrastructure
Not my problem - Delegating responsibility to infrastructure
 
meetup version of Paving the road to production
  meetup version of Paving the road to production    meetup version of Paving the road to production
meetup version of Paving the road to production
 
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...
RandomTest - Random Software Integration Tests That Just Work for C/C++, Java...
 
Services, tools & practices for a software house
Services, tools & practices for a software houseServices, tools & practices for a software house
Services, tools & practices for a software house
 
Why every Tester should also aspire to be a Developer on his project!-Sandee...
Why every Tester should  also aspire to be a Developer on his project!-Sandee...Why every Tester should  also aspire to be a Developer on his project!-Sandee...
Why every Tester should also aspire to be a Developer on his project!-Sandee...
 
Develop, deploy, and operate services at reddit scale oscon 2018
Develop, deploy, and operate services at reddit scale   oscon 2018Develop, deploy, and operate services at reddit scale   oscon 2018
Develop, deploy, and operate services at reddit scale oscon 2018
 
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
 
Making software development processes to work for you
Making software development processes to work for youMaking software development processes to work for you
Making software development processes to work for you
 
Usable Software Design
Usable Software DesignUsable Software Design
Usable Software Design
 
Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013
 
Efficient platform engineering with Microk8s & gopaddle.pdf
Efficient platform engineering  with  Microk8s & gopaddle.pdfEfficient platform engineering  with  Microk8s & gopaddle.pdf
Efficient platform engineering with Microk8s & gopaddle.pdf
 
Introduction to Test Automation
Introduction to Test AutomationIntroduction to Test Automation
Introduction to Test Automation
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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...Martijn de Jong
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Último (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Debugging 2013- Lars pedersen

  • 1. Quality Up Front How to spend less time debugging Lars Jarnbo Pedersen Co-founder Switch-Gears ApS
  • 2. About me Partner at Switch-Gears ApS ● Transitioning companies from old development tools to modern Open Source ones Been working for Nokia 2001-2012 ● Release manager for S40 software for many years ● Part of a small team that introduced Git, Gerrit and Jenkins to S40 development resulting in BIG productivity gains
  • 3. Pain in SW Development 50% COST OF BUGS of developer time is spent finding and fixing bugs* *http://www.businessweekly.co.uk/hi-tech/14898-software-bugs-cost-more-than-double-eurozone-bailout
  • 4. Why? Programming is hard… ● you have to map the problem domain to the programming language in use ● its usually a collaborative effort ● time pressure ● best practises are not shared Bugs are discovered late… ● context is lost ● often it is not the programmer who introduced the bug, who is fixing it
  • 5. Luckily 90% COST OF BUGS of the bugs can be caught during development* *http://www.codinghorror.com/blog/2006/01/code-reviews-just-do-it.html
  • 6. Because Average defect detection rate is 25 percent for unit testing, 35 percent for function testing, and 45 percent for integration testing. [McConnell93] Furthermore, the average effectiveness of design and code inspections are 55 and 60 percent. [McConnell93]
  • 8. Peer Code Review ● Beneficial for “quality of review” if the author pre-reviews and leaves comments for subsequent reviewers [Cohen2006] ● The longer a reviewer spends on the initial read-through, the more defects will ultimately be found [Uwano2006] ● Defect detection drops dramatically after ~60 minutes, to zero after ~90 minutes [Dunsmore2000]
  • 9. Peer Code Review ● Long methods and loops are very time consuming to understand [Uwano2006] ● Review 100 to 300 LOC at a time, in 30-60 minutes chunks, with a break between each sitting [Cohen2006] ● Spend at least 5 minutes reviewing a single line of code [Cohen2006] ● Limit reviewing to 1 hour per day [Ganssle2009]
  • 10. Mental Model Platform Knowledge + Development Process = Platform Quality
  • 11. Increase Platform Knowledge Write Readable Code!!! ● You spend much more time reading code than writing it - so make it nice to read! ● Refactor if necessary ● Include test-code Commit changes in logical units ● Always commit working code ● Never mix error-fixes and feature implementations Write descriptive commit messages ● Make sure the reason for the change is clearly explained
  • 12. Optimize Development Process Make it simple on the developers, ● allow multiple workflows at the developers desk ● don’t let the release/integration process stop the development flow ● minimize manual process steps while keeping a strict process ● automatically build and test all commits ● require code-review of all commits
  • 13. This is NOT rocket science! So why don’t we do it already? ● Waterfall development ● Code Reviews are perceived expensive ● Last generation of tools do not support this easily What is enabling it now? ● Agile development ● New breed of Open Source tools
  • 14. Git / Gerrit / Jenkins
  • 15. Git (DVCS) changes everything! Git is NOT subversion++ ● all operations except for push/pull are local => well suited for continuous integration ● allows for multiple workflows ○ development ○ integration / releasing ● is a first class citizen during development AND debugging! ○ gitk for code analysis ○ git bisect for debugging
  • 16. Gerrit A developer codes - and asks for feedback
  • 17. Peer Code Review Another developer reviews and comments
  • 18. Continuous Integration Actually you saw it in action already! Good tools help you without getting in the way
  • 19. Our experiences - Low Gain Example [Anonymized and obscured]
  • 20. Our experiences - High Gain Example [Anonymized and obscured]
  • 21. References Books ● ● Code Complete: A Practical Handbook of Software Construction, Second Edition by Steve McConnell (Jun 16, 2004) Clean Code: A Handbook of Agile Software Craftsmanship by Robert C. Martin (Aug 11, 2008) Articles ● ● ● ● ● SCM Ranking (Switch-Gears) CI Ranking (Switch-Gears) Best Kept Secrets of Peer Code Review (Smartbear) The Cost of Software Bugs (Business Weekly) Code Review - Just Do It (Coding Horror) Videos ● ● Linus Torvalds on Git (Google TechTalk) Development at the Speed and Scale of Google (InfoQ)