Reklamimi ne Parajsen ShqiptareModaParajsa Shqiptare ChatHoroskopi DitorShendetiAdvanced Teaching of Reliable Education - Worldwide EncyclopediaBioritmiKultureMuzikeSport
Parajsa.com Radio Parajsa - Zeri yne per ju Live!

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:

Personal Tech: Army to use video games for training
Salt Lake Tribune, United States - Dec 1, 2008
AP New York » The US Army plans to invest $50 million over five years to develop video games for use in training soldiers for combat, according to a report ...


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


Personal Tech: Military launches TroopTube
Salt Lake Tribune, United States - Nov 17, 2008
AP SEATTLE » The US military, with help from Seattle startup Delve Networks, has launched a video-sharing Web site for troops, their families and supporters ...


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


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


Personal Tech: Digital frame shows pictures from phones
Salt Lake Tribune, United States - Nov 10, 2008
By Peter Svensson Ap Technology Writer The Cameo digital picture frame can receive picture messages over the cellular network. ...


Personal Tech: Black Friday is a bright day for gadget lovers
Salt Lake Tribune, United States - Nov 17, 2008
The day after Thanksgiving, also known as "Black Friday," is one of the biggest shopping days of the year because that's when stores introduce hot deals for ...


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


Personal Tech briefs: Bluetooth love is in the ear
Salt Lake Tribune, United States - Nov 10, 2008
BlueAnt V1: Rectangular and silver, The V1 talks to you using voice-control features. It costs about $80 at several online retailers. ...


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

Parajsa Shqiptare