Help us stay free, Link back to us! General Information - Bookmark this page

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:


Personal Tech: Army to use video games for training
Salt Lake Tribune, United States - Dec 1, 2008
It will watch trends in commercial video games and look for technologies that can be used in training -- but it does not plan to compete with the industry. ...

Personal Tech: Music lovers have lots of portable options
Salt Lake Tribune, United States - Dec 1, 2008
AP The Microsoft Zune sports a touch pad and sharp screen that make it easy and fun to check out all your music, photos and videos. ...

10 Things You Can Do to Give Your Computer a "Makeover"
MarketWatch - Dec 2, 2008
This according to BluePhone ( www.bluephone.com), the personal tech support hotline and "At Home Help Desk" that helps consumers get maximum value out of ...

Seattle Post Intelligencer

Behind the scenes of the Bowl Championship Series
Baylor University The Lariat Online, TX - 49 minutes ago
For Maxey Parrish, a personal responder and Web editor to the e-mails sent to the Bowl Championship Series Web site, it's just another day at the office. ...
LIKE IT IS : Big 12 foolish to let BCS standings break tie Arkansas Democrat Gazette
This computer and pollster give OU the nod over Texas SportingNews.com
Settle Big 12's spat on the field Denver Post
News Enterprise - Dallas Morning Newsall 2,287 news articles

10 Things You Can Do to Give Your Computer a "Makeover"
International Business Times, NY - Dec 2, 2008
This according to BluePhone (www.bluephone.com), the personal tech supporthotline and "At Home Help Desk" that helps consumers get maximum value outof their ...

Personal Tech: Digital cameras go big on video
Salt Lake Tribune, United States - Nov 24, 2008
By Ron Harris AP Writer The holiday season brings good tidings for shutterbugs. Whether you're shopping for someone new to digital cameras or a seasoned ...

Coping With the Inevitable: The Losers in Your Portfolio
Wall Street Journal - 23 hours ago
One of the few positive things I can say about the tech-stock collapse of 2000-02 is that I didn't pay capital-gains taxes for years. ...

Job sites vs. personal networks: How I'm looking for work in the ...
TechFlash, WA - 2 hours ago
Nearly every job I’ve ever been offered has been a result of a personal connection, be it a part-time fundraising position offered by a college friend’s dad ...

'Tech satyagraha' nets big gains in Mumbai
Times of India, India - 2 hours ago
But the email and mobile are very personal mediums,'' he adds. The most prominent example is Barack Obama - whose victory in the US Presidential elections ...

Personal Tech: Tennesee boasts world's fastest unclassified computer
Salt Lake Tribune, United States - Nov 17, 2008
AP The Department of Energy's Oak Ridge National Laboratory in Oak Ridge, Tenn. released this photograph Nov. 10 showing some of the 284 computer cabinets ...
personal tech - Google News

10 Easy Steps to Speed Up Your Computer - Without Upgrading

1. Empty the Temp directory regularly. To do this, make sure NO programs are open, and?a. In Windows 95, 98 or Me, go to C:WindowsTemp and delete everything inside the Temp folder.b. In... Read More

Does Microsoft Show Hackers How To Attack?

After another security hole recently surfaced in Microsoft's Windows operating system, the software giant released a patch this past Friday to plug the possibly devastating "back door" which allows hackers to potentially seize... Read More

Plasma TV vs LCD TV

For those seeking to buy their first flat panel TV display device, it is easy to be confused with conflicting and counter claims by different interest parties. So what is the truth in... Read More

Upgrading Your PC for Non-experts

IntroOne of the big advantages of PCs over earlier types of computers is that they're upgradable. If you get to the point where you need a faster computer, more storage space or whatever,... Read More

Mail-merging: The Principles

About mail-mergingMail-merging is the process of merging variable data and fixed text.Using mail-merging, you can create individualised letters, envelopes, labels and other documents without having to laboriously create each individual one.Mail-merging naturally fulfils... Read More

5 Steps to Remove Spyware for Free

Have you ever tried to remove Spyware off your PC only to find out it never left or it came back? Tired of all those annoying Popups, Viruses, and Ads on your system... Read More

Virtual Memory - What is It?

I recently got an e-mail asking about virtual memory. The person who sent me the question was getting an error on random occasions from their Windows operating system stating "Your computer is low... Read More

Basic Diagnosis Guidelines for Your PC

Simone is exasperated. She has to work on her university assignment but her PC is not working properly. For example: She would like to open a single Internet Explorer window but a whole... Read More

Choosing a Portable MP3 Player: Part 1

MP3 players are everywhere! It seems that the number of makes and models in this market is growing daily, with features and capabilities intended to appeal to just about anyone shopping for one... Read More

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

So you've got some spyware, ad-ware, or viruses on your system. For whatever reason, you are unable to get ahold of a virus detection & removal program, or a good ad-ware scanner. Maybe... Read More

What Does That Error Message Really Mean?

Surf the 'Net for about 10 minutes and chances rate very high that you'll encounter an error of one kind or another.Whether the error message pops up on your own computer or on... Read More

Some Thoughts on Choosing a Flash MP3 Player

Flash mp3 players come with an exciting array of features, and can be used for more than playing music while you cycle at the gym. Here are some things to think about when... Read More

New Computer? Steps to Protect Your Computer Before Connecting to the Internet

Getting a new computer should be an exciting and gratifying experience. After all, you'll be able to do things faster, safer and without having to worry that your old hard drive is so... Read More

How I Started Working With 3D Modeling Programs

So I'll start from the very beginning.One day I was surfing in the web and I found one site -- www.digitalblasphemy.com and I browsed it. I was inspired by the 3D graphics' realism... Read More

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... Read More

A Peek Into the Near Future of Electronics Technology

How long do you think DVDs have around? 20 years? 10 years? Actually, they have only been around for about seven years, but it seems like they have been around much longer. Many... Read More

Cache In Your Chips And Get A Bus!

Computer related terminology could sometimes be daunting to newcomers. These are relatively new words or hybrids of words, already in existence. Someone with a degree in English, for example, could not necessarily guess,... Read More

Computer Geeks and Garden Gnomes

First and foremost before I begin my ranting it is worth mentioning that there are many very helpful and considerate people out there in the cyber wilderness who devote much of their time... Read More

Printing Multiple Copies of Photos

I do a holiday letter every year and send them to friends so they know what's happening with my family and I ask them about theirs. Though addressing the envelopes and such is... Read More

If You are the Only User on Your Windows XP Computer, Do You Think One User Account Is Enough?

I am going to assume that you are running windows xp on your machine, and you are the only user on this machine. That is right, no one else uses your computer except... Read More

Cisco Certification: Taking Your First Certification Exam

You???ve studied hard; you???ve practiced your configurations; you???ve used your flash cards over and over again; and finally, the big day is here. Your first certification exam!For many Cisco certification candidates, their first... Read More

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

Feeling overwhelmed in selecting a new TV? With all the choices these days, you may feel like, "Where do I start?!"In part 4 of our 5 part article, we the discuss "do I... Read More

The Advantages of Portable MP3 Players

With their solid-state technology, compact size, and abundant memory, portable mp3 players are the state of the art in portable music systems.Most portable mp3 players feature storage systems that have no moving parts.... Read More

Keeping Passwords Secure

As the web has evolved, so have the methods of collecting personal information. A large number of websites require visitors to register to gain access or participate. While the need for registration is... Read More

Flow Text Around a Graphic in Microsoft Word

Flow Text Around a GraphicQuestion: I have inserted a photo in my Word document but when I try to make my text go around the photo, it will only go above and below... Read More

MCSE 70-290 Certification Primer

Microsoft Certifications are one of the most widely acclaimed, pursued, and achieved technical certifications in the IT industry. The demand for Microsoft Certified Professionals in the job market is increasing every year.Microsoft offers... Read More

Cisco Certification: What To Expect On Exam Day

Cisco Certification: Taking Your First Certification ExamYou've studied hard; you've practiced your configurations; you've used your flash cards over and over again; and finally, the big day is here. Your first certification exam!For... Read More

How To Recognize The Telltale Signs Of Spyware

Spyware is the software that collects information about your online activities and preferences. The information is then sent to another computer with the intention of selling it to online advertisers.Spyware and adware can... Read More

Cisco Certification: A Survival Guide To The Cisco Cable Jungle

One of the most confusing parts of beginning your Cisco studies is keeping all the cable types separate in your mind, and then remembering what they're used for. This often occurs when a... Read More

GOOGLE AD