|
|
|
|
|
|
|
|
|
|
|
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
You don't have to fork out $250 for a super-diggy-whizbang... Read More
Flash mp3 players come with an exciting array of features,... Read More
Many computer users are worried about their computer's performance. After... Read More
Save money. Save 10-15% on utility bills per month. Work... Read More
You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
Get started creating web pages using text files and HTML... Read More
The following practice, if done regularly, may help you to... Read More
PDA Medical BenefitsIf you are concerned about your medical history,... Read More
Want to save money while promoting your web-based business? Of... Read More
Are you looking for an MP3 player but am not... Read More
In my humble opinion nothing makes a long trip easier... Read More
Computer related terminology could sometimes be daunting to newcomers. These... Read More
Computers are available in different shapes, sizes and weights, due... Read More
There are soooo many choices. With all the styles and... Read More
When browsing the internet you are likely to come across... Read More
Stimulus thru Caffiene or Visual Input?It appears that the Mobi... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
Ad Blocking is getting to be a common sport on... Read More
I have a love-hate relationship with my computer.In fact, often... Read More
Do you know how many fonts are currently installed on... Read More
Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More
Do you remember the old saw about how computers would... Read More
First things first, what is Firefox? Well, it's a browser.... Read More
Webmasters usually sit at their computers much longer in a... Read More
If you're like me, you occasionally find the ubiquitous mouse... Read More
Not so many years ago, homes across the country watched... Read More
Choose Not To ConformPalm pilots and pdas are constantly growing... Read More
When you turn on your computer, does it act like... Read More
Yes, it's true. You may have inadvertently invited a spy... Read More
So I'll start from the very beginning.One day I was... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Confused by EDTV vs HDTV? We don't blame you. The... Read More
1. Let your PC boot up completely before opening any... Read More
Ad Blocking is getting to be a common sport on... Read More
Tip #1. Do a Google search. Don't be to general... Read More
All over the world, people carry with them walkmans and... Read More
The year is 1981. IBM has just released the Personal... Read More
Using SQL Server 2000 and above versions you can retrieve... Read More
If you use a computer, you need to know more... Read More
You use Ctrl+Alt+Del to see what's running on your PC,... Read More
What led them to this choice, as all four studios... Read More
Windows Media Player 10 has been full of bugs from... Read More
Sometimes your PC will start acting strange for no apparent... Read More
Get started creating web pages using text files and HTML... Read More
CCNAs and CCNA candidates hear it all the time: â??Get... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
The basic language of the internet is html. If you... Read More
After reading this good article you will know some important... Read More
Upgrading your processor will always speed up your computer, but... Read More
If you ask most people what frustrates them most about... Read More
Personal Technology |