Personal Technology Information |
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 MORE RESOURCES: Unable to open RSS Feed $XMLfilename with error HTTP ERROR: 403, exiting |
RELATED ARTICLES
DVD The Ultimate Consumer Digital Media Digital Video Disc or as it is sometimes referred to Digital Versatile Disc (DVD) has for the last several years been Hollywood's primary video delivery method and with good cause. This inexpensive, compact media delivers excellent video and audio quality. Computer Performance Tips IntroductionIn 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 your computer has less then 256 MB of memory you may want to consider adding more. Image Conversion In Computers JPEG, GIFF/JIFF, BMP, and TIFF are the most commonly used formats for storing still image files such as photographs, graphics, and drawings.JPEG stands for Joint Photographic Experts Group and is a standard for image compression. Improve PC Performance - 6 Tips You Must Know Are you frustrated with your PC?Is it feeling sluggish or crawling at a snail's pace?Are programs running slower than they used to?Are you just plain fed up with frequent slowdowns, freezes or crashes?Then it's time to stop what you're doing and optimize your system to improve PC performance!Follow these 6 simple sure-fire tips to help improve PC performance and you'll be surprised by the results! Each comes with an indication of how often you should do it.Improve PC Performance Tip #1:CLEAN UP YOUR WINDOWS REGISTRY (Frequency = Daily)This is an essential, but often overlooked, task to improve PC performance. Digital Cameras Ratings Abolish Camera Comparison Guesswork Digital cameras ratings are great tools for deciding which camera best fits your needs and budget. Digital camera reviews are often just the reviewer's opinion. Quick System Restore with ASR Backups ASR (Automated System Recovery) is a feature available on the Windows XP Pro and Windows Server 2003 operating systems for quick and efficient system backup and restore.Typically, the restore process involves reinstalling the operating system and configuring all physical storage to their original settings before restoring data and settings. Mail-merging: The Principles About mail-mergingMail-merging is the process of merging variable data and fixedtext.Using mail-merging, you can create individualised letters,envelopes, labels and other documents without having tolaboriously create each individual one. Dynamite Comes in Small Packages - Tiny Personal Audio MP3 Players Pack Powerful Music Enjoyment MP3 players are Hot! Playing music has come a long way since the transistor radio, portable tape and CD player days. Most players are no larger than a deck of cards. Registry Tools Demystified 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 six year old who never used computer before. These are the tools that optimize your registry and make your PC run faster. 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, you don't have to buy a new PC. 5 Ways to Speed Up Your PC No matter how fast your processor and regardless of howmuch ram you carry, there comes a time when you realizeyour computer just doesn't run as fast as it did when youbought it.Windows loads slower, programs take longer to launch,and, in general, your computer drags like it just cameoff a 2-night drinking binge. The Best MP3 Players Under $100 You don't have to fork out $250 for a super-diggy-whizbang mp3 player, do you? There are cheap mp3 players to be had, with a host of features perfectly suitable for everyday use. Here is a small sampling of some of the highest-rated cheap mp3 players. 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 on virtual memory". Apache, MySQL & PHP for Windows Apache, MysQL and PHP for Windows could be a nice nice thing to have on your Windows workstation. You could try and experiment with all kinds of nice PHP and MySQL based applications right on your Windows desktop running Apache, instead of having to access a full-featured server. Computer Consulting 101 PC Troubleshooting Advice While most small businesses really do need to find a good local computer consulting business to take care of their computer problems, there are some computer problems that are simple enough for even a technophobe to handle. At Computer Consulting 101, we've found there's one very simple piece of advice that often doesn't get communicated to non-technical small business end users: When in doubt, reboot first. Web Standards HTTP ProtocolThe web is run on port 80. You are probably wondering what "port 80" is, right (whether you actually are or not is irrelevant)? Well, the answer is easy (not really). Make Windows XP Run Faster! 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. How To Become A True CCNA I've worked my way from the CCNA to the CCIE, and along the way I've conducted job interviews and casual conversations with dozens of CCNAs and CCNA candidates. Believe me, people who "sneak by" the CCNA exam by braindumps, memorization, and never touching a router or switch are QUICKLY found out in job interviews and on the job. What Has A Portable MP3 Player Have To Do With Your Business Plenty! When we made the decision to be our own bosses, we gave up the luxury of having our employers sending us to us seminars, workshops or conferences that help improve our skills and gain knowledge related to our work. All this became our initiative. What Are You Looking For In A Cheap MP3 Player? Are you stymied by the vast offerings in cheap mp3 players? Don't know which features best suit your needs? Here are some suggestions based upon product reviews by mp3 player owners.The first thing you must consider is how you plan to use your mp3 player. |
home | site map | contact us |