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
|
|
|
|
|
|
|
|
|
|
|


When I first started studying for my CCNP, some of... Read More
Do you remember the old saw about how computers would... Read More
The year is 1981. IBM has just released the Personal... Read More
First and foremost before I begin my ranting it is... Read More
How long do you think DVDs have around? 20 years?... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
With the bewildering number of digital cameras on the market,... Read More
How can you compare mp3 players to be sure you're... Read More
As the owner of a Country Mall and Top Site... Read More
There have been some questions on anti-skip protection on mp3... Read More
Digital Video Disc or as it is sometimes referred to... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
Maybe you always wanted a feature that hasn't been available... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
Everywhere you look today people are listening to personal audio... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
Introduction In this article I will clearly spell out the... Read More
Lost & Found for the 21st CenturyIn today's hectic world... Read More
If you ask most people what frustrates them most about... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
Up until the recent past, those who wanted to take... Read More
After another security hole recently surfaced in Microsoft's Windows operating... Read More
OK, so you caught a computer virus and your system... Read More
Not sure what Windows registry is or how it works?... Read More
About mail-mergingMail-merging is the process of merging variable data and... Read More
Winter?the official start of the cold and flu season. Though,... Read More
There are plenty of articles out there about how to... Read More
Google, in their march to stay ahead of the pack... Read More
In the years of the dot com boom and bust,... Read More
Unless you place your faith in internal search engine software... Read More
In the first part of this home lab tutorial, CCNA... Read More
Step 1:Open WinRAR and browse to the folder with your... Read More


Stop Getting LostOne of the greatest uses for a pocket... Read More
There are many sources of heat that can raise the... Read More
Digital Video Disc or as it is sometimes referred to... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
It's free, it comes with Windows and it's used by... Read More
Maintaining your computer is extremely important ? especially if you... Read More
IntroductionMac OS X is the most technologically advanced operating system... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
The Internet can be a dangerous place.While you're enjoying the... Read More
Using SQL Server 2000 and above versions you can retrieve... Read More
Computer is an electronic machine work on the instructions of... Read More
I recently took a good look at what was keeping... Read More
Occupational Therapy Made EasierMedical downloads for the pda have improved... Read More
Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
Digital cameras ratings are great tools for deciding which camera... Read More
I have always been interested in computers, but in the... Read More
For those seeking to buy their first flat panel TV... Read More
Computers are available in different shapes, sizes and weights, due... Read More
Windows Media Player 10 has been full of bugs from... Read More
IF WE say that it was mainly because of the... Read More
The first step is: Start > My DocumentsSo you have... Read More
First and foremost before I begin my ranting it is... Read More
In the first part of this home lab tutorial, CCNA... Read More
In my humble opinion nothing makes a long trip easier... Read More
This is not your typical lost data story. I was... Read More
This tip is on sharing files and folders on a... Read More
ComputersBusinesses and individuals alike have all grown to rely on... Read More
How can you compare mp3 players to be sure you're... Read More
With the new technology used to transfer information to from... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Upgrading your processor will always speed up your computer, but... Read More
Selecting a TV isn't as easy as it used to... Read More
Personal Technology |