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
green cleaning service Park Ridge ..One of the most confusing parts of beginning your Cisco... Read More
In Windows Xp, you can install two operating systems on... Read More
With renting methods such as online DVD rental and pay-per-view,... Read More
Has This Ever Happened To You? OK.. it's Friday night,... Read More
Music lovers have been carrying around radios and other bulky... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More
The basic language of the internet is html. If you... Read More
It seems like fast never quite rates fast enough.No matter... Read More
Saving Lives With A Pocket PCFree medical downloads can be... Read More
Spyware is the software that collects information about your online... Read More
Flash mp3 players come with an exciting array of features,... Read More
I got my eyes set on a iPod mini, as... Read More
We all enjoy our favorite screensavers but in the same... Read More
You use Ctrl+Alt+Del to see what's running on your PC,... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
BIOS - Basic Input Output SystemThe central processing unit of... Read More
This tip is on sharing files and folders on a... Read More
Those small USB drives have so many names, pocket drives,... Read More
Surf the 'Net for about 10 minutes and chances rate... Read More
If you have a computer for home use or for... Read More
Upgrading your processor will always speed up your computer, but... Read More
Step 1:Open WinRAR and browse to the folder with your... Read More
Most people think that all you have to do to... Read More
A computer needs a certain amount of information to operate;... Read More
cleaning help near Bannockburn ..Not sure what Windows registry is or how it works?... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
This is the third in a series of articles highlighting... Read More
By using your computer today you can find a lot... Read More
The following practice, if done regularly, may help you to... Read More
I'm eighty-one years old and I bought my first computer... Read More
Webmasters usually sit at their computers much longer in a... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
When you turn on your computer, does it act like... Read More
ASR (Automated System Recovery) is a feature available on the... Read More
Below you will find some useful information and comments about... Read More
Flash mp3 players come with an exciting array of features,... Read More
IntroOne of the big advantages of PCs over earlier types... Read More
IF WE say that it was mainly because of the... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
I do a holiday letter every year and send them... Read More
Are you frustrated with your PC?Is it feeling sluggish or... Read More
With a little tweaking and with proper tools, you can... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
When I first started studying for my CCNP, some of... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
We all enjoy our favorite screensavers but in the same... Read More
Ad Blocking is getting to be a common sport on... Read More
I met an entrepreneur who hole heartedly disagree with an... Read More
Personal Technology |