chapter II Development process
UML is from a big push object-oriented analysis and design of the methodology of the birth. To a certain extent, these methodologies mix a development process in a graphical model language to illustrate how the software should be developed.
1. Reverse-and waterfall-style development processThe essential difference between the two is: how do we break the project down into smaller parts. We need to break down the project so that everyone can keep up with the problem and track progress.
Waterfall-style developmentStyle is based on the development activities to break down the project. In order to write software, you need to do some specific development activities, including: requirements analysis, design, programming and testing. If it is a year, the following assignments are required:
| Analysis phase |
Design phase |
Coding phase |
Testing phase |
| 2 months |
4 months |
3 months |
3 months |
The reverse development style is the decomposition of the project according to different functional subcollections. You can break down a year's projects into three-month-long repeats. For the first time, we will deal with about 1/4 of the demand, and will take 1/4 of the needs of the entire software development lifecycle: Analysis, design, coding and testing. At the end of the reverse, we will do 1/4 of the required functional system. Next, we will repeat the second one, and it will end in the 6th month.
You can adopt a hybrid solution, the "Mcmconnel" book describes a phased-in life cycle that will first perform analysis and high-level design work in a waterfall style, and then divide the program and the test work into several repeats. Take a one-year project as an example: it may have up to 4 months of analysis and design work, and then construct the system with 4-time, 2-month-long repeats.
The OO community has long preferred an anti-development approach, and we can safely say that there are a lot of people involved in building UML, at least in favor of some form of reverse-development relationship.
Although we are all claiming that we are adopting a reverse-development approach, we are actually doing it in a waterfall-style way. Common characteristics are: A, we are now doing an analysis of the reverse, and then there will be two times the design of the reverse .... B, there are a lot of bugs in the program, but we'll clean them up in the end.
Commentary: Because of the reverse development hope after the end of the reverse, can produce product quality, testing, integration of software out. So if there are many bugs in the program after the end of the repeat, it cannot be said that the end is repeated. On the other hand, this is like the end of the code development phase in the waterfall development process, and the next step is preparing for the test development phase. A development technique that is often used in the application of the reverse development method isfixed length of time (boxing). It has a fixed length of time for each counter-repeat. If you find that the part you are trying to construct in a certain way cannot be completely done, then you have to decide to postpone some of the functionality in this response, rather than delaying the end date of the counter-attack.
If you are able to defer the system functions regularly, then when they are faced with a large release, need to make a clear decision on the delayed date or function, they will have better experience to deal with it. On the other hand, delaying the processing of certain functions in the process can effectively help you learn how to find the real demand priorities.
One of the most common considerations for breaking the law is the issue of rewriting the code. Rewriting programs is more efficient than maintaining programs that are poorly designed. Here are some practical lessons that can help make the redo more efficient.
| Automated regression testing (automated resgression tests) |
When we're changing something, it helps us quickly detect flaws in any program: a good rule of thumb for unit testing is that the size of the program code for unit tests is roughly the same as your product program code. |
| Refactoring (refactoring) |
It is a way of developing a disciplined approach to changing existing software. Refactoring is the way in which a series of small, reserved behavior transitions are implemented into the code base of the program. |
| Continuous integration (continuous integration) |
It keeps the entire team in sync to avoid painful consolidation cycles. At the heart of this approach is the construction process that has been fully automated haunt. |
2. Predictive and self-adapting planning methodsPredictive solutions want to do something early in the project so that you can better understand what will happen later. UsingPredictive Planning Approach, we can divide the project area into two periods. In the first period, we will first come up with a plan, when the proposal is more difficult to predict. However, when the second period, because the proposal is already in place, so he becomes more predictable.
One of the unique sources of complexity in software projects is the difficulty of understanding the requirements of software systems. The vast majority of projects undergo significant changes in demand: Changes in demand occur later in the project. These changes will shake the foundations of the forecast plan.
Commentary: Changes in demand are a pain in the minds of all software developers
Another genre argues that drastic changes in demand are inevitable. For many projects, it is almost impossible for us to stabilize demand to use forecast plans. On the one hand, it is because of imagination to know what software can do is extremely difficult, on the other hand because the market environment will cause unpredictable changes. The genre that uses this idea advocatesSelf-adaptingPlanning method,Can be predicted by them as Phantom. They use a planning approach to see changes in software projects as a normal. They give the project the best software it can do in a way that controls change, but we don't think it's predictable, although we're going to take control of the project.
Commentary: The adaptive process of scheduling-driven processes shortens cycle times for weeks, and in each cycle we constantly adjust the schedule and the execution of the plan according to the current situation, while constantly generating code that works, and constantly deploying the code into the application environment。
In contrast, there are two suggestions: A, unless you have a precise, stable demand, and are confident that they will not change significantly, then please do not make a predictive Plan B, if you do not have a precise, stable demand, then use the adaptive planning style.
3. Agile development ProcessThe agile development process is inherently highly adaptive. They are also a very personnel-oriented development process. Agile Development Solutions assume that the most important factor in the success of a project is the professional qualities of the project members and how well they collaborate in relationships. As for the development process or development tools that they use, strictly speaking, there are only sub-level effects.
Commentary: Agile Development takes the user's needs evolution as the core, uses the iterative, the gradual step method carries on the software to love you to develop. In agile development, software projects are cut into multiple sub-projects in the early stages of construction, and the results of each sub-project are tested for visual, integrated, and operational use. From this definition we can understand the above paragraph, when a project is switched to a small project, if a developer responsible for the project is not stable, there will be "barrel effect", if once a few members of the project can not fully understand, the latter will spend a lot of time for consolidation.
4. Rational Unified Development ProcessRUP is called the development process, but in fact he is a development process framework that provides a whole set of vocabulary and loose structures related to the development process.
When you're using RUP, the first thing you need to do is pick your own development case: it's the development process you'll be implementing in your project. The variance between development cases is great, so don't expect your development case to look like any other development case.
The RUP nature is a reverse-development process. Waterfall development style does not conform to the spirit of RUP.
All RUP projects must follow the following four development phases: (1), the initial phase (inception): It will make an initial assessment of the project.
(2), detailed stage (elaboration): It will find out the main use cases of the project, and will write the software in several times, and let the system's architecture to shape. At the end of the detailed phase, you should have a good understanding of the requirements, and back to a roughly formed, operational system, which we will use as the source of the follow-up development work.
(3), build phase (construction): It will continue the process of writing software, write out the functionality of the release.
(4), handover phase (transition): There will be a variety of late, do not need to be repeated development activities, may include the software configuration to the data center, user training and other similar matters.
Commentary: The completion of these 4 stages is called a development cycle, and the software it produces is called the first generation. Unless life is over, an existing levelling can evolve into a next-generation product by repeating the next four phases of the same initiation, detailing, construction, and handover, with the focus of each phase being different from the first. This period we call Evolution (Evolution). Finally, with the evolution of the product after several cycles, a new generation of products is constantly being manufactured. For more information: http://www.ibm.com/developerworks/cn/rational/r-rudp/Click to open link
5, to reduce the development process to suit the needs of the project software development work will be affected by a number of factors. Therefore, we always need to reduce the development process to suit the special environmental needs of the project.
Commentary: Pattern--uml can tell us how to express the results of object-oriented design. Instead, the results from the development process seen in the pattern: they can be used as a design result of the paradigm. The pattern contains more than just one model, and it also includes the rationale behind the use of this approach. We usually say that patterns represent a solution to some design problem. The pattern must be clear about where the problem lies, why it is being solved, and what circumstances we can or cannot adopt. patterns are important because they are understanding a language or model technology under theOne step.
6. Using UML in the development processWhether you're using a waterfall solution or not, we're still doing development activities such as analysis, design, coding and testing. You can implement a mini waterfall development process every week in a one-week-long, reverse-repeating project.
Demand AnalysisIn the development of demand analysis, we will try to understand: for the software that we will spend effort on, its users and customers want to do something about the system. Relevant UML-related technologies: A. Using case, we'll describe how people interact with the system. B. The category diagram (class diagram), drawn from a conceptual point of view, is a good way for us to come up with an accurate set of words in the field. C. Activity diagram, which can show the workflow of an organization to understand how the software interacts with human activities. D. State diagram, if a concept has an interesting declaration cycle, it becomes useful, which shows various states and events that change state.
When conducting a demand analysis, keep in mind that one of the most important things is communicating with your users and customers.
The biggest risk with UML in analysis is that those domain experts don't fully understand what you're drawing. If the people who know the field Wuhan University understand this picture, then it will have a worse result than useless, because it can arouse people's distrust of the development team.
DesignWhen you're working on a design, you can add more technical details to the diagram. Some of the relevant technologies include: A, a category diagram drawn from a software perspective, which shows the categories in the software and how they relate to each other. B, the sequence diagram of common plots (sequence diagram). A valuable approach is to find the most important and interesting episodes from the use case, and then use the CRC card or timing drawing to figure out what happens in the software. C. Use the package diagram to draw the organization of large structures in the software. D, for the category with complex life course, draw their state diagram E, use the configuration diagram (deployment diagram) to draw the software entity arrangement situation.
Whether it's a blueprint or a draft approach, it's a meaningful thing for us to find some design alternatives. It is often best to explore these different alternatives in draft mode, as it allows us to quickly generate these alternatives and modify them.
DocumentOnce you have written the software, you can use UML to help you record what has been done. In response to this, I found that UML diagrams help you to create a holistic understanding of the system. The person who writes the document needs to decide what is important and what is not, but the person who writes it usually has better knowledge than the person who reads it, enough to make such a judgment.
7, understand the legacy of the previous proceduresUML can be used in one or two ways to help you understand a big push of unfamiliar programs. The key thing to draw a sketch this approach can be used as a note-taking mechanism that helps you write down important information as you study these programs.
UML Learning Notes Series-chapter II development process