|
|
|
|
|
|
|
|
|
|
|
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
Just The Facts, Ma'mPalm pilots are all the rage now.... Read More
A friend told me: "My computer startup seems to be... Read More
The year is 1981. IBM has just released the Personal... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
Projectors have come a long way in the past few... Read More
Winter?the official start of the cold and flu season. Though,... Read More
File permissions are one of the strengths that the Unix... Read More
Upgrading your processor will always speed up your computer, but... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
This article describes the basic properties of color, what the... Read More
How familiar does the following sound? Your computer was working... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
About mail-mergingMail-merging is the process of merging variable data and... Read More
Those small USB drives have so many names, pocket drives,... Read More
Do you use Windows standard uninstall feature? How do you... Read More
Up until the recent past, those who wanted to take... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Many computer users are worried about their computer's performance. After... Read More
For those seeking to buy their first flat panel TV... Read More
How long do you think DVDs have around? 20 years?... Read More
The following practice, if done regularly, may help you to... Read More
A computer needs a certain amount of information to operate;... Read More
We all enjoy our favorite screensavers but in the same... Read More
With renting methods such as online DVD rental and pay-per-view,... Read More
Freezing is also known as crashing or hanging. It's frustrating.... Read More
Getting started with video editing is very simple you only... Read More
That desk in front of you and everything else around... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
Do you use Windows standard uninstall feature? How do you... Read More
One of the most confusing parts of beginning your Cisco... Read More
Computer related terminology could sometimes be daunting to newcomers. These... Read More
As the web has evolved, so have the methods of... Read More
Are you stymied by the vast offerings in cheap mp3... Read More
Microsoft Certifications are one of the most widely acclaimed, pursued,... Read More
Digital cameras ratings are great tools for deciding which camera... Read More
How can you compare mp3 players to be sure you're... Read More
Sometimes your PC will start acting strange for no apparent... Read More
I met an entrepreneur who hole heartedly disagree with an... Read More
In the years of the dot com boom and bust,... Read More
Peoples' private information needs to stay private, even after it... Read More
Ad Blocking is getting to be a common sport on... Read More
1. Before sitting down for coding, you must have formal... Read More
Winter?the official start of the cold and flu season. Though,... Read More
Maybe you always wanted a feature that hasn't been available... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
There are soooo many choices. With all the styles and... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
When you think of a help desk, what do you... Read More
This article describes the basic properties of color, what the... Read More
Personal Technology Personal Technology |