Organizing Data

1. Self Encapsulate Field

2. Replace Data Value with Object

3. Change Value to Reference

4. Change Reference to Value

5. Replace Array with Object

6. Duplicate Observed Data

7. Change Unidirectional Association to bidirectional

8. Change Bidirectional Association to Undirectional

9. Replace magic Number with symbolic constant

10. Encapsulate Field

11. Encapsulate Collection

12. Replace Record with Data Class

13. Replace Type code with Class

14. Replace Type code with subclass

15. Replace type code with state/strategy

16. Replace subclass with fields

你可能感兴趣的:(Organizing Data)