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:

Is the newest droid in the "Star Wars" universe the future of modern robotics ?
Apollo 11 astronaut Buzz Aldrin has filed a lawsuit against two of his children, his former manager and family foundation, alleging fraud and seeking to regain control over his estate, including his space memorabilia and artifacts, as well as "all elements of the Buzz Aldrin brand."
Archaeologists have uncovered six cases of cancer while studying the bodies of ancient Egyptians who were buried long ago in the Dakhleh Oasis. The finds include a toddler with leukemia, a mummified man in his 50s with rectal cancer and individuals with cancer possibly caused by human papillomavirus (HPV).
Something unexpected has been gradually making itself known to geologists in the United States. A huge mass of molten rock is creeping upwards beneath the nation’s north eastern states.
E.T. has not yet phoned home because he may not be smart enough to know how to do it.
NASA unveiled a remarkable image of Jupiter's northern hemisphere on its website, reminiscent of a Vincent Van Gogh's "Starry Night."
President Donald Trump's call this week that to create a sixth branch of the U.S. military — which he called the "Space Force" — has reopened a wider debate about whether such a move is necessary to better manage military space activities.
Beachgoers in Bonita Spring, Florida were treated to a strange sight last week: an alligator going for a swim.
A remarkable map created in space over 50 years ago could lead a modern-day explorer to the sites of treasure-laden shipwrecks in the Bahamas.
Scientists studying bones unearthed from an ancient tomb in China’s Shaanxi Province have discovered the remains of a new but totally extinct species of ape.

Healthy Webmasters Choose Ergonomic Computer Products

Webmasters usually sit at their computers much longer in a... Read More

Wordpress Plugins

Maybe you always wanted a feature that hasn't been available... Read More

Computer Consulting 101 PC Troubleshooting Advice

While most small businesses really do need to find a... Read More

Why There Are Color Differences in Printing from Your PC

This article describes the basic properties of color, what the... Read More

iPod - Learn How It Can Solve Everyday Problems

All over the world, people carry with them walkmans and... Read More

Image Conversion In Computers

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

CCNA 640-801 Certification Primer

The Cisco Certified Network Associate (CCNA) Certification is meant for... Read More

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

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

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

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

Build Your Own Computer

I'm eighty-one years old and I bought my first computer... Read More

Selecting a Personal Digital Assistant

A Computer in Your HandCarrying around an address book and... Read More

Cache In Your Chips And Get A Bus!

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

Compare MP3 Players for the Coolest Features and Sweetest Deals

How can you compare mp3 players to be sure you're... Read More

5 Minute Guide to Video Editing for Beginners

Getting started with video editing is very simple you only... Read More

10 Easy Steps to Speed Up Your Computer - Without Upgrading

1. Empty the Temp directory regularly. To do this, make... Read More

Buying a Personal Computer (PC)

For many people the computer industry is a seeming unsolvable... Read More

Flash Memory, Part I: MMC and SD

MMC and SDFlash memory is available in so many formats... Read More

Setting File Permissions On A Unix Server

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

Be Prepared in the Event Computer Disaster Strikes

ComputersBusinesses and individuals alike have all grown to rely on... Read More

4 Computer Money-saving Tips

Tip #1 -- Rebates: A rebate is not always a... Read More

Bluetooth Technology: Tips for Buying Headsets or Headphones

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

MCSE 70-290 Certification Primer

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

Put Order and Information into File Names

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

How to Place Home Theater Speakers

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

A Beginners Guide to Avoiding Viruses

"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus... Read More

street light discounted indoor induction lights Pete's produce ..