Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

##Refactor Legacy Code

Project based on caradojo/trivia

Refactoring a PHP Legacy code application without tests.

  • Use tags to see the different phases of refactoring

Phases

  • Initial -> start the refactoring project
  • First Output Test -> Create first test save the output to a file
  • Constant and magic string -> Autoload and extract variables.
  • Complex Conditional -> To be simple
  • Game testeable methods -> Simple Tests
  • Complex methods -> difficult tests
  • Presentation layer -> responsability separation
  • Inyection dependecies -> creating interfaces
  • Analyzing Concerns -> Go to OOP and think about future work

About

Legacy Code refactoring project

Resources

Packages

No packages published

Languages