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
Culver prom limo ..Passwords have a strange dual nature. The stronger and safer... Read More
Winter?the official start of the cold and flu season. Though,... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
This is the third in a series of articles highlighting... Read More
Stimulus thru Caffiene or Visual Input?It appears that the Mobi... Read More
It's hard enough as it is these days to get... Read More
The first step is: Start > My DocumentsSo you have... Read More
While most small businesses really do need to find a... Read More
It seems like fast never quite rates fast enough.No matter... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
PDA Medical BenefitsIf you are concerned about your medical history,... Read More
Peoples' private information needs to stay private, even after it... Read More
Saving Lives With A Pocket PCFree medical downloads can be... Read More
Are you frustrated with your PC?Is it feeling sluggish or... Read More
Using SQL Server 2000 and above versions you can retrieve... Read More
Simone is exasperated. She has to work on her university... Read More
When you turn on your computer, does it act like... Read More
If you're a computer expert, you'll probably already know about... Read More
File permissions are one of the strengths that the Unix... Read More
We all enjoy our favorite screensavers but in the same... Read More
One of the most confusing parts of beginning your Cisco... 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
Do you use Windows standard uninstall feature? How do you... Read More
Computers are available in different shapes, sizes and weights, due... Read More
Wood Dale limo ..There are many sources of heat that can raise the... Read More
While most small businesses really do need to find a... Read More
There are plenty of articles out there about how to... Read More
Passwords have a strange dual nature. The stronger and safer... Read More
Buying Your PCBuying a PC that's right for you and... Read More
Buying a receiver is one of the most important decisions... Read More
One of the most confusing parts of beginning your Cisco... Read More
In Windows Xp, you can install two operating systems on... Read More
Spyware is the software that collects information about your online... Read More
So you've got some spyware, ad-ware, or viruses on your... Read More
After reading this good article you will know some important... Read More
If you're a computer expert, you'll probably already know about... Read More
CCNA FAQQ. What exams do I have to take to... Read More
Have you ever thought about building your own computer system?... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
Most people download and save so much information on their... Read More
In this era of Internet, most people are frequent users... Read More
Freezing is also known as crashing or hanging. It's frustrating.... Read More
This article describes the basic properties of color, what the... Read More
Everywhere you look today people are listening to personal audio... Read More
Tip #1. Do a Google search. Don't be to general... Read More
Although there are many things that can affect the performance... Read More
Viruses, software failures, power failures, human errors, hard drive failures... Read More
Plasma and LCD TVs are the latest trend in home... Read More
I have always been interested in computers, but in the... Read More
Personal Technology |