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
shuttle from Midway Glen Ellyn ..Feeling overwhelmed in selecting a new TV? With all the... Read More
If you've been kicking around the idea of building your... Read More
Tip #1 -- Rebates: A rebate is not always a... Read More
Each of the items in the checklist below is part... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
I have always been interested in computers, but in the... Read More
Most people think that all you have to do to... Read More
Not sure what Windows registry is or how it works?... Read More
Since the DOS days, batch files have been one of... Read More
Although there are many things that can affect the performance... Read More
The DNS (Domain Name System) servers are what your computer... Read More
That desk in front of you and everything else around... Read More
With the new technology used to transfer information to from... Read More
Peoples' private information needs to stay private, even after it... Read More
Buying Your PCBuying a PC that's right for you and... Read More
The basic language of the internet is html. If you... Read More
When you think of a help desk, what do you... Read More
It's free, it comes with Windows and it's used by... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
If you're like me, you occasionally find the ubiquitous mouse... Read More
Maintaining your computer is extremely important ? especially if you... Read More
There are plenty of articles out there about how to... Read More
Projectors have come a long way in the past few... Read More
ASR (Automated System Recovery) is a feature available on the... Read More
shuttle from O'Hare North Chicago ..With the new technology used to transfer information to from... Read More
Spyware is the software that collects information about your online... Read More
ASR (Automated System Recovery) is a feature available on the... Read More
Simone is exasperated. She has to work on her university... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
If you've been kicking around the idea of building your... Read More
I have a p3 500MHz PC with 128MB RAM, 10.2... Read More
When browsing the internet you are likely to come across... Read More
Surf the 'Net for about 10 minutes and chances rate... Read More
Buying Your PCBuying a PC that's right for you and... Read More
With the bewildering number of digital cameras on the market,... Read More
Getting started with video editing is very simple you only... Read More
I recently got an e-mail asking about virtual memory. The... Read More
There have been some questions on anti-skip protection on mp3... Read More
I am going to assume that you are running windows... Read More
Enhanced Definition Television ? also known as EDTV ? is... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
You???ve studied hard; you???ve practiced your configurations; you???ve used your... 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
The Internet is an awesome tool, but be careful and... Read More
IF WE say that it was mainly because of the... Read More
Are you stymied by the vast offerings in cheap mp3... Read More
Webmasters usually sit at their computers much longer in a... Read More
Music lovers have been carrying around radios and other bulky... Read More
Personal Technology |