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
Computers are supposed to speed up our productivity?to help us... Read More
Microsoft Business Solutions is on the way to popularize it's... Read More
The battle is heating up for market share, home movie... Read More
No matter how fast your processor and regardless of how... Read More
When I first started studying for my CCNP, some of... Read More
Using SQL Server 2000 and above versions you can retrieve... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Plasma and LCD TVs are the latest trend in home... Read More
Step 1:Open WinRAR and browse to the folder with your... Read More
HTTP ProtocolThe web is run on port 80. You are... Read More
If you're a computer expert, you'll probably already know about... Read More
In Windows Xp, you can install two operating systems on... Read More
When you turn on your computer, does it act like... Read More
As the web has evolved, so have the methods of... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
OK, so you caught a computer virus and your system... Read More
As the owner of a Country Mall and Top Site... Read More
Simone is exasperated. She has to work on her university... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
One of the most common questions computer users ask is,... Read More
The following practice, if done regularly, may help you to... Read More
All of us are familiar with the pyramids of Egypt.... Read More
There are many sources of heat that can raise the... Read More
Getting started with video editing is very simple you only... Read More
I met an entrepreneur who hole heartedly disagree with an... Read More
Nothing is worse than having to negotiate all kinds of... Read More
You probably heard of the new Firefox browser version 1.0... Read More
A Computer in Your HandCarrying around an address book and... Read More
On 21 August 2003 Symantec Security Response upgraded the W32.SOBIG.F... Read More
So I'll start from the very beginning.One day I was... Read More
Peoples' private information needs to stay private, even after it... Read More
Addressing a D2X Digital SLRCoolpix 8800 search, this article provides... Read More
Cisco Certification: Taking Your First Certification ExamYou've studied hard; you've... Read More
When you turn on your computer, does it act like... Read More
Projectors have come a long way in the past few... Read More
Computers are everywhere, and vary in specification, brands, sizes, shaped,... Read More
So you've got some spyware, ad-ware, or viruses on your... Read More
While most small businesses really do need to find a... Read More
You have your television and home theater receiver; you just... Read More
Have you ever thought about building your own computer system?... Read More
No matter how fast your processor and regardless of how... Read More
It's free, it comes with Windows and it's used by... Read More
Although there are many things that can affect the performance... Read More
Freezing is also known as crashing or hanging. It's frustrating.... Read More
As the owner of a Country Mall and Top Site... Read More
Want to save money while promoting your web-based business? Of... Read More
This tip is on sharing files and folders on a... Read More
How can you compare mp3 players to be sure you're... Read More
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
I'm eighty-one years old and I bought my first computer... Read More
All over the world, people carry with them walkmans and... Read More
ASR (Automated System Recovery) is a feature available on the... 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
I got my eyes set on a iPod mini, as... Read More
Cameras: still known for taking pictures but assumed as digital... Read More
I recently got an e-mail asking about virtual memory. The... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
One of the most common questions computer users ask is,... Read More
When I first started studying for my CCNP, some of... Read More
In Windows Xp, you can install two operating systems on... Read More
MP3 players are everywhere! It seems that the number of... Read More
You probably heard of the new Firefox browser version 1.0... Read More
In the first part of this home lab tutorial, CCNA... Read More
HTTP ProtocolThe web is run on port 80. You are... Read More
Personal Technology |