November 27, 2008

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!

Featured Products

  • Product Description

    The Motorola Talk about T9550XLRCAMO offers the quality customers expect when communicating outdoors. This radio will allow you to communicate up to 25 miles. Our distinctive Real Tree AP HD pattern will complement any hunter's outfit.

    ---

    Motorola offers the perfect gift for the adventurous dad that not only enables him to do the outdoor activities he enjoys, but helps keep him in touch with the people he loves at the same time. Motorola Talkabout T9500XLR two-way radios, loaded with an array of features, come with extra benefits.The affordable T9500XLR two-way radios come with a variety of features to help keep dad in touch and informed during expeditions and other outdoor activities. Lightweight and robust with rugged side grips, the compact T9500XLR radios are designed to support a range of up to 25 miles (under optimum conditions), offering dependable communication in remote areas not covered by cell phones. The radios are also equipped with Motorola's new PTT power boost feature. When activated, this feature helps extend the transmission range by increasing the transmitter power output - while helping to save battery life when no power boost is necessary.While out in the field or simply at home, dad can receive NOAA weather alerts to warn of approaching severe weather. The Motorola T9500XLR radios feature 7 National Oceanic and Atmospheric Administration (NOAA)/Environment Canada and 4 marine weather channels to receive continuous broadcasts of local and regional updates.When in quiet environments, dad will appreciate the VibraCall feature, which silently alerts him to incoming transmissions by vibrating. Used in conjunction with the PTT earbuds, dad can communicate in the outdoors without disturbing wildlife.

    Product Features

    Belt Clip For 2-Way Radios
    22 Channels
    121 Privacy Codes For 2662 Combinations
    27 Hours
    3 Aa Alkaline Or 9-Hour Nimh Estimated Talk Time

    Technical Details

    Brand Name: Motorola
    Model: T9550RCAMO
    Item Package Quantity: 1
    radio_channels: 22-channel Unknown modifier
    Talking Range Maximum: 132000 feet
    call_alerts: 10 Unknown modifier
    voice_operated_transmission: Internal (iVOX) Unknown modifier
    Display: LCD display
    Battery Average Life: 9 Hours

    USD 68.99

    DetailsBuy

Filed under Tech by Lauren Thompson

Comment

Leave a Comment