Professional Documents
Culture Documents
Developer’s job is not only about § You should learn new things: all the
developing the code time, always and from others
§ ... till end (of time)
§ It would be great to have a leader:
Disclaimer: THESE ARE PRINCIPLES, § to learn from
NOT LAWS! § to follow
§ You need to follow the rules, § You are the team player
whether they are
§ You work with legacy systems
§ You should ask the questions –
especially in case of doubts
2
Typical project setup
3
Definition of Done / Definition of Ready
4
Code smells
If it stinks, change it! § High quality code is:
§ Duplicated Code § Easy to read and understand
§ Long Method § Impossible to hide bugs
§ Large Class § Easy to extend
§ Long Parameter List / too many of § Easy to change
them § Has unit tests
§ Switch Statement
§ Temporary Field § Always code as if the guy who ends
§ Magic numbers up maintaining your code will be a
§ Naming violent psychopath who knows
§ Complex Conditionals where you live.
§ Dead code
5
This is not OOP!
7
STUPID code
8
KISS my DRY and SOLID code
9
Code reviews
10
Why should I refactor?
§ Refactoring is changing the structure, but not the § Follow the rules:
functionality of your application. § KISS / DRY / SOLID
§ Clean code
§ Code review rules!
11
Resources
• Refactoring catalogs:
http://www.refactoring.com/catalog/index.html