Thorsten Rinne - Refactoring
Thorsten codes since 1999 (PHP 3)
short Questionround about Companies and their Coding Behaviour
Code ages
Cost per Change Request are rising
dont refactor before a important release
you don't know how long refactoring takes
don't refactor with a lot of Junior Developers, they need Expirience
don't do it parallel to new features / development tasks
Change the internal Structure without changing the external Behaviour
Discipline: Work 8 Hours, don't do Overtime, it's hard Work
Restructuring ?
Don't change Behaviour
Forms of Refactoring
Renaming, Extraction, Changing Signatures
name Variables relating to the Content
Pull up/Pull down, don't use duplicate Methods, extract and outsource them
Tips & Tricks
use PHPDOCS, use PHPDOCS, use PHPDOCS
never use automated Refactoring
don't do refactoring for fun (don't let classes become to abstract)
write Unittest! WRITE UNITTESTS!
-