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
experienced cleaning professionals Northbrook ..Feeling overwhelmed in selecting a new TV? With all the... Read More
Everywhere you look today people are listening to personal audio... Read More
It's free, it comes with Windows and it's used by... Read More
The DNS (Domain Name System) servers are what your computer... Read More
By using your computer today you can find a lot... Read More
The registry is where the computer stores information about the... Read More
With the new technology used to transfer information to from... Read More
With a little tweaking and with proper tools, you can... Read More
Most of the web applications have a lot of images... Read More
With their solid-state technology, compact size, and abundant memory, portable... Read More
With the bewildering number of digital cameras on the market,... Read More
Saving Lives With A Pocket PCFree medical downloads can be... Read More
Save money. Save 10-15% on utility bills per month. Work... Read More
In this era of Internet, most people are frequent users... Read More
1. Before sitting down for coding, you must have formal... Read More
One of the most confusing parts of beginning your Cisco... Read More
What led them to this choice, as all four studios... Read More
Flow Text Around a GraphicQuestion: I have inserted a photo... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
If you are a building a website or a forum,... Read More
CCNA FAQQ. What exams do I have to take to... Read More
Digital Video Disc or as it is sometimes referred to... Read More
Plasma and LCD TVs are the latest trend in home... Read More
Although there are many things that can affect the performance... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
best value cleaning service Northbrook ..Those small USB drives have so many names, pocket drives,... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
Stimulus thru Caffiene or Visual Input?It appears that the Mobi... Read More
BIOS - Basic Input Output SystemThe central processing unit of... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
1. Before sitting down for coding, you must have formal... Read More
Do you use Windows standard uninstall feature? How do you... Read More
All over the world, people carry with them walkmans and... Read More
Are you stymied by the vast offerings in cheap mp3... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
After another security hole recently surfaced in Microsoft's Windows operating... Read More
1. Empty the Temp directory regularly. To do this, make... Read More
The DNS (Domain Name System) servers are what your computer... Read More
In the years of the dot com boom and bust,... Read More
In the 1950's and 1960's Polaroid's instant cameras were all... Read More
One of the most common questions computer users ask is,... Read More
You???ve studied hard; you???ve practiced your configurations; you???ve used your... Read More
Stop Getting LostOne of the greatest uses for a pocket... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
MP3 players are Hot! Playing music has come a long... Read More
I've worked my way from the CCNA to the CCIE,... Read More
The basic language of the internet is html. If you... Read More
As the Web grows more crowded and just plain "noisy"... Read More
By using your computer today you can find a lot... Read More
Viruses, software failures, power failures, human errors, hard drive failures... Read More
| Personal Technology |