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 tiny, pointy-headed skeleton that fits in the palm of a hand isn't an alien, despite conspiracy theories that have circulated for years.
If you're experiencing a spell of bad luck, many people may ask you the same question: is Mercury in retrograde?
Even if you don't do drugs, there's a surprisingly decent chance your fingerprints have traces of cocaine and even heroin.
California residents, brace yourselves: an atmospheric river could bring multiple inches of rain to central and southern parts of the state over the next few days.
The researchers said the magma under Yellowstone may stretch as far as Mexico.
A look at where and why tornadoes happen and what to do if you're stuck in one.
Researchers have discovered 15 new planets around cool stars known as red dwarfs, and one of those planets might be able to host liquid water on its surface.
NASA's robotic space station crewmember could head down to Earth as early as May for repairs.
The rise of the largest volcanoes in the solar system may have led Mars to possess oceans hundreds of millions of years earlier than previously thought, a new study finds.
Stephen Hawking will spend eternity in the company of some other tremendously influential English scientists.

How to Use SQLXML to Retrieve Data from SQL Server Database?

Using SQL Server 2000 and above versions you can retrieve... Read More

Basic Diagnosis Guidelines for Your PC

Simone is exasperated. She has to work on her university... Read More

Classification of Computers

Computers are available in different shapes, sizes and weights, due... Read More

Lightning Season: How to Avoid Data Loss

We have just entered the time of year that most... Read More

Your Home is in Your Hands

I would like to tell you about a magic home.... Read More

Repairing A Corrupt .RAR/.ZIP Archive

Step 1:Open WinRAR and browse to the folder with your... Read More

Put Order and Information into File Names

Unless you place your faith in internal search engine software... Read More

Web Standards

HTTP ProtocolThe web is run on port 80. You are... Read More

Computer Performance Tips

Introduction In this article I will clearly spell out the... Read More

Bluetooth Headphones For Your PDA

Nothing is worse than having to negotiate all kinds of... Read More

More Cool Web Tricks

If you ask most people what frustrates them most about... Read More

How To Safeguard Your Computer?

The following practice, if done regularly, may help you to... Read More

Does Microsoft Show Hackers How To Attack?

After another security hole recently surfaced in Microsoft's Windows operating... Read More

SmartCar Memory Stick for LapTop Transfer Data

With the new technology used to transfer information to from... Read More

Help, I Need a New HDTV! (Part 3 of 5)

Feeling overwhelmed in selecting a new TV? With all the... Read More

Improve PC Performance - 6 Tips You Must Know

Are you frustrated with your PC?Is it feeling sluggish or... Read More

Things You Can Do To Speed Up Your Computer

Upgrading your processor will always speed up your computer, but... Read More

Top 9 Ways To Speed Up Your Surfing & Computing

It seems like fast never quite rates fast enough.No matter... Read More

Uninstall Windows Media Player 10 and Start Enjoying Your Media Again

Windows Media Player 10 has been full of bugs from... Read More

Dynamite Comes in Small Packages - Tiny Personal Audio MP3 Players Pack Powerful Music Enjoyment

MP3 players are Hot! Playing music has come a long... Read More


Confused by EDTV vs HDTV? We don't blame you. The... Read More

404 Error Pages: What Are They And How Do You Create One?

We've all seen them, you've been browsing a website and... Read More

Home Video? Bring it On

So you got yourself a digital camcorder. If you want... Read More

The Best MP3 Players Under $100

You don't have to fork out $250 for a super-diggy-whizbang... Read More

The Help Desk

When you think of a help desk, what do you... Read More

cheap led light bulbs led parking lot Pete's produce ..