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
![]() |
|
![]() |
|
![]() |
|
![]() |
For those seeking to buy their first flat panel TV... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
The Internet can be a dangerous place.While you're enjoying the... Read More
First things first, what is Firefox? Well, it's a browser.... Read More
If you use a computer, you need to know more... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Introduction In this article I will clearly spell out the... Read More
I got my eyes set on a iPod mini, as... Read More
Although there are many things that can affect the performance... Read More
Lost & Found for the 21st CenturyIn today's hectic world... Read More
Upgrading your processor will always speed up your computer, but... Read More
As the web has evolved, so have the methods of... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
The basic language of the internet is html. If you... Read More
The DNS (Domain Name System) servers are what your computer... Read More
Computers are supposed to speed up our productivity?to help us... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
iPod users start to get the picture and it's turning... Read More
In this era of Internet, most people are frequent users... Read More
The registry is where the computer stores information about the... Read More
There are many sources of heat that can raise the... Read More
Buying a receiver is one of the most important decisions... Read More
System File Checker is a great utility that is typically... Read More
MP3 players are Hot! Playing music has come a long... Read More
Buying Your PCBuying a PC that's right for you and... Read More
Many computer users are worried about their computer's performance. After... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Spyware is the software that collects information about your online... Read More
Passwords have a strange dual nature. The stronger and safer... Read More
Computers are everywhere, and vary in specification, brands, sizes, shaped,... Read More
Each of the items in the checklist below is part... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
Do you use Windows standard uninstall feature? How do you... Read More
Computer related terminology could sometimes be daunting to newcomers. These... Read More
Unless you place your faith in internal search engine software... Read More
In my humble opinion nothing makes a long trip easier... Read More
MP3 players are everywhere! It seems that the number of... Read More
When you think of a help desk, what do you... Read More
Addressing a D2X Digital SLRCoolpix 8800 search, this article provides... Read More
Your first step in removing dangerous infections from your computer... Read More
All over the world, people carry with them walkmans and... Read More
I got my eyes set on a iPod mini, as... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
Most of the web applications have a lot of images... Read More
Simone is exasperated. She has to work on her university... Read More
So you got yourself a digital camcorder. If you want... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
Projectors have come a long way in the past few... Read More
What led them to this choice, as all four studios... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
Having two operating systems is not as difficult as many... Read More
Buying a receiver is one of the most important decisions... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
If you don't have an mp3 player, and even if... Read More
Do you remember the old saw about how computers would... Read More
Get started creating web pages using text files and HTML... Read More
Wouldn't you be shocked to find that your personal sensitive... Read More
Cameras: still known for taking pictures but assumed as digital... Read More
A Computer in Your HandCarrying around an address book and... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Music lovers have been carrying around radios and other bulky... Read More
In this era of Internet, most people are frequent users... Read More
When browsing the internet you are likely to come across... Read More
When you turn on your computer, does it act like... Read More
Personal Technology |