C # Refactoring Learning 2

Source: Internet
Author: User

Reprint re-construction learning

Refactoring? Code bad taste? See these two questions, perhaps know that the topic of this issue is about "refactoring", refactoring everywhere, refactoring can be large and small, refactoring anytime and anywhere. Let the refactoring time in mind, make your code beautiful. Let this "Refactoring Art" Handbook take you into the world of refactoring, intimate contact reconstruction, such as appreciation of art, experience the charm of reconstruction.

Article: Http://files.cnblogs.com/xia520pi/C_Sharp_Refactoring.rar

List of articles:

1. Code Refactoring

1.1. Copyright notice

1.2. Details of Contents

2. Project Reconstruction Scheme design

2.1. Copyright Notice

2.2. Details of Contents

3, 31 days Refactoring study notes

3.1. Copyright notice

3.2. Details of Contents

3.2.1 Package Collection

3.2.2 Move Method

3.2.3 Lifting Method

3.2.4 Reduction method

3.2.5 Elevation Field

3.2.6 Decrease Field

3.2.7 Renaming (methods, classes, parameters)

3.2.8 using delegation instead of inheritance

3.2.9 Extraction Interface

3.2.10 Extraction Method

3.2.11 Using policy classes

3.2.12 Decomposition Dependency

3.2.13 Extract Method Object

3.2.14 Separation Duties

3.2.15 Remove Duplicate content

3.2.16 Package Conditions

3.2.17 extracting a parent class

3.2.18 using conditional judgment instead of exception

3.2.19 Extract Factory class

3.2.20 extracting subclasses

3.2.21 Merge Inheritance

3.2.22 Decomposition method

3.2.23 Introducing Parameter objects

3.2.24 decomposition complex judgment

3.2.25 introduction of contract-type design

3.2.26 Avoid double negation

3.2.27 Removal of the God class

3.2.28 named for Boolean methods

3.2.29 removing the Middleman object

3.2.30 return as soon as possible

3.2.31 using polymorphism instead of conditional judgment

4. Improve code Design

4.1. Copyright notice

4.2. Details of Contents

4.2.1 Summary article

The composition of 4.2.2 optimization function

4.2.3 optimization of properties between objects

4.2.4, organize your data.

4.2.5 Simplified Conditional expressions

4.2.6 simplifying function calls

4.2.7 dealing with generalized relationships

5. Refactoring (refactoring) Tips reading notes

5.1. Copyright notice

5.2. Details of Contents

One of 5.2.1 reading notes

The second of 5.2.2 reading notes

5.2.3 Three of Reading notes

C # Refactoring Learning 2

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.