Code Standardization and Quality Problems ~

Source: Internet
Author: User

2001 in delphibbs to do "the first Delphi programming competition" activities (http://www.delphibbs.com/delphibbs/dispq.asp? Lid = 650664), I have discussed the Standardization and Quality of the code, and extracted some comments as follows:

======================================

3. Our company has a programmer who is now a project manager. He was originally engaged in graphic program development. I have read the code of one of its tools, Ohhhh. I almost didn't faint at the time. -- Its code is like a square, and almost every line looks like a square and seems to be repeated. However, these codes run more efficiently than all the graphics Development Kits I have ever seen!

Therefore, I absolutely agree that "A really good solution may have a lot of code, exquisite and complicated, however, the efficiency and speed are definitely not comparable to ordinary solutions. "The depth of the avenue is very simple. A very good solution can often be made complicated into simple, and the code is the solution, code is an explanation, and it is easy to understand. "and" the best code is not the Code itself, but the superb thinking and realm embodied by the Code. At this level, the code is no longer important.

4. I have a deep understanding of the Code standardization. Our company is now launching an action called "code formatting specifications.

But what I want to talk about is a little story. One of my team members is always saying that I don't understand my code, and that's not what I can understand. What about another team member, I spent more than a month on a project I wrote for two years. The previous team member always said that my code is not "standardized" or "formatted". I used too many skills and didn't need standard writing. The other team member did not say anything. The biggest difference between the two members is that the former member has only two years of programming experience, and the latter has ten years of programming experience.

If you use Delphi to write an "operating system program", there may be a few "standard writing methods" that you can use. You may have to use a variety of techniques, A variety of bizarre ideas. This is not something that most people can think. If you are interested, you can check the qstring Processing Unit. It is definitely not easy to read code, it is also absolutely refined, and the efficiency is absolutely High. However, it may be "non-standard" or "non-standard ".

I am not opposed to "code formatting". I just said that we are launching a competition here, and the focus is not to format the code, our main objective is to "write good ideas" and "good code ". The various comments and spaces used in formatting are naturally filtered out by tools, so you don't have to worry about their impact on the number of bytes in your code.

5. This competition does mean "encouraging personal competence improvement", but it does not mean "ignoring team spirit. Haha.

We ignored this point all the time and did not propose it as a mistake. In fact, there are many "program Masters" in China, but there are few talents who really know "software work" and organize "team development. As a matter of fact, I am also learning this. I am taking the development team and starting from the smallest "team. -- I think I have done very poorly. The programmers developed in India are like standard-sized blocks. It is useful to put multiple blocks at any position, but they lack the soul. The programmers trained in China are like nails, it's easy to put it anywhere, it's awesome, and it's full of power. But if you put a bunch of nails together, you don't dare to touch your hands.

But Chinese programmers are excellent outside China. Because people know how to organize nail development, rather than just how to put blocks together.

Don't turn all programmers into blocks because China does not have a good project manager. This is an end-to-end task.

6. A good sculptor must be a good carpenter and an artist must be a craftsman.

======================================

Finally, the phrase "artist must be a craftsman" was referenced in "detailed source code for implementing executable files in Delphi:

======================================

You must first be an artist before you become an artist. Programmers are programmers. If you don't calm down and do the code, nothing will happen.

Ambitious and down-to-earth, this field, the source code is also.

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.