Many people do not like code or write code. It may be boring and boring to write code, or it is really easy to write code (the experts think so), and it is not worth embracing it, some people even have utilitarian ideas. I also had such a problem. I had to find some code advantages to cultivate my preference for the code.
Major benefits of code:Implement software products. Haha, It's really nonsense, but it is indeed the first benefit
The second advantage of code:It can be used for estimation in the project planning phase. The common practice is to estimate based on the code line. For example, the past history of the 7-person team is average per person, and 100 lines of code can be completed every day. The total code behavior of this project is estimated to be 70 thousand lines, which takes about three months to complete. I was in a company where I asked foreigners to evaluate cms2. Foreigners looked at a project I used to participate in and completed 400 million lines of work every day !!, At that time, foreigners said, "the company has such a level. I don't need to use cms2. I 'd like to comment on cm5." Haha, it is really hard to write code, especially for Chinese programmers. The plan-making asshole!
The third benefit of the Code:Used for communication. Without a doubt, code is the language that never produces any difference. If your eloquence is not good, you can say, "I cannot express it now. However, you can tell me to write a class for you .., it has such a method to accept the system variable we just talked about .. ", Look, I think anyone who has heard such a statement can understand the ideas of his companions.
The fourth advantage of code:It is used for design. It can be verified and modified through code implementation. Based on the previous point of view, we can directly construct some pseudo code to complete the design. Such code can certainly be understood by all developers. You don't need to write annoying documents or fancy design Images (of course, you must add them later ). In addition, the pre-research of the design sometimes has to use code to verify the design. I once made a product in the company. At the time of design, I said, "vomit, when the system receives the XML message sent by the participant, the XML message is converted to a Java object using the xxx tool. The Java object interacts with each other within the system. If you need to respond to the participant, pass the object to the YYY tool (XXX and YYY tools are all well-known open-source software, but I am not familiar with their usage at the beginning ), YYY automatically converts the object to an XML message and sends it to the participant ". Look, how easy it is to design. However, this is because the two tools found in later development are not as magical as they are, and the system is re-designed. Code developers sometimes complain about giving designers a bid. In fact, this is to be divided into two parts. Sometimes it is because the designers did not take it into consideration because of their ability or carelessness. In some cases, the project changes and the design needs to be changed. The key to solving the problem is to negotiate with each other. Complaints can only calm down. A girl who has worked with me with two little bits has such a bad temper. She often calls me "monkey" when implementing code. Look, this interface cannot be implemented, because the pass object does not define an associated field, "I will say," vomit, I forgot to define it. I will add it immediately ".
The fifth benefit of the Code:Well-known code naming rules eliminate the need to write comments for the Code, such as boolean. valueof (). for example, productspecification. createinstance (), etc. You can refer to Java style for more details.
The sixth major benefit of code:Used for testing. You can write unit tests to ensure system quality and enhance your information. Generally, you can use JUnit tools to help you complete unit testing. There are many articles about unit testing. I will not describe it here. But I have a trick to share with you, that is, when reading the source code, for example on Apache, you can often read its test code to understand which classes are important to the system, and learn how to use this tool.
The seventh benefit of the Code:Physical evidence, whole-person evidence. The code is fair. When I discuss the benefits of the Code with a colleague, he tells me that if someone is always playing the microphone while singing, the next time the Code is checked, everyone will pick out his mistake. Haha, you are joking. Never use this advantage for the whole person.
There are so many benefits of the Code that occur in the planning, analysis, design, implementation, and testing of the system !!! I don't know if you have added anything after reading it? However, I believe that you will embrace your dear code, ^ _ ^.
My ideas come from XP and my discussions with colleagues.
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