|
|
|
|
|
|
||
|
|
||
|
|
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

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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: 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
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
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
There are plenty of articles out there about how to prepare for the CCNA exam. However, there are also things you can do to increase your chances of success on exam day during... Read More
Lost & Found for the 21st CenturyIn today's hectic world more and more people are turning to those handy gadgets and mobile products that can be taken with them anywhere they go. The... Read More
Having two operating systems is not as difficult as many of us consider. It just requires little hard work and some good equipment. By equipments I mean good hard disk space and good... Read More
Tip #1. Do a Google search. Don't be to general in your search, type in exactly what your looking for. Try putting the words you type in quotes to narrow the search.Tip #2.... Read More
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
File permissions are one of the strengths that the Unix world has had over it's Windows contemporaries. Permissions are a means to control access to information on a computer, on a file by... Read More
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
Not sure what Windows registry is or how it works? Don't worry - there are tools that can take care of all registry related tasks for you, even if you are a seventy... Read More
The Internet can be a dangerous place.While you're enjoying the convenience of online shopping, Internet banking and subscription websites, nasty people lurk around every corner.Hackers, fraudsters, identity thieves and many others would love... Read More
A friend told me: "My computer startup seems to be taking a long time. And when the hard disk finally stops churning, everything just seems slower than when it was new. Can you... Read More
Introduction In this article I will clearly spell out the most effective steps you can take in order to increase the performance of your computer and enhance your computing experience.More Memory (RAM) If... Read More
If you have a computer for home use or for your business and don't take comprehensive backup for full protection then you are in the danger-zone. Maybe you do not take any backup... Read More
Maintaining your computer is extremely important ? especially if you are an Internet Marketer. As you know, without your computer, your business can come to a screeching halt. There are 4 important steps... Read More
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
The United States Of America citizen feels that games is a part of their life while developed countries such as the United Kingdom and Japan would feels that Games is high prospects to... Read More
All over the world, people carry with them walkmans and other music devices so that they can play their favorite music as they move around from place to place. The latest thing in... Read More
Microsoft Business Solutions is on the way to popularize it's ERP systems implementation. Right now such products as Microsoft CRM and Small Business Manager (cheap version of Microsoft Great Plains, based on the... Read More
Millions have enjoyed recorded music since 1877 when Thomas Edison invented the phonograph. Then came radio, records, tapes and CD's. But today's digital audio players are a quantum leap forward in music technology.... Read More
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
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
When you think of a help desk, what do you picture? Do you see a large desk with an elderly woman sitting behind it pencil behind the ear? Maybe it has a computer... Read More
iPod users start to get the picture and it's turning out to be colorful fun!!The latest generation of hi tech gadget users are watching the different media they use start to converge as... Read More
Time is money. And when you constantly have to divide your time between your mouse and your keyboard, your workflow rate really slows down.That's particularly true when you're working on a laptop, where... Read More
It seems like fast never quite rates fast enough.No matter how quickly something moves, especially on the Internet, it could always move faster.Email, web surfing, downloading files (legally of course), none of them... Read More
There are many sources of heat that can raise the temperature in your PC. No, I'm not talking about the Tabasco sauce you dripped over your keyboard when you ate that bowl of... Read More
A computer needs a certain amount of information to operate; for example, the date and time, the amount of memory installed, the number of drives and their configuration, and so on. In the... Read More
I have always been interested in computers, but in the beginning, I would not venture any further than to the software end of learning. However, learning only the software side, and knowing nothing... Read More
Projectors have come a long way in the past few decades. The desktop fossils that were once used to show home movies or classroom filmstrips are a thing of the past. With today's... Read More
Viruses, software failures, power failures, human errors, hard drive failures are only a few examples of what could destroy the data on a hard drive, including all documents, pictures, emails and other files!Most... Read More
| GOOGLE AD |
Personal Technology Personal Technology |