tailieunhanh - Lecture Practical C++ programming - Chapter 29: Programming adages

This chapter pretty much speaks for itself. It is a collection of wise sayings, created by painful programming experiences, collected over the years. Inviting you refer for more details. | Chapter - 29 Programming Adages Practical C Programming Copyright 2003 O Reilly and Associates Page1 General Comment comment comment. Put a lot of comments in your program. They tell other programmers what you did. They also tell you what you did. Use the KISS principle. Keep it Simple Stupid. Clear and simple is better than complex and wonderful. Avoid side effects. Use and -- on lines by themselves. Never put an assignment inside a conditional. Never put an assignment inside any other statement. Know the difference between and . Using for is a very common mistake and is difficult to find. Practical C Programming Copyright 2003 O Reilly and Associates Page2 J General Never do nothing silently. Practice coding. People involved in almost every other profession that requires some significant level of skill and creativity practice . artists athletes . Helping others learn to program makes good practice for you by going over what you already know or think you know. Practical C Programming Copyright 2003 O Reilly and Associates .