Code art (programmer is worth seeing)

zhaozj2021-02-16  44

I saw this topic, maybe some people say: What kind of art is in the same kind of programming language, isn't the code?

In fact, the computer software has thousands of people, and the development tools are also

N

Sources, the source code is even more than one million, the code style is also a thousand poses. Although there is a standard writing standard in the current market, it is a standard, but it can only introduce some variables. Naming, syntax format and other general standards, and what I have to say here is something outside

----

Code art.

I believe that every programmer may have the same feelings with me, that is, now I will find a few years ago, I feel embarrassed. At that time, the program is structurally poor, and the comment is small, always say it, it is a bunch of piles. Garbage, but I still feel very good at the time, which means that we grow. I started writing the program a few years ago, when I was still DOS, I wrote the program is like a child is a piece of wood. The program is a piece of block, that is, the original era of the programmer; later Win32 opened up The new era of the computer, every programmer at that time is very excited, the functionality of the program is great, and OOP is more deeply ingenious, and more gratifying is that the programmer does not have to pay more, and the user can satisfy the user. Interface; and Win98, Win2000's launch, is a cross-century change for computers. At this time, the programmer feels that a brain is not enough, so the programmer moves toward different roads, Java, C , Delphi, PB ... computer language is incapable, COM , CORBA, SOAP ... and other programming methods are endless, in many programming languages ​​and programming methods, the standards for developing a programming industry are quite not easy, but everyone's goals are the same , That is, write a healthy, strong program, so-called health is stable, it is not easy to have problems; the so-called strong is powerful, which can meet the needs of users. With a common goal "Software Art" is born (software art is another article).

The code we wrote must be readable, so that other members of the working group can understand the procedures written by reading the documentation. The readers are particularly clear, give people a beautiful feeling. Of course, the primary is to follow the code of the code. This is the foundation of making a good programmer; there is a code must write very exquisite, the less good, there is a ready-made function, don't write, statement repeat More places, write a function instead, the program is clear and simple; there is an annotation, not too much, no, but write a little in the need; make readers to help readers Seeing the comment; there is also a word in the line, the place in the space is left, the local wrap, the uppercase of the uppercase, the lowercase, which is mentioned in the code writing standard, but I found it still A lot of programmers did not do this, so I will mention it here, causing everyone's attention.

Totally, the code art is very related to personal character. Some people think: What kind of art is not art, as long as the function is implemented, it will be OK, and some people will think: a process, no matter how much, They are all representative of their own level and character, so in the word line, each statement, every word, very seriously treated. In fact, it is true that the procedures written by each person are the level of their own level, quality and other performance.

转载请注明原文地址:https://www.9cbs.com/read-25828.html

New Post(0)