Drug testing

15 Good Programming Habits

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

In The News:

A "potentially hazardous asteroid" known as 2002 AJ129 is set to fly by Earth at a whopping 67,000 miles per hour next month, there is no need to worry, scientists say.
Divers in the blue waters around the Yucatán Peninsula have discovered three historic treasures: a sunken lighthouse and the remains of an 18th-century Dutch warship and a 19th-century British steamer, according to Mexico's National Institute of Anthropology and History (INAH).
An alligator and a Burmese python were locked in a cold-blooded battle to the death as a crowd watched in shock at a golf course in Naples, Fla.
A team of experts in Mexico has discovered two linked underwater caverns that are more than 4,000 years old and form the largest known such cave on earth.
CHEYENNE, Wyo. (AP) — How does a bighorn sheep say "cheese?"
Our solar system may be an oddball in the universe.
Experts in the Netherlands have identified two previously unknown drawings as works by Vincent van Gogh.
NATIONAL HARBOR, Md. — The universe is filled with faintly glowing infrared light, and for decades, astronomers have been trying to figure out why. But now, they've finally determined the source of this strange cosmic radiation: It is emitted by an organic molecule called benzonitrile, which seems to permeate every part of the known universe. The researchers presented their findings here at the 231st meeting of the American Astronomical Society.
The National Weather Service says the bright light and what sounded like thunder in the sky across the Detroit metropolitan area may have been a meteor.
More than 30 years after the catastrophic nuclear accident that led to 31 directly-related deaths and is considered the worst nuclear power plant accident in recorded history, Chernobyl is getting a new lease on life thanks to a new as a 1MW solar power plant.

Buying a Home Theater Receiver

Buying a receiver is one of the most important decisions... Read More

Customize Your Portable Player with an MP3 Player Accessory

Everywhere you look today people are listening to personal audio... Read More

What Are You Looking For In A Cheap MP3 Player?

Are you stymied by the vast offerings in cheap mp3... Read More

Can Movie Theatres Compete with Home HD TV in the Future?

The battle is heating up for market share, home movie... Read More

What Has A Portable MP3 Player Have To Do With Your Business

Plenty! When we made the decision to be our own... Read More

Seven Things to Consider When Choosing a PDA

In the early days, Personal Digital Assistants (PDAs) were not... Read More

An All Too Familar Pain

Lost & Found for the 21st CenturyIn today's hectic world... Read More

15 Good Programming Habits

1. Before sitting down for coding, you must have formal... Read More

Digital Cameras: How Many Pixels Do I Need?

With the bewildering number of digital cameras on the market,... Read More

Gain Control Over Your Screensavers With These Simple Steps

We all enjoy our favorite screensavers but in the same... Read More

Back Up, Back Up, Back Up!

This is not your typical lost data story. I was... Read More

Your Affiliate Business - Peripherals, Software, Computers

I have always been interested in computers, but in the... Read More

Favorite Things To Do With Home Technology

Save money. Save 10-15% on utility bills per month. Work... Read More

Simple Overview Of Computer

Computer is an electronic machine work on the instructions of... Read More

The Ipod Mini: Why Its Not that Hot

I got my eyes set on a iPod mini, as... Read More

Portable DVD Players - Things To Know

In my humble opinion nothing makes a long trip easier... Read More

Get Ahead When You Build Your Own Computer

If you've been kicking around the idea of building your... Read More

PDA Bible Free Download

Your Bible At Your FingertipsIt is fairly easy to find... Read More

The Benefits of Open Source

If you are a building a website or a forum,... Read More

Protect Your PC from Viruses, Worms & Trojans

Each of the items in the checklist below is part... Read More

A Peek Into the Near Future of Electronics Technology

How long do you think DVDs have around? 20 years?... Read More

10 Tips to SPEED Up Your PC

1. Let your PC boot up completely before opening any... Read More

How to Set Up Simple File Sharing WinXP

The first step is: Start > My DocumentsSo you have... Read More

Temporary Fixes to Spyware, Ad-ware, and Virus Infections

So you've got some spyware, ad-ware, or viruses on your... Read More

Cache In Your Chips And Get A Bus!

Computer related terminology could sometimes be daunting to newcomers. These... Read More

led exterior lighting fixtures induction street light replacement Pete's produce ..