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 hairy collection worth thousands goes on display at the Philadelphia Museum of History. Collector, Robert Peck, couldn’t believe whose hair he rescued from the trash.
Excavations in Israel are shedding new light on the history of a Biblical site linked to the Ark of the Covenant.
A "treasure trove" of dinosaur footprints — from at least seven different species — that date back about 100 million years have been uncovered by storm surge in the United Kingdom, researchers from the University of Cambridge revealed on Monday.
A strong storm likely caused a massive Atlantic bluefin tuna to wash up on a beach in Scotland over the weekend, creating quite a spectacle on the island of Sanday.
WASHINGTON — To find life on Mars, scientists may need to give up surface exploration and "go deep."
A team of paleontologists recently announced the discovery of a new horned dinosaur — a member of the Triceratops family — in the midst of 73-million-year-old rocks in southern Arizona.
WASHINGTON — The history of maritime vessels in the U.S. is preserved in an unlikely place — at the bottom of a river.
The concept of time travel has always captured the imagination of physicists and laypersons alike. But is it really possible? Of course it is. We’re doing it right now, aren’t we? We are all traveling into the future one second at a time.
Divers have recently found the barred knifejaw, a fish native only to Japan, swimming in the waters of Monterey Bay, Calif.
Europa may be the most likely place to host alien life. Beneath its surface is a salty ocean, warmed by the play of gravity on the moon’s metal core. But how do you peer through sheet ice?

The Newbies Guide to Personal Computer Maintenance

When you turn on your computer, does it act like... Read More

Selecting the Perfect Big Screen TV

Selecting a TV isn't as easy as it used to... Read More

Basic Computer Maintenance

One of the most common questions computer users ask is,... Read More

The Ipod Mini: Why Its Not that Hot

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

Learn the Lost Art of Touch Typing

Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More

Deleting and Destroying Data Forever

Peoples' private information needs to stay private, even after it... Read More

What?s the Difference Between Plasma TVs and LCD TVs?

Plasma and LCD TVs are the latest trend in home... Read More

How I Started Working With 3D Modeling Programs

So I'll start from the very beginning.One day I was... Read More

Top 9 Ways To Speed Up Your Surfing & Computing

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

Be Your Own IT Department

If you use a computer, you need to know more... Read More

Best PC Pocket GPS

Stop Getting LostOne of the greatest uses for a pocket... Read More

How Do MP3 Players Work? Digital Audio Technology Revolutionizes Music Enjoyment

Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More

Is Your Web Browser Putting You At Risk?

It's free, it comes with Windows and it's used by... Read More

Are You Well Protected?

Winter?the official start of the cold and flu season. Though,... Read More

Does Microsoft Show Hackers How To Attack?

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

Cisco CCNA / CCNP Certification: OSPF ASBRs Explained And Illustrated

When I first started studying for my CCNP, some of... Read More

Occupational Therapy and PDAs

Occupational Therapy Made EasierMedical downloads for the pda have improved... Read More

Digital Cameras: How Many Pixels Do I Need?

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

Printing Multiple Copies of Photos

I do a holiday letter every year and send them... Read More

D2X Digital SLRCoolpix 8800 Actually Refers to Two Nikon Cameras

Addressing a D2X Digital SLRCoolpix 8800 search, this article provides... Read More

Emulation Manual - A Complete Guide on How to Change Your Windows XP to Mac OS X

IntroductionMac OS X is the most technologically advanced operating system... Read More

Upgrading Your PC for Non-experts

IntroOne of the big advantages of PCs over earlier types... Read More

Apache, MySQL & PHP for Windows

Apache, MysQL and PHP for Windows could be a nice... Read More

Setting File Permissions On A Unix Server

File permissions are one of the strengths that the Unix... Read More

The Best MP3 Players Under $100

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

commercial led lighting fixtures garage lights Pete's produce ..