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
If you've been kicking around the idea of building your... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
Windows Media Player 10 has been full of bugs from... Read More
How familiar does the following sound? Your computer was working... Read More
I would like to tell you about a magic home.... Read More
Upgrading your processor will always speed up your computer, but... Read More
Getting a new computer should be an exciting and gratifying... Read More
Your Bible At Your FingertipsIt is fairly easy to find... Read More
This tip is on sharing files and folders on a... Read More
JPEG, GIFF/JIFF, BMP, and TIFF are the most commonly used... Read More
It seems like fast never quite rates fast enough.No matter... Read More
Here are some tips on how to use screensavers:First of... Read More
You don't have to fork out $250 for a super-diggy-whizbang... Read More
HTTP ProtocolThe web is run on port 80. You are... Read More
Plasma and LCD TVs are the latest trend in home... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
This is not your typical lost data story. I was... Read More
When I first started studying for my CCNP, some of... Read More
CCNA FAQQ. What exams do I have to take to... Read More
When you think of a help desk, what do you... Read More
In the years of the dot com boom and bust,... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
You probably heard of the new Firefox browser version 1.0... Read More
Do you use Windows standard uninstall feature? How do you... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
I do a holiday letter every year and send them... Read More
CCNAs and CCNA candidates hear it all the time: â??Get... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
The registry is where the computer stores information about the... Read More
The technological horizon has always got something new to offer,... Read More
First things first, what is Firefox? Well, it's a browser.... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Your first step in removing dangerous infections from your computer... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
As the web has evolved, so have the methods of... Read More
There are plenty of articles out there about how to... Read More
Are you thinking of buying an Apple iPod? Or have... Read More
World War II - Germany decided to attack Poland. Poland... Read More
Do you remember the old saw about how computers would... Read More
In this era of Internet, most people are frequent users... Read More
Webmasters usually sit at their computers much longer in a... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
IntroOne of the big advantages of PCs over earlier types... Read More
This is not your typical lost data story. I was... Read More
Plenty! When we made the decision to be our own... Read More
If you have a computer for home use or for... Read More
That desk in front of you and everything else around... Read More
There are soooo many choices. With all the styles and... Read More
You don't have to fork out $250 for a super-diggy-whizbang... Read More
On 21 August 2003 Symantec Security Response upgraded the W32.SOBIG.F... Read More
Have you ever tried to remove Spyware off your PC... Read More
I'm eighty-one years old and I bought my first computer... Read More
Digital cameras ratings are great tools for deciding which camera... Read More
So you got yourself a digital camcorder. If you want... Read More
CCNAs and CCNA candidates hear it all the time: â??Get... Read More
Microsoft Certifications are one of the most widely acclaimed, pursued,... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
So I'll start from the very beginning.One day I was... Read More
Getting started with video editing is very simple you only... Read More
First things first, what is Firefox? Well, it's a browser.... Read More
Saving Lives With A Pocket PCFree medical downloads can be... Read More
Computer is an electronic machine work on the instructions of... Read More
As the Web grows more crowded and just plain "noisy"... Read More
The basic language of the internet is html. If you... Read More
The battle is heating up for market share, home movie... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
Personal Technology |