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
licensed cleaning services Park Ridge ..Good Morning Mr. Sampson. Please type in you Personal Identification... Read More
In the early days, Personal Digital Assistants (PDAs) were not... Read More
If you don't have an mp3 player, and even if... Read More
I recently took a good look at what was keeping... Read More
Up until the recent past, those who wanted to take... Read More
So you've got some spyware, ad-ware, or viruses on your... Read More
It's hard enough as it is these days to get... Read More
Surf the 'Net for about 10 minutes and chances rate... Read More
1. Empty the Temp directory regularly. To do this, make... Read More
MP3 players are Hot! Playing music has come a long... Read More
On 21 August 2003 Symantec Security Response upgraded the W32.SOBIG.F... Read More
If you have a computer for home use or for... Read More
Perhaps not yet, but the handwriting might be on the... Read More
Cisco Certification: Taking Your First Certification ExamYou've studied hard; you've... Read More
What led them to this choice, as all four studios... Read More
You don't have to fork out $250 for a super-diggy-whizbang... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
I got my eyes set on a iPod mini, as... Read More
MP3 players are everywhere! It seems that the number of... Read More
Flow Text Around a GraphicQuestion: I have inserted a photo... Read More
MMC and SDFlash memory is available in so many formats... Read More
Below you will find some useful information and comments about... Read More
File permissions are one of the strengths that the Unix... Read More
No matter how fast your processor and regardless of how... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
on demand house cleaning Arlington Heights ..So you've got some spyware, ad-ware, or viruses on your... Read More
It's free, it comes with Windows and it's used by... Read More
There are many sources of heat that can raise the... Read More
A friend told me: "My computer startup seems to be... Read More
I met an entrepreneur who hole heartedly disagree with an... Read More
Maybe you always wanted a feature that hasn't been available... Read More
Lost & Found for the 21st CenturyIn today's hectic world... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
Has This Ever Happened To You? OK.. it's Friday night,... Read More
Below you will find some useful information and comments about... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
The first step is: Start > My DocumentsSo you have... Read More
Computers are available in different shapes, sizes and weights, due... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Those small USB drives have so many names, pocket drives,... Read More
CCNA FAQQ. What exams do I have to take to... Read More
Viruses, software failures, power failures, human errors, hard drive failures... Read More
Digital cameras ratings are great tools for deciding which camera... Read More
A computer needs a certain amount of information to operate;... Read More
iPod users start to get the picture and it's turning... Read More
Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More
Have you ever tried to remove Spyware off your PC... Read More
In the 1950's and 1960's Polaroid's instant cameras were all... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
Digital Video Disc or as it is sometimes referred to... Read More
Personal Technology |