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
With the new technology used to transfer information to from... Read More
1. Before sitting down for coding, you must have formal... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Have you ever tried to remove Spyware off your PC... Read More
Cameras: still known for taking pictures but assumed as digital... Read More
Save money. Save 10-15% on utility bills per month. Work... Read More
With a little tweaking and with proper tools, you can... Read More
If you're like me, you occasionally find the ubiquitous mouse... Read More
The Cisco Certified Network Associate (CCNA) Certification is meant for... Read More
There are soooo many choices. With all the styles and... Read More
The year is 1981. IBM has just released the Personal... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
After another security hole recently surfaced in Microsoft's Windows operating... Read More
Cookies, not the kind that Mom makes, but the computer... Read More
You use Ctrl+Alt+Del to see what's running on your PC,... Read More
Unless you place your faith in internal search engine software... Read More
If you don't have an mp3 player, and even if... Read More
Plenty! When we made the decision to be our own... Read More
1. Empty the Temp directory regularly. To do this, make... Read More
Nothing is worse than having to negotiate all kinds of... Read More
There are plenty of articles out there about how to... Read More
That desk in front of you and everything else around... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
Passwords have a strange dual nature. The stronger and safer... Read More
Plenty! When we made the decision to be our own... Read More
Has This Ever Happened To You? OK.. it's Friday night,... Read More
So you've got some spyware, ad-ware, or viruses on your... Read More
Although there are many things that can affect the performance... Read More
Your Bible At Your FingertipsIt is fairly easy to find... Read More
We've all seen them, you've been browsing a website and... Read More
Spyware is the software that collects information about your online... Read More
First things first, what is Firefox? Well, it's a browser.... Read More
If you've been kicking around the idea of building your... Read More
iPod users start to get the picture and it's turning... Read More
Here are some tips on how to use screensavers:First of... Read More
JVC developed and used a high-performance reflective film to produce... Read More
"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus... Read More
Surf the 'Net for about 10 minutes and chances rate... Read More
I do a holiday letter every year and send them... Read More
One of the most common questions computer users ask is,... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
Saving Lives With A Pocket PCFree medical downloads can be... Read More
Peoples' private information needs to stay private, even after it... Read More
As the web has evolved, so have the methods of... Read More
Youâ??ve studied hard; youâ??ve practiced your configurations; youâ??ve used your... Read More
IntroOne of the big advantages of PCs over earlier types... Read More
Do you remember the old saw about how computers would... Read More
Everywhere you look today people are listening to personal audio... Read More
In the early days, Personal Digital Assistants (PDAs) were not... Read More
Personal Technology Personal Technology |