Several undesirable phenomena in programming activities
Source: Internet
Author: User
Good Programming habits are every ProgramIn my software career, I often find that some programmers always have such or such bad problems.
These problems have been particularly prominent in some programmers who have not been engaged for a long time.
1. Build a tent
As the name suggests, a canopy is a task that requires no more detailed requirement analysis or detailed design. At the very beginning, the programming tool is opened and the definition of the program is broken.
A bunch of modules, I'm not talking about defining classes because of this CodeReagan could not find the object, and then work on the basis of these modules. As a result, the entire program looks like
Although a program seems to have implemented the desired functions, it is difficult to understand and maintain such a program.
It is also very difficult. Since it is a tent, it is naturally difficult to grow in the days of ups and downs.
The appearance of a canopy exposes several problems.
1) chaotic management. Managers are responsible for checking such code and providing early correction and guidance.
2) do not pay attention to design. If a software organization does not pay attention to design, it is natural to see such a phenomenon.
3) pragmatism. In the process of project implementation, some people's slogans are just like implementing functions and meeting users' needs. Therefore, they are always in a hurry in the programming process,
On the surface, the progress is accelerated, and the actual maintenance of the project is buried with explosives, seriously affecting the progress and quality of the project.
2. dingtalk
The performance of dingtalk is that when code maintenance or program implementation is performed, unnecessary or logically related code is added to the program. Such code is often manifested
In a multi-tier system, some people do not want to maintain the code from the lower layer, but modify the code from the upper layer. If you need to create a report program
The sequencer's approach is to call SQL statements directly at the interface layer, undermining the system hierarchy and encapsulation. Another way is to add operations on other objects to irrelevant objects.
.
3. Drop a hammer
Some people have just learned a new technology or a good idea. No matter whether the idea is used in the current program or not, it will be applied everywhere. Quite "I got one in my hand.
A hammer can see that everything is a nail. It is good to apply new technologies or ideas, but it also depends on the timing and occasion.
4. paste the window
When the window is broken, if there is no place for glass or you are too lazy to make a piece of glass, some people's approach is to get a picture of a newspaper or beautiful girl to break the place, in order
Shelter from the wind and rain. When a bug occurs in our program, it is like a hole in the window. Some people do not solve the problem from the source, or they are not looking for a reasonable solution.
Is to block a vulnerability in the local. The consequence may be a real congestion, but it may also be because its changes have brought more problems, or it may have blocked a place.
There are other vulnerabilities that keep posting newspapers to the program. Such a program may not seem ugly.
5. Diarrhea
Diarrhea, I think everyone has pulled it. I believe everyone will admit that its taste is actually not very good, but in fact some people like it in programming activities. Me
I once found that some people have more than 3000 rows of a function, which is calculated on 25 rows of a screen. It takes more than 100 screens to read the code of a function, my God! I want this code
To anyone, they have to pinch their noses, not to mention maintenance. Another manifestation is that a row is often written for a long time. You have to roll the scroll bar and don't know if you have been tired.
Panic.
6. Dog walking
Dogs are animals, and they cannot be controlled anywhere. One is that they have no sense of civilization, and the other is that people cannot control their consciousness. However, some of our programmers
The process of maintaining the old code is like walking the dog. Every time you modify a program, there are some hidden risks. The original good code is everywhere.
The above are some of my conclusions. One is a reminder, but a warning. To put an end to this phenomenon, in addition to strengthening management, it is particularly important for programmers to cultivate themselves. Actually many
People do not mean to do this, but are limited by their own. As a manager, programmers should constantly educate and urge programmers to keep learning and cultivate their own programming consciousness.
And quality, we also need to cultivate our attitude and sense of honor to be responsible for products, projects, colleagues, and work.
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