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
![]() Google News Updated : Thu, 28 Aug 2008 18:25:07 GMT Quest for a Thriller To Make You Think - Washington Post
Washington Post - By Ellen McCarthy That Steve Martin -- the "Wild and Crazy" guy from "The Jerk" and "Father of the Bride. New Movies Review: 'Traitor' (Don Cheadle) Publ.Date : Thu, 28 Aug 2008 14:47:20 GMT Veoh Safe Harbor ruling could help YouTube in Viacom battle - Ars Technica
Ars Technica - By Nate Anderson | Published: August 28, 2008 - 11:25AM CT Do user-generated content (UGC) companies like YouTube and Veoh qualify for "safe harbor" protection under the DMCA, or can they be held financially liable for not cracking down harder on ... Judge grants Veoh DMCA safe harbor in copyright suit Judge: Veoh's Transcoding Is Not Piracy Publ.Date : Thu, 28 Aug 2008 16:31:30 GMT Number of uninsured Americans drops - Bizjournals.com
Bizjournals.com - The number of Americans without health insurance has dropped for the first time in several years, according to new figures released by the US Census Bureau. WellPoint spent $890000 on lobbying in 2Q Number Of Americans Without Health Insurance Drops Publ.Date : Thu, 28 Aug 2008 17:01:29 GMT Russia trifles with genocide - Christian Science Monitor
Christian Science Monitor - Of Russia's many excuses for invading Georgia, its claim of preventing genocide has set back a new idea in human history. In 2005, the UN said the international community must intervene in countries suffering mass atrocities - putting mercy before ... Video: The Georgian crisis Georgia urges OSCE to deal with Georgian-Russian conflict Publ.Date : Thu, 28 Aug 2008 17:42:07 GMT Coen brothers' spy comedy divides Venice critics - Reuters
Reuters - By Mike Collett-White VENICE (Reuters) - The Coen brothers' latest film, the madcap comedy "Burn After Reading," has sharply divided the critics, unlike last year's acclaimed "No Country For Old Men" which won four Oscars including best picture. Video: Clooney, Pitt 'Burn' Down Venice Pitt and Clooney at Venice debut Publ.Date : Thu, 28 Aug 2008 16:55:11 GMT Safina Rolls Into Third Round - New York Times
New York Times - By Ray Krueger Dinara Safina, the sixth seed and picked by some to win the tournament, defeated Roberta Vinci, 6-4, 6-3, to advance to the third round of the US Open today at Ashe Stadium. Silver Safina sails through (Extra) Russia's Dinara Safina Advances to Third Round at US Open Publ.Date : Thu, 28 Aug 2008 17:21:49 GMT Jersey beach closed after reports of medical waste find - Allentown Morning Call
Allentown Morning Call - Another beach in southern New Jersey has been closed today after receiving reports of more medical waste found on the beach -- this time in Ocean City. Three Ocean City beaches closed due to medical waste Medical Waste Shuts Down Ocean City Beach Publ.Date : Thu, 28 Aug 2008 17:33:19 GMT Amazon Content |
PARLOT::Ebooks, Scripts,
Websites, and more... When you turn on your computer, does it act like... Read More Just The Facts, Ma'mPalm pilots are all the rage now.... Read More Introduction In this article I will clearly spell out the... Read More Are you stymied by the vast offerings in cheap mp3... Read More The registry is where the computer stores information about the... Read More Webmasters usually sit at their computers much longer in a... Read More Yes, it's true. You may have inadvertently invited a spy... Read More About mail-mergingMail-merging is the process of merging variable data and... Read More Below you will find some useful information and comments about... Read More In the years of the dot com boom and bust,... Read More In the early days, Personal Digital Assistants (PDAs) were not... Read More We have just entered the time of year that most... Read More In my humble opinion nothing makes a long trip easier... Read More You don't have to fork out $250 for a super-diggy-whizbang... Read More Cookies, not the kind that Mom makes, but the computer... Read More The basic language of the internet is html. If you... Read More So you got yourself a digital camcorder. If you want... Read More ComputersBusinesses and individuals alike have all grown to rely on... Read More Surf the 'Net for about 10 minutes and chances rate... Read More "Automated Testing" is automating the manual testing process currently in... Read More World War II - Germany decided to attack Poland. Poland... Read More Many computer users are worried about their computer's performance. After... Read More CCNA FAQQ. What exams do I have to take to... Read More The DNS (Domain Name System) servers are what your computer... Read More After reading this good article you will know some important... Read More
Adsense
websites
The Newbies Guide to Personal Computer Maintenance
How Does a Palm Pilot Work?
Computer Performance Tips
What Are You Looking For In A Cheap MP3 Player?
Keeping the Windows Registry Operational
Healthy Webmasters Choose Ergonomic Computer Products
Have You Invited A Spy Into Your Computer?
Mail-merging: The Principles
Review of Rio MP3 Players
Why Get a Microsoft MCSE Certification?
Seven Things to Consider When Choosing a PDA
Lightning Season: How to Avoid Data Loss
Portable DVD Players - Things To Know
The Best MP3 Players Under $100
COOKIES - What Are They!!
Getting Started with HTML
Home Video? Bring it On
Be Prepared in the Event Computer Disaster Strikes
What Does That Error Message Really Mean?
Advantages and Guidelines of Automated Testing
Linux Power Tools - Great Tools to Make System Administration Easy
How To Increase Computer Speed And Performance - Great Tips & Tricks
Cisco CCNA Candidate FAQ
This Page Cannot Be Displayed ? What to Do When Your Internet Breaks
What Exactly are Screensavers? - part I
The following practice, if done regularly, may help you to... Read More
Viruses, software failures, power failures, human errors, hard drive failures... Read More
Do you use Windows standard uninstall feature? How do you... Read More
I met an entrepreneur who hole heartedly disagree with an... Read More
Maintaining your computer is extremely important ? especially if you... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
One of the most confusing parts of beginning your Cisco... Read More
I have a p3 500MHz PC with 128MB RAM, 10.2... Read More
When studying for your Cisco CCNA, CCNP, or CCIE exam,... Read More
Since the DOS days, batch files have been one of... Read More
There have been some questions on anti-skip protection on mp3... Read More
In this era of Internet, most people are frequent users... Read More
When browsing the internet you are likely to come across... Read More
Perhaps not yet, but the handwriting might be on the... Read More
I've worked my way from the CCNA to the CCIE,... Read More
A Computer in Your HandCarrying around an address book and... Read More
Buying a receiver is one of the most important decisions... Read More
In the 1950's and 1960's Polaroid's instant cameras were all... Read More
After reading this good article you will know some important... Read More
That desk in front of you and everything else around... Read More
If you don't have an mp3 player, and even if... Read More
Cookies, not the kind that Mom makes, but the computer... Read More
When you turn on your computer, does it act like... Read More
Want to save money while promoting your web-based business? Of... Read More
Tip #1. Do a Google search. Don't be to general... Read More
Personal Technology |