Some bad habits that programmers should avoid in programming work

Source: Internet
Author: User
Good programming habits are every programmer should have the quality of work, in my software career repeatedly found that some programmers have this or that kind of bad habits
These problems are particularly prominent in programmers who are not working long hours.
1. The Shed
A shed as the name suggests is to get a task, neither do more detailed requirements analysis, and not for detailed design, the beginning of the opening of programming tools, crackling definition
A bunch of modules, I'm not talking about defining classes, because they don't find objects in the code, and then they work on the basis of these modules, and the whole program looks
Like a haphazard shed, although there is a procedure, and seems to achieve the desired function, but such a program is often logical confusion, not only understand the difficulties, maintenance
is also very difficult to come by. Since it is a shed, it is difficult to be long in a precarious day.
There are several problems with the emergence of the sheds.
1 Management of Chaos. Managers have the responsibility to check for such code, and to give early corrections and provide guidance.
2) do not pay attention to the design. If a software organization does not value design, it is natural to have such a phenomenon.
3) Pragmatism. In the process of implementation of the project, some people's slogan is to achieve the function is good, to meet the needs of users, so in the process of programming is always in a hurry to mount,
On the surface is to speed up the progress, the actual project for the late maintenance of the buried explosives, serious will seriously affect the project's progress and quality.
2. Nail Nails
Nail nails In the performance of Code maintenance or program implementation, abruptly to the program to add unnecessary or related to the object and logic code. Such code tends to show
In the system of multi-layer system, some people do not want to maintain the code from the lower level in order to be lazy, but start to modify from the top, if the user needs to make a report program, then some process
The procedure of the preface is to call the SQL statement directly at the interface layer, which destroys the hierarchy and encapsulation of the system. There is also the practice of adding to other objects in unrelated objects
The code.
3. Shake Hammer
Some people have just learned a new technology, or a good idea, regardless of whether the idea is used in the current program, and apply everywhere. Quite a "hand took a
The hammer will see everything is a nail "posture. It is good to apply new techniques or ideas, but it also depends on timing and occasion.
4. Paste the window
When the window is broken, if there is no place to glass or bother to do a piece of glass, some people's practice is to get a newspaper or beauty of the picture posts broke the place, in order to
Shelter from the wind and rain. A bug in our program is like a hole in the window. Some people do not solve from the source, or not to find a reasonable solution, and
is to plug a vulnerability in place. The consequences may be really blocked, but it may also be because the changes brought more problems, it may be blocked a place, back to find
There are other loopholes, and then keep on to the program to post newspaper. Such a program would not seem to know how ugly it was.
5. Diarrhea
Diarrhea, I think everyone has pulled, I believe everyone will admit that the taste is actually not very comfortable, but in fact, some people in the programming activities like this. I
Once found that some people a function incredibly more than 3000 lines, to a screen 25 lines to calculate, to turn over 100 screen to be a function of the code to read, my god! I think the code like this
To anyone to pinch the nose, not to mention to maintain. Another performance is a line is often written very long, oneself will scroll roll over the past do not know whether ever felt tired
's panic.
6. Walk the dog son
The dog is the animal, everywhere defecate is unable to control, one is they do not have the civilized consciousness, another is the human cannot control their consciousness. However, some of our programmers are
The process of maintaining the old code is as if walking the dog. Every modification of a program left some hidden trouble, the result of a good code is all over the hidden dangers.
These are some of my summary, one is to remind, but alert. To eliminate this phenomenon, in addition to strengthening management, the programmer's self-discipline is particularly important. Actually a lot of
People do not intentionally, but by their own limitations. As a manager to constantly educate and urge programmers, programmers should also pay attention to continuous learning, develop their own programming awareness
and quality, but also to develop their own products responsible for the project, responsible for colleagues, responsible for their own work attitude and sense of honor.


Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.