9 programming habits of successful software developers (1)

zhaozj2021-02-17  51

Some people who have a good original program will think: As long as the program runs well, there is no matter what the original program is. But absolutely not the case. The software is not finished in one time, it is necessary to make changes, expansion and other management. Therefore, the original procedure should be as easy as possible to understand, and the management is convenient. In doing so, the first is for software developers, followed by the software performance. Managing inconvenient programs will not make good software. I hope to learn good program habits through this article. To understand the content of this article, you should know at least 1 development tool language. It is a C language for example, but you don't worry about the C language. The principle described here is not a specific language. 1. The statement should be completed --- (colon;) one of the frequent mistakes often has a colon after the end of the statement. Such problems are not easy to discover, and the programmer is not known when it is. When programming, pay attention to whether each statement ends with a colon, although not all languages ​​ends with a colon. The following is an example of forgetting a colon. INT main (void) {/ * has no colon, resulting in problems * / printf ("Hello World! / N") Return (0);} Many people make such errors. Less than a few procedures are not difficult to find such problems, but more than 1,000 procedures? Find that the statement that I forgot to write a colon will not be very easy. Remember, end a statement, must write a colon, just like the end of the general article. There is also a wrong mist of colon not to write a colon. Experienced programmers see that the following example will feel funny, but the author does have seen a lot of such mistakes. / * Main () does not write a colon * / int main (int Argc, char * argv []); {Printf ("Hello World"); return (0);} Function or method is not written .

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

New Post(0)