Simplified function invocation of reconstruction technique (II.)

Source: Internet
Author: User

1. Rename Method (function renaming)

2. Add Parameter (Adding parameters)

3, remove Parameter (remove parameters)

4. Separate query form Modifier (separating the query parameters from the modified parameters)

5, parameterize Method (the function carrying parameters)

6. Replace Parameter with Explicit Methods (replace parameter with explicit function)

7. Preserve Whole Object (keep the objects intact)

8. Replace Parameter with Methods (replace parameter with function)

9. Introduce Parameter object (introduction of Parameter objects)

10. Remove Setting Method (remove set function)

11. Hide method (hidden function)

12. Replace Constructor with Factory Method (replace constructor with factory function)

13, encapsulate downcast (package downward transformation)

14. Replace error code with Exception (replace the wrong code with an exception)

15, replace Exception with test (replace exception with test)

Simplified function invocation of reconstruction technique (II.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.