How to solve large programming tasks

Do you have problems breaking down large programming tasks into something you can work with? A few simple tricks will help you get going.

1. Read over your programming task. You will want to be familiar with what you are being asked to do. In particular look for things that are required as input or output from your code.

2. In the compiler/editor of your choice write out an outline of what your programming task is to accomplish using comment lines (to avoid syntax errors). I find that bullet points are all I need here. Ex: Open text file, read setting on line 3, etc.

3. Now re-read your outline and compare it to the programming task you have been asked to do. Does it meet the requirements? Have you left anything out? If you are satisfied with the outline proceed to the next step.

4. Look at your outline. Are the items in your outline still pretty vague or general ( Open file could mean several things) Take this time to break down the items in your outline, so Open file would become: Select existing text file, open text file for reading. The goal here is to have one line in your outline for each action the code should do.

5. Take a look at the outline to see if there are multiple lines doing the same thing. These are good candidates for functions in object-oriented languages.

6. Finally, for each line of comment in your outline, write the code underneath it to actually do what your comment says. This way you can tackle any problem and have the comments to tell you what it’s doing ahead of time!

Gadgets Reviews Online Technologies

Article Source: How to solve large programming tasks

Tags: , , , , , ,

Comments are closed.

Tag Cloud

Adult (29)
Biking (25)
Book Reviews (5)
Broadband Internet (15)
Cars (14)
Celebrity (219)
Clothing (9)
Coffee (5)
Commentary (5)
Communication (5)
Computers (1283)
Computers Certification (5)
Consumer Electronics (5)
Cooking (5)
Current Event (5)
Data Recovery (25)
Digital Products (5)
Education (26)
Entertainment (1677)
Extreme (25)
Fashion (5)
Fishing (25)
Food and Beverage (5)
Gambling (28)
Games (949)
General (6)
Golf (30)
Gourmet (5)
GPS (15)
Hardware (25)
History (5)
Humanities (33)
Hunting (24)
Jewelry (30)
Martial Arts (25)
Mobile Phone (15)
Movie Reviews (33)
Movies (49)
Music (61)
Music Reviews (24)
Networks (20)
Politics (5)
Recipe (5)
Running (25)
Satellite Radio (15)
Satellite TV (15)
Science (25)
Shoes (5)
Software (38)
Tennis (25)
Video Conferencing (15)
VOIP (15)
Wine (5)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.