SlideShare a Scribd company logo
Working effectively
 with legacy code
              ­ chapter 1 ­

      2010.12.23
   geek—cafe, koduki
What is legacy code ?
not object oriented ?
NO
not beautiful ?
NO
nothing test ?
YES
If tests are written,
an awful code is refactable.

However, even a wonderful code
 is difficult change if there is no test.
1. Changing Software.
Four reasons to change software

  1.Adding a feature
  2.Fixing a bug
  3.Refactoring
  4.Optimizing
Change reason and type

               Adding a feature   Fixing a bug   Refactoring   Optimizing
Structure         change            change        change
New Function      change
Function                            change
Resource                                                        change
Test Code         change            Change
Points to change
●   What should I change?
●   How can I confirm the change is correct?
●   How can I confirm anything is not broken?
These are very difficult.
So we fear the change.
Risks by not changing
●   the code becomes complex.
●   skill down for changing software.
●   fear of changing grows more and more.
To Be Continued 
   Chapter 2.

More Related Content

PDF
Tdd - Test Driven Development
PPT
Why Scm
PPTX
Paul Ellarby - Why do scrum?
PDF
Definition of Done Statement
PPTX
Unit testing for Grown-ups
PDF
Test Driven Development
PPTX
Presentation Test Driven Development
PPTX
Behavior-Driven Design: One Team's Exploration
Tdd - Test Driven Development
Why Scm
Paul Ellarby - Why do scrum?
Definition of Done Statement
Unit testing for Grown-ups
Test Driven Development
Presentation Test Driven Development
Behavior-Driven Design: One Team's Exploration

What's hot (18)

PPTX
Zen And the Art of Test Maintenance Presentation
PPTX
A Test Manifesto 2014.03.26
PPTX
2013 09-11 java zone - extreme programming live
PPTX
Why TDD is Important for Everyone
PPS
Is Agile Better
PPTX
Dirty tests and How To Clean Them
PPTX
Beter code for better tests
PPTX
Zen and the art of Test Maintenance - #TestIL Meetup Tel Aviv
PPTX
Decide on technology stack & data architecture
PDF
UI5CN Live Webinar on FAQ and Q&A for AngularJS, NodeJS and MongoDB
PDF
BDD in Action - Automated Web Testing with WebDriver and Serenity
PDF
Test Driven Development Powered by LEGO
PDF
Practiced agile developer with tdd & bdd
PPT
The Heart Of Agile
PPTX
Creating A Unit Testing Strategy
PPTX
TDD for the rest of us
PPTX
TDD for the rest of us...
PPTX
Software Craftsmanship @ Ntnu
Zen And the Art of Test Maintenance Presentation
A Test Manifesto 2014.03.26
2013 09-11 java zone - extreme programming live
Why TDD is Important for Everyone
Is Agile Better
Dirty tests and How To Clean Them
Beter code for better tests
Zen and the art of Test Maintenance - #TestIL Meetup Tel Aviv
Decide on technology stack & data architecture
UI5CN Live Webinar on FAQ and Q&A for AngularJS, NodeJS and MongoDB
BDD in Action - Automated Web Testing with WebDriver and Serenity
Test Driven Development Powered by LEGO
Practiced agile developer with tdd & bdd
The Heart Of Agile
Creating A Unit Testing Strategy
TDD for the rest of us
TDD for the rest of us...
Software Craftsmanship @ Ntnu
Ad

Viewers also liked (8)

ODP
Legacycode01
PDF
Rubykaigi09 Webでるりまを検索するn個の方法
PDF
From document-to-code
PDF
光のツールExcelに闇Rubyの力を注いでみた
PPTX
Rakuten New MySQL Backup System With Xtrabackup
PDF
How to make keynote like presentation with markdown
PPT
Conjuntos-Unión-Intersección
PDF
Maven基礎
Legacycode01
Rubykaigi09 Webでるりまを検索するn個の方法
From document-to-code
光のツールExcelに闇Rubyの力を注いでみた
Rakuten New MySQL Backup System With Xtrabackup
How to make keynote like presentation with markdown
Conjuntos-Unión-Intersección
Maven基礎
Ad

Similar to Working effectively with legacy code chapter1 (20)

PPTX
Working effectively with legacy codes
PDF
Should you be your own judge?
PDF
Working Effectively with Legacy Code: Lessons in Practice
PDF
Test-Driven Development Reference Card
PPT
The Smells Of Bad Design
PPT
The Smells Of Bad Design
PPTX
Working Effectively with Legacy Code
PDF
Workshop fight legacy code write unit test
PDF
[XPday.vn] Legacy code workshop (at) [XP Day Vietnam 2015]
PPTX
{10.0} Test Driven Development.pptx
PPTX
Copilot to Cover: Why AI can't replace developers with robots, but can make l...
PDF
How to Adopt Agile at Your Organization
PPTX
What is Unit Testing
PPTX
You cant be agile if your code sucks
PPT
Tester developer interaction
PPTX
Helping Programmers Write Better Tests
PDF
PDF
How to quickly add a safety net to a legacy codebase
PDF
Meningkatkan SOC dan Reusabillity Kode dengan Duo DI - Sidiq Permana (CIO Nus...
PDF
Tetap Agile dengan Arsitektur Monolith - Ziya El Arief
Working effectively with legacy codes
Should you be your own judge?
Working Effectively with Legacy Code: Lessons in Practice
Test-Driven Development Reference Card
The Smells Of Bad Design
The Smells Of Bad Design
Working Effectively with Legacy Code
Workshop fight legacy code write unit test
[XPday.vn] Legacy code workshop (at) [XP Day Vietnam 2015]
{10.0} Test Driven Development.pptx
Copilot to Cover: Why AI can't replace developers with robots, but can make l...
How to Adopt Agile at Your Organization
What is Unit Testing
You cant be agile if your code sucks
Tester developer interaction
Helping Programmers Write Better Tests
How to quickly add a safety net to a legacy codebase
Meningkatkan SOC dan Reusabillity Kode dengan Duo DI - Sidiq Permana (CIO Nus...
Tetap Agile dengan Arsitektur Monolith - Ziya El Arief

Working effectively with legacy code chapter1