1. Before sitting down for coding, you must have formal or a paper-napkin design of the solution to be coded. Never start coding without any design unless the code is trivial one.
2. Good code documentation is as important as good knowledge of a programming language. Write brief logic for each major block of your code as comments in source code file itself. Its good to mention creation and modification dates of your program along-with why modification was required.
3. Maintaining versions of your program is another important task. Some present-day programming tools already have a built-in version management. Whenever you make any change to your program, they save its copy as .bak file.
My approach is to maintain 3 versions of a program. Say, I have a file program.c which is used by other project team members also. I copy this file as program.c.old as backup and make another copy as program.c.wrk where I do modifications. When modifications are successfully compiled, replace program.c with .wrk file.
You can also append a date or some explanation phrase to your program versions like program260505.c or programReadFnWrking.c .
4. If your project contains multiple source files then maintain a README file stating purpose of each source files, data files, intermediate and log files (if any). You may also mention the compilation and execution steps.
5. Ever wondered why your IF statement is not working as it should do. May be your are using single equal i.e. "=" instead of "==" in the condition check. A good approach is to write condition in reverse order. So, your condition should read something like this:
if ( 10==i) .... So, if you put single equal sign by mistake then it will be detected at compilation time only as an error.
6. While using loops and conditional statements, always first put closing braces corresponding opening braces and then write the inner statements i.e.
1) for(int i=0;i
Rolling Meadows Cadillac Escalade rental .. Lockport Chicago limo O’HareFor those seeking to buy their first flat panel TV... Read More
The Internet can be a dangerous place.While you're enjoying the... Read More
Digital cameras ratings are great tools for deciding which camera... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
You probably heard of the new Firefox browser version 1.0... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
Sometimes your PC will start acting strange for no apparent... Read More
Time is money. And when you constantly have to divide... Read More
Unless you place your faith in internal search engine software... Read More
I recently took a good look at what was keeping... Read More
In the years of the dot com boom and bust,... Read More
In Windows Xp, you can install two operating systems on... Read More
The best way to get the gaming computer that you... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
Those small USB drives have so many names, pocket drives,... Read More
Google, in their march to stay ahead of the pack... Read More
Music lovers have been carrying around radios and other bulky... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
I'm eighty-one years old and I bought my first computer... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Have you ever thought about building your own computer system?... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
Computers are everywhere, and vary in specification, brands, sizes, shaped,... Read More
Des Moines rental limo ..Are you stymied by the vast offerings in cheap mp3... Read More
How long do you think DVDs have around? 20 years?... Read More
Each of the items in the checklist below is part... Read More
Time is money. And when you constantly have to divide... Read More
The United States Of America citizen feels that games is... Read More
In Windows Xp, you can install two operating systems on... Read More
You???ve studied hard; you???ve practiced your configurations; you???ve used your... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
Maintaining your computer is extremely important ? especially if you... Read More
This is not your typical lost data story. I was... Read More
OK, so you caught a computer virus and your system... Read More
In the first part of this home lab tutorial, CCNA... Read More
Projectors have come a long way in the past few... Read More
While most small businesses really do need to find a... Read More
First and foremost before I begin my ranting it is... Read More
CCNAs and CCNA candidates hear it all the time: ???Get... Read More
We have just entered the time of year that most... Read More
For those seeking to buy their first flat panel TV... Read More
Enhanced Definition Television ? also known as EDTV ? is... Read More
When browsing the internet you are likely to come across... Read More
Do you use Windows standard uninstall feature? How do you... Read More
Using SQL Server 2000 and above versions you can retrieve... Read More
Plasma and LCD TVs are the latest trend in home... Read More
Digital Video Disc or as it is sometimes referred to... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
Personal Technology |