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:

An angler in Georgia recently reeled in a Kemp’s Ridley sea turtle off a pier in Tybee Island.
An alligator was spotted in a New Jersey township this week, authorities say -- and are asking people to report if they see the creature.
Residents affected by the aftermath of Hurricane Florence may have noticed something unusual floating in the storm’s floodwaters: “islands” of fire ants.
Two tiny explorers are pushing the bounds of their kind, but if scientists have their way, the two adventurers will soon have plenty of company.
A new study shows that dozens of ice volcanoes used to litter the surface of the dwarf planet, Ceres billions of years ago.
This is the moment a snorkeler swimming in Scotland spotted a huge dorsal fin behind his pal - and realized a massive shark was directly behind them.
Archaeologists believe they have found the final resting place of Captain James Cook's ship HMS Endeavour off the East Coast of America.
An actual astronaut has suggested he — or any qualified person — may be useful to tech billionaire Elon Musk’s planned round trip to the Moon in 2023.
An ancient, 2,000-year-old Roman cemetery has been found in Lincolnshire, England. Included in the find were pieces of pottery, skeletons and "grave goods" for the deceased.
The study of the subatomic world has revolutionized our understanding of the laws of the universe and given humanity unprecedented insights into deep questions. Historically, these questions have been in the philosophical realm: How did the universe come into existence? Why is the universe the way it is? Why is there something, instead of nothing?

Digital Cameras: How Many Pixels Do I Need?

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

Digital Cameras Ratings Abolish Camera Comparison Guesswork

Digital cameras ratings are great tools for deciding which camera... Read More

Flash Your nVidia Video Cards BIOS

You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More

How to Buy a Plasma Television Set

Most people think that all you have to do to... Read More

A Tale of Two Regeds

Tech support tells me to type 'regedt32' as opposed to... Read More

Is DVD Storage An Attractive Alternative For Your Computer Backup?

If you have a computer for home use or for... Read More

Apache, MySQL & PHP for Windows

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

Bluetooth Technology: Tips for Buying Headsets or Headphones

The technological horizon has always got something new to offer,... Read More

How to Place Home Theater Speakers

You have your television and home theater receiver; you just... Read More

Windows Task Manager in English

You use Ctrl+Alt+Del to see what's running on your PC,... Read More

Freezing - Time To Warm Up Your PC

Freezing is also known as crashing or hanging. It's frustrating.... Read More

Protect Your PC from Viruses, Worms & Trojans

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

Buying A PC Flat Screen Monitor

For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More

How To Search Your PC With Google Desktop

In this era of Internet, most people are frequent users... Read More

MCSE 70-290 Certification Primer

Microsoft Certifications are one of the most widely acclaimed, pursued,... Read More

How Does My PC Get Hot

There are many sources of heat that can raise the... Read More

Are You Putting Off Productivity?

I recently took a good look at what was keeping... Read More

Digital Cameras: Hot Gear with the Coolest Features!

Cameras: still known for taking pictures but assumed as digital... Read More

Some Thoughts on Choosing a Flash MP3 Player

Flash mp3 players come with an exciting array of features,... Read More

Deleting and Destroying Data Forever

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

Top 9 Ways To Speed Up Your Surfing & Computing

It seems like fast never quite rates fast enough.No matter... 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

Classification of Computers

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

Image Conversion In Computers

JPEG, GIFF/JIFF, BMP, and TIFF are the most commonly used... Read More

Printing Multiple Copies of Photos

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

induction security lights induction lighting versus led Pete's produce ..