eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 

Your Online Guide » Guide to Technology » IT Information Technology

How To Solve Large Programming Tasks
by Ada Denis, Ada
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!
Ada Denis has sinced written about articles on various topics from Credit Cards, Finances and Marketing. . Ada Denis's top article generates over 110000 views. to your Favourites.
EditorialToday Guide to Technology has 3 sub sections. Such as Technology, Increase Adsense Revenue and Information & Technology. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors