Making Method Calls Simpler

1. Rename Method

2. Add Parameter

3. Remove Parameter

4. Separate Query from Modifier

5. Parameterize Method

6. Replace Parameter with Explicit Method

7. Preserve Whole Object

8. Replace Parameter with Methods

9. Introduce Parameter Object

10. Reomve Setting Method

11. Hide Method

12. Replace Constructor with Factory Method

13. Encapsulate Downcast

14. Replace Error Code with Exception

15. Replace Exception with Test

你可能感兴趣的:(Making Method Calls Simpler)