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
1. Empty the Temp directory regularly. To do this, make... Read More
Time is money. And when you constantly have to divide... Read More
1. Let your PC boot up completely before opening any... Read More
The Internet can be a dangerous place.While you're enjoying the... Read More
1. Before sitting down for coding, you must have formal... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
Computers are supposed to speed up our productivity?to help us... Read More
We've all seen them, you've been browsing a website and... Read More
Getting started with video editing is very simple you only... Read More
If you're a computer expert, you'll probably already know about... Read More
Have you ever tried to remove Spyware off your PC... Read More
It's hard enough as it is these days to get... Read More
No matter how fast your processor and regardless of how... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus... Read More
As the owner of a Country Mall and Top Site... Read More
How long do you think DVDs have around? 20 years?... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
Lost & Found for the 21st CenturyIn today's hectic world... Read More
There have been some questions on anti-skip protection on mp3... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
I recently took a good look at what was keeping... Read More
Winter?the official start of the cold and flu season. Though,... Read More
This is not your typical lost data story. I was... Read More
One of the most common questions computer users ask is,... Read More
That desk in front of you and everything else around... Read More
Simone is exasperated. She has to work on her university... Read More
I have a p3 500MHz PC with 128MB RAM, 10.2... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
If you use a computer, you need to know more... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
1. Empty the Temp directory regularly. To do this, make... Read More
Time is money. And when you constantly have to divide... Read More
1. Let your PC boot up completely before opening any... Read More
The Internet can be a dangerous place.While you're enjoying the... Read More
1. Before sitting down for coding, you must have formal... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
Computers are supposed to speed up our productivity?to help us... Read More
We've all seen them, you've been browsing a website and... Read More
Getting started with video editing is very simple you only... Read More
If you're a computer expert, you'll probably already know about... Read More
Have you ever tried to remove Spyware off your PC... Read More
It's hard enough as it is these days to get... Read More
No matter how fast your processor and regardless of how... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus... Read More
As the owner of a Country Mall and Top Site... Read More
How long do you think DVDs have around? 20 years?... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
Lost & Found for the 21st CenturyIn today's hectic world... Read More
There have been some questions on anti-skip protection on mp3... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
I recently took a good look at what was keeping... Read More
Winter?the official start of the cold and flu season. Though,... Read More
This is not your typical lost data story. I was... Read More
One of the most common questions computer users ask is,... Read More
That desk in front of you and everything else around... Read More
Simone is exasperated. She has to work on her university... Read More
I have a p3 500MHz PC with 128MB RAM, 10.2... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
If you use a computer, you need to know more... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
Personal Technology Personal Technology |