variables*extract: Extract-I personally prefer to translate to "refine"*duplicate: CopyingSplit: AnatomyVariable: variableFactor: Factors, factorRefactoring PrinciplesFirst, what is refactoring?Noun form: An adjustment to the internal structure of software, which aims to improve the understanding and reduce the cost of modification without changing the performance of the software.Verb form: Use a series of refact
I.Reconstruction principles
1.Definition of refactoring
refactoring ( TERM ): an adjustment to the internal structure of the software , the purpose is not to change " Software-aware behavior " prerequisites , improved comprehensibility , reduce the modification cost .
refactoring ( verb ): using a series of
Agile development emphasizes the need to refactor code frequently. In the development process, often is the development and the reconstruction alternately. Short-term refactoring can make subsequent development and maintenance easier. I think that code refactoring can be divided into logical refactoring and data structure reconstruction.
Series content: This content is part of the series: Making development automation
Over the past few years, I've seen a lot of the source code for many projects, from beautifully designed to like tape-bound code. I have written new code and maintained the source code of other developers. I like to write new code, but I also like to use some of the existing code, to simplify it in some way or to extract duplicate code into a common class. In my early career, many people thought it would be ineffic
This article is in the study summary, welcome reprint but please specify Source: http://blog.csdn.net/pistolove/article/details/42041757
In the introduction to refactoring, the definition of refactoring, why refactoring, and when to refactor are briefly introduced. I think you've got a better understanding of how refactoring
and use macros to replace all macros in your program with macro corresponding variables, each of which is a temporary memory and uses the global Const constant, which guarantees that there will always be only one copy of memory
2.4 How to use iOS projects
Note 1: Constants cannot be defined in a PCH file, otherwise the definition of the constant is included in each file, resulting in a duplicate definition
Note 2: In general, define a global variable in the. m file, other files t
Mind Mapping
Index:
Ømove method (Move function)
Ømove Field (move domain)
Øextract Class (abstract class)
Øinline class (in which you are merging the classes to merge the current classes into other classes)
Øhide Delegate (hidden delegate relationship)
Øremove Middle man (remove middleman)
Øintroduce Foreign Method (Introducing an additive function)
Øintroduce local Extension (introducing native extensions)
I
Tags: www pac idt. com JPG Log explorer com clickEclipse refactoring Menu
Using Eclipse refactoringWe often need to modify the class name in project development, but if other classes depend on the class, we need to spend a lot of time modifying the class name.But the Eclipse refactoring feature can automatically detect class dependencies and modify class names, saving us a lot of time.You can open the
I am a programmer. Believe that many programmers have the same experience, in the company to scold others code rotten, while writing a worse than others code.The code is not bad from the start, the code is bad there are the following possible1. Change of requirements2. The level of people who maintain the code is uneven3. Large flow of maintenance personnel4. Short development cycle, emergency delivery time5. Personal habits6, the manager of the code requirementsAll of these are possible to make
Understanding : Sometimes one of our methods requires a lot of parameters, too many parameters, not easy to read and understand, we can encapsulate multiple parameters into an object.Detailed :Refactoring Pre-code: 1 public class registration 2 { 3 public void Create (decimal amount, Student Student, ienumerabledecimal credits) 4 { 5 // do work 6 } 7 } It is often helpful to create a class of user-passed parameters in this case, w
Definition of refactoring:Refactoring is a kind of adjustment to the internal structure of software without changing the observable behavior of software.The goal of refactoring:1. The code is easy to read.2. All logic is specified only in the only place.3. The new changes will not be a crisis to existing behaviour.4. Express the conditional logic as simple as possible.The difference between refactoring and
Refactoring is actually very simple. Its purpose is to make the program easier to understand, more maintainability, and more reasonable structure. Refactoring should be an essential part of code writing. For example, a better name for a function and splitting a large function into several small functions are all refactoring. The typical restructured books include
Reconstruction, in our
Program The design is really very important. Its role, or even magic, can make us
Code Vibrant and elegant. Because refactoring cannot be the syntax of the program language, there are few introductions to refactoring on the market, especially the authoritative book that truly makes a splash, we can only keep practicing and thinking in every practice. Taking my own
Signature
Previously developed by the SharpDevelop team and used to sharpdevelop the refactoring plug-in in this open source IDE, "Nr6pack" was renamed "Refactoring Essentials" and was Hanselman called the "Web A compliment to Essentials "read the original text" to see Hanselman's introductory article, and I think the plugin will be one of the necessary plug-ins on visual Studio 2015 as well as Web Essenti
This paper analyzes 4 reasons for the difficulty in the maintenance and reconfiguration of PHP code. Share to everyone for your reference, specific as follows:
Code maintenance, refactoring is a very unpleasant thing. In the following situations, it can be difficult to maintain and refactor code.
1. At the beginning of the project, we set some code norms, under a certain standard for development, but people's thinking is not the same, that is, each
VS2015 free plug-in Refactoring essenessen, vs2015refactoring
Question:
Previously developed by the SharpDevelop team and used for SharpDevelop, the Refactoring plug-in "NR6Pack" in this open-source IDE was renamed as "Refactoring essen ", as Hanselman calls it a greeting to "Web tials" (read the original article to view Hanselman's article ), in my opinion, th
Insus.net's more customary approach is to take a few minutes to re-examine the written code after the program is finished. For example, these days to write the Web API program, found that there are many worth refactoring code.Developing an ASP. NET MVC program, associated with data correlation, is typically between the Controller and entity entities.The initial refactoring is to move the API Controller Orde
Excerpt: Some Ideas about large-scale software refactoring
The reconstruction discussed here is"Implement a functionWhileDedicatedOngoingLarge Scale".How far can you see the architecture design?
Simply put, what we need to do is to completely separate the UI code of a software from the core functions, and then make the core part into a separate product. Of course, everyone understands the principle of separation between the presentation layer and the
You've been trying to refactor a very old module, but it's disgusting if you just look at it. Documents, strange functions and names of classes, and so on, the whole module is like a ragged man with fetters, though able to walk, but it is already uncomfortable for people. In the face of this situation, the real programmers will not concede, they will accept the challenge of serious analysis, it is not afraid of rewriting. Eventually the module will be refactored, just as it did with the amazing
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.