A general philosophical question is whether the source code is a model or, more importantly, whether it is an agile model. If you ask me this question outside of this article, I will answer: Yes, the source code is a model, although it is a highly detailed model, because it is an abstraction of software. I also think that good code is an agile model. But here, I need to separate the two, and the source code and agile model are still different-the agile model helps you get the source code. 5. The Modeler edits the personality of agile modelers. Alistair Cockburn points out that many methodologies define the roles of developers in software development projects and define tasks executed by each role, although, these methods do not define the most appropriate candidates for these roles. If a person wants to successfully assume a role, he should adapt well to it. Although this does not require people to master all the skills, people must gradually become familiar with these technologies. My experience tells me that to be a successful agile modeler, the personality listed below is necessary: the first and most important point in a team competition, agile modelers are always actively seeking for collaboration because they realize that they are not everything is done, and they need different ideas to do their best. Software development is not about swimming. It is very dangerous to work alone. There is no "I" in the agile dictionary. Agile modelers have good communication skills-they can express their ideas, listen, actively get feedback, and write what they need. Down-to-earth agile modelers should be down-to-earth, and their focus is on meeting users' needs. They will not draw any more on the model, even if they are so nice-looking. They are satisfied with the simplest possible solution. Of course, the premise is to be able to complete the work. Curious agile modelers are interested in researching and solving problems. Anyone who asks why agile modeling never looks at the problem on the surface, but breaks the sandpot to the end. They never take it for granted that a product or a technology and their ads say that they will try it on their own. Agile modelers are very humble in seeking truth from facts. They never think that they are everything, so they will carefully prove the correctness of the model with code after creating a model. Agile modeling based on experiments should be willing to try new methods, such as a new (or existing) modeling technology. In general, they also accept agile modeling and development technologies. If necessary, they are willing to fight against traditional ideas, such as reducing the number of documents in a project. Be disciplined and follow agile modeling practices persistently. For you, you may inadvertently say, "add this function! ." Or, "I know more about the project stakeholder ." To avoid deviation from the direction on the AM road, we must be disciplined. Modeling misunderstanding editing goes out of general design misunderstandings and leads to a successful journey, whether you follow heavyweight methods, such as enterprise Unified Process (EUP) or lightweight development processes, for example, eXtreme Programming (XP), modeling is indispensable in software development. Unfortunately, there are various errors and misunderstandings. This comes from a variety of aspects, from the study of theoretical errors, cultural deposits in the field of information technology for decades, the hype of Software Tool developers, and Object Management Group (OMG) and IEEE standards. Next, we need to reveal the misunderstandings in modeling and point out the facts. Misunderstanding is just like writing a document. This is probably the most destructive one, because developers can give up modeling on the pretext. Many good software developers say they don't want to waste their time on these "useless" documents. They indulge in coding and create fragile and inferior systems. In addition, even many responsible developers now think that modeling is annoying, rather than learning the corresponding modeling technology. Fact analysis: the "model" and "document" are conceptually different-you can have a document that is not a document or a model. A design drawing is a model, either painted on the back of a napkin, written on a whiteboard, or on a class responsibility collaboration (CRC) card, or a rough User Interface prototype generated based on the flowchart recorded on the newspaper and paper. Although none of these can be said to be documents, they are all valuable models. Modeling is like planning: the value of planning lies in the planning process, rather than the planning itself. The value is embodied in modeling activities rather than the model itself. In fact, models are not a part of formal documents in your system and can be discarded after their mission is fulfilled. You will find that there are only a few models worth retaining, and they must be perfect. Misunderstanding 2 from the beginning, you can consider that all such statements were popular in the 1970s s to the early 1980s S. Many managers today are studying software development at that time. The superstition of this will lead to investing considerable time in the early stage to model everything in order to make everything right, try to "freeze" all the requirements before coding starts (see misunderstanding 4), so that you will suffer from "Analytical paralysis"-Wait until the model is perfect before you dare to move forward. Based on this point of view, the project team has developed a large number of documents, rather than what they really want-to develop software that meets their needs. Fact analysis: How can we get out of this misunderstanding? First, you must realize that you cannot consider all the details. Second, realize that the coders may disagree with the modeler's work (this is possible, in fact, The Modeler's work is only a small part of the actual value ), they may say that the model does not reflect the actual situation. Third, realize that no matter how good your original specification is, the code will soon be out of sync, even if you build your own code. The basic principle is that the Code will always be consistent with the code. Fourth, it is recognized that iterative methods (small-scale modeling, code compilation, testing, and a small working version) are the principles of software development. It is a modern heavyweight software development process (such as EuP), as well as the basic principles of lightweight (such as XP. Misunderstanding three models means that a heavyweight software development process is required to go into this misunderstanding (often associated with the misunderstanding). The project team often gives up the continuous model creation, this is because the software development process is too complicated and too heavy for them. This is no less than a natural disaster. Fact analysis: you can replace it with an agile approach. For more information about Simple Modeling with simple tools, see agile modeling (AM ). In addition, you can discard your model. After the mission is complete, you can also perform Modeling in a basic way (for example, starting from the desk and building a sketch before the whiteboard ). You can easily build a model as long as you want. Misunderstanding 4 must "freeze" The requirement often comes from senior managers who want to know exactly what they can get from this project team. The advantage of this is that you can determine the requirements at the early stage of the development cycle to know exactly what you want. The disadvantage is that they may not get what they actually need. Fact analysis: Changes always happen. The changes in priority and the gradual understanding of the system will lead to changes in requirements. In contrast to Freezing demand, the risk of project success is estimated, and changes should be accepted as much as possible and actions should be taken accordingly, just as XP suggested. Misunderstanding 5 design is unchangeable, just like misunderstanding 4. Every developer must strictly abide by the "design", this causes the developer to make a wrong thing or do the right thing in a wrong way to conform to the design. Or simply ignoring the design, denying all possible benefits of the design. Once the design is frozen, you will not be able to further benefit from the knowledge you have learned in the project process. Another major trend is to develop a large number of documents rather than actual software. Use Case tools for documentation rather than application tools that bring practical value to the project. Fact analysis: in fact, the design is often modified based on feedback from developers and database administrators, because they are the people closest to the actual application, generally, their understanding of the technical environment is better than that of the modeler. We must face the fact that no one is perfect and their work cannot be perfect. Do you really want to fix an imperfect design and stop modifying the errors? In addition, if the demand is not frozen, it means that you cannot freeze your design, because any modifications to the demand will inevitably affect the design. Right, the correct attitude is: as long as your code is still being modified, the design is not complete. Misunderstanding 6 The use of CASE tool modeling is often considered a complex task, so it requires a lot of use of CASE tools to assist. Fact analysis: Yes, modeling can be complex. However, you can create an effective and simple model to express the key information, rather than include irrelevant details. For example, I often use UML to create models to represent classes, their attributes, and some key business operations, but do not draw the access operations (get and set) for attributes ), and framework code that maintains relationships with other classes, or other trivial implementation details. I used modeling to find a solution to the problem so that my colleagues and I could continue to implement this model. In this flexible way, in most cases I Don't Need A CASE tool to support modeling, a whiteboard, or a digital camera. In this way, I don't have to spend time evaluating the case tool. I don't have to discuss the license with the tool supplier, and I have to avoid training expenses. The case tool is worth buying only when it shows the best price/performance ratio (relative to your own situation. In most cases, I don't need it for the purpose (to complete modeling ). I often use together/J/)-because it can generate a considerable number of Java framework code; and Erwin ()-because it can plan databases. These two tools really help me achieve the purpose of software development-to create software that meets user requirements. However, most of my modeling work still uses simple tools instead of CASE tools. Misunderstanding 7 modeling is a waste of time many new users think this is mainly because their education is limited to how to write code, and there is little access to the complete development process. In addition, their experience is limited to how to implement code, just like Junior programmers. They give up on opportunities to improve efficiency and learn skills that make it easy for them to adapt to different projects or organizations. They should be ashamed of this. Fact analysis: In most cases, drawing a sketch before coding, developing a crude prototype, or creating some index cards can improve your production efficiency. Efficient developers must perform modeling before coding. In addition, modeling is a good way to communicate between project team members and project owners. In this process, you will discuss the problem and get a better understanding of what you want, each member involved in the project can also have a full understanding of the project. Misunderstanding the data model is that many organizations initiate new development work based on the data model. Maybe, as your organization: the IT department has very strict rules on data, control your development project; or your previous database is a mess and you have no choice. Fact analysis: the data model is an important but not the most important modeling. It is best to build on another model. (See "extreme modeling", thinking objectively, nov.2000 ). This is even true for data-oriented projects such as data warehouses. Without a good understanding of how users use the data warehouse (not expressed in the Data Model), these projects often end with a miserable failure. You can use many models-use cases, business rules, activity diagrams, class diagrams, and component diagrams, user Interface flow diagrams, CRC, and so on. The data model is only one of them. Each model has its strengths and weaknesses and should be correctly used. Misunderstanding 9 All developers know how to build models. Now we are faced with a serious problem: many people who are not developers, including senior managers and users, do not know how the software is built. As a result, they cannot distinguish between skilled developers and general programmers (of course, Senior programmers and general programmers ), they assume that all developers have the skills to develop the entire system from start to end. Fact analysis: This is definitely incorrect. Modeling skills can be mastered only when a developer learns it and has been practicing it for a long time. Some very intelligent programmers often believe that they are omnipotent. After all, they are only programmers. Because of this arrogance, some of the tasks they undertake are simply not completed with the corresponding skills. Software development is so complex that it is difficult for a single person to have all the skills to successfully develop, or even to configure a complex system. Developers should be self-aware and understand their own weaknesses, so there is no end to learning. By complementing each other, modelers can learn the details of a technology from programmers, and programmers can also learn valuable design and architecture technologies from modelers. I personally think that everyone, including myself, is a newbie. 7. Development Declaration: editing individuals and interactions is better than software that can work with processes and tools than comprehensive documentation. Customer collaboration is better than contract negotiation. Response to changes than compliance with plans. Although right items are also valuable, however, we believe that the Left item has greater value. 8. Follow the principle to edit N. Our top priority is to deliver valuable software as soon as possible and continuously to satisfy our customers. N even after development, you are welcome to change your requirements. Agile processes use changes to create competitive advantages for customers. N. You can deliver software that can work on a regular basis from weeks to months. The shorter the delivery interval, the better. N during project development, business personnel and developers must work together every day. N builds projects around the motivated individuals. Provide them with the required environment and support, and trust them to complete their work. N in the team, the most effective and efficient way to transmit information is face-to-face conversations. N-working software is the primary progress measurement standard. N agile processes promote sustainable development speed. Owners, developers, and users should be able to maintain a long-term and constant development speed. N constantly paying attention to excellent skills and good design will enhance agility. N is simple and fundamental. N the best architecture, requirements, and team design. N at a certain time, the team will reflect on how to work more effectively, and then adjust their behavior accordingly. When the demand for software development changes, the software design will have a bad taste. when any of the following smells in the software, it indicates that the software is corrupt. N rigidity: it is difficult to make changes to the system, because each change forces many other changes to the other part of the system. N vulnerability: changes to the system may cause problems in many conceptual aspects of the system and the changes. N Robustness: It is difficult to solve the tangle of the system, making it a component that can be reused in other systems. N viscosity: Doing the right thing is more difficult than doing the wrong thing. N unnecessary complexity: The design contains an infrastructure that has no immediate benefits. N unnecessary repeatability: The design contains a duplicate structure, which can be unified using a single abstraction. N obscure: difficult to read and understand. The intent is not shown very well. Agile teams rely on changes to get vitality. The Team has almost no pre-design, so there is no need for a mature initial design. They prefer to keep the design as clean and simple as possible, and use many unit tests and acceptance tests as support. This ensures design flexibility and ease of understanding. The team uses this flexibility to continually improve the design so that the system generated at the end of each iteration has the design that best fits the needs of that iteration. In order to change the corruption in the above software design, agile development adopts the following object-oriented design principles to avoid. These principles are as follows: n single responsibility principle (SRP) for a class, there should be only one reason for its change. N open-closed principle (OCP) software entities should be extensible, but not changeable. N liskov replacement principle (LSP) subtypes must be able to replace their base types. The N Dependency inversion principle (DIP) Abstraction should not depend on details. Details should depend on abstraction. The n interface isolation principle (ISP) should not force customers to rely on methods they do not need. An interface belongs to a customer and does not belong to its class hierarchy. N reuse release Equivalence Principle (REP) Reuse granularity is the release granularity. N the common closure principle (CCP) indicates that all classes in the package are closed for changes to the same class nature. If a change affects a package, it will affect all classes in the package, without affecting other packages. N common Reuse Principle (CRP) All classes in a package should be reused together. If a class in the package is reused, all classes in the package must be reused. N no-ring dependency principle (ADP) does not allow loops in the package dependency graph. N the stable dependency principle (SDP) is dependent in a stable direction. N the degree of abstraction of the stable abstraction principle (SAP) package should be consistent with its degree of stability. The concept of the above package is: the package can be used as a container to accommodate a group of classes. By organizing classes into packages, we can understand the design at a higher level of abstraction, we can also manage software development and release through packages. The purpose is to divide the classes in the application based on some principles, and then allocate those classes to the package. Agile design is a process, not an event. It is a process of continuous application principles, patterns, and practices to improve the structure and readability of the software. It strives to keep the system design as simple, clean, and expressive as possible at any time.
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