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
rental limo Atlanta .. Lockport Chicago limo O’HareThe following practice, if done regularly, may help you to... Read More
OK, so you caught a computer virus and your system... Read More
All over the world, people carry with them walkmans and... Read More
Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More
In this era of Internet, most people are frequent users... Read More
I am going to assume that you are running windows... Read More
MMC and SDFlash memory is available in so many formats... Read More
Getting a new computer should be an exciting and gratifying... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
The battle is heating up for market share, home movie... Read More
If you've been kicking around the idea of building your... Read More
Have you ever tried to remove Spyware off your PC... Read More
Unless you place your faith in internal search engine software... Read More
The Internet is an awesome tool, but be careful and... Read More
Here are some tips on how to use screensavers:First of... Read More
If you're a computer expert, you'll probably already know about... Read More
What led them to this choice, as all four studios... Read More
This article describes the basic properties of color, what the... Read More
1. Before sitting down for coding, you must have formal... Read More
You use Ctrl+Alt+Del to see what's running on your PC,... Read More
The United States Of America citizen feels that games is... Read More
We all enjoy our favorite screensavers but in the same... Read More
When you turn on your computer, does it act like... Read More
Flow Text Around a GraphicQuestion: I have inserted a photo... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
Bedford Park taxi to Midway ..How can you compare mp3 players to be sure you're... Read More
Maybe you always wanted a feature that hasn't been available... Read More
Below you will find some useful information and comments about... Read More
If you utilize a computer at home or work it... Read More
Enhanced Definition Television ? also known as EDTV ? is... Read More
In my humble opinion nothing makes a long trip easier... Read More
I got my eyes set on a iPod mini, as... Read More
If you have a computer for home use or for... Read More
Computer related terminology could sometimes be daunting to newcomers. These... Read More
Plenty! When we made the decision to be our own... Read More
We all enjoy our favorite screensavers but in the same... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
GOT VIRUS? Your Data is NOT lost forever!In the wake... Read More
When I first started studying for my CCNP, some of... Read More
Computers are everywhere, and vary in specification, brands, sizes, shaped,... Read More
File permissions are one of the strengths that the Unix... Read More
If you use a computer, you need to know more... Read More
Selecting a TV isn't as easy as it used to... Read More
IF WE say that it was mainly because of the... Read More
A friend told me: "My computer startup seems to be... Read More
Upgrading your processor will always speed up your computer, but... Read More
After another security hole recently surfaced in Microsoft's Windows operating... Read More
Digital Video Disc or as it is sometimes referred to... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
What led them to this choice, as all four studios... Read More
Personal Technology |