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
limo prices to midway Crystal Lake west of Randal .. Lockport Chicago limo O’HareOne of the most common questions computer users ask is,... Read More
All over the world, people carry with them walkmans and... Read More
HTTP ProtocolThe web is run on port 80. You are... Read More
Computer is an electronic machine work on the instructions of... Read More
Google, in their march to stay ahead of the pack... Read More
How familiar does the following sound? Your computer was working... Read More
One of the most confusing parts of beginning your Cisco... Read More
Upgrading your processor will always speed up your computer, but... Read More
Are you stymied by the vast offerings in cheap mp3... Read More
It's free, it comes with Windows and it's used by... Read More
Digital Video Disc or as it is sometimes referred to... Read More
The registry is where the computer stores information about the... Read More
We have just entered the time of year that most... Read More
This is the third in a series of articles highlighting... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
For those seeking to buy their first flat panel TV... Read More
Buying Your PCBuying a PC that's right for you and... Read More
When you turn on your computer, does it act like... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
I got my eyes set on a iPod mini, as... Read More
Are you frustrated with your PC?Is it feeling sluggish or... Read More
Do you remember the old saw about how computers would... Read More
Microsoft Certifications are one of the most widely acclaimed, pursued,... Read More
Having two operating systems is not as difficult as many... Read More
A Computer in Your HandCarrying around an address book and... Read More
taxi o'hare Auburn ..HTTP ProtocolThe web is run on port 80. You are... Read More
In the 1950's and 1960's Polaroid's instant cameras were all... Read More
Most people download and save so much information on their... Read More
I got my eyes set on a iPod mini, as... Read More
Cameras: still known for taking pictures but assumed as digital... Read More
No matter how fast your processor and regardless of how... Read More
Your first step in removing dangerous infections from your computer... Read More
We all enjoy our favorite screensavers but in the same... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
If you ask most people what frustrates them most about... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
IntroOne of the big advantages of PCs over earlier types... Read More
This article describes the basic properties of color, what the... Read More
After reading this good article you will know some important... Read More
Are you looking for an MP3 player but am not... Read More
I'm eighty-one years old and I bought my first computer... Read More
I have a p3 500MHz PC with 128MB RAM, 10.2... Read More
Time is money. And when you constantly have to divide... Read More
I have always been interested in computers, but in the... Read More
A friend told me: "My computer startup seems to be... Read More
MP3 players are everywhere! It seems that the number of... Read More
Peoples' private information needs to stay private, even after it... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
Maintaining your computer is extremely important ? especially if you... Read More
On 21 August 2003 Symantec Security Response upgraded the W32.SOBIG.F... Read More
Personal Technology |