100 likes | 192 Views
How to create a decent program. by. Getting Started. Get all the facts Get all the information you can; especially, mathematical formulas you need. Get test data and the output that you should get Communication is KEY Make sure you have ample understanding with your client
E N D
Getting Started • Get all the facts • Get all the information you can; especially, mathematical formulas you need. • Get test data and the output that you should get • Communication is KEY • Make sure you have ample understanding with your client • If either of you have questions, ASK THEM!
Analysis • Determine the problem to be solved • Using the information on the last step, you should be able to create an algorithm. • Algorithm – “A step-by-step problem-solving procedure”. • Try and also chose the best language to solve the problem. • Try and make it as simple as possible.
Logic Test • Once you have your algorithm created, it’s time to test it. • Take your test data and if possible try and solve the problem on paper before continuing to the next step • Be as sure as you can that your algorithm’s logic is valid • Not doing so WILL be a very costly mistake!!!!
Pre-Coding • This is the most important step • Get canned coffees, Pepsi Max, Tab, and especially Mountain Dew! • PLAN AHEAD FOR THE DEADLINE!!!! • If you need to panic, then make time for it. • Drink lots of caffeine before the next step
Coding • It’s time to code your program. • If you have PLANNED properly, you should already have most of the work done. • Simply translate your written algorithm into usable maintainable code. • Remember to comment!
Post – Coding or Testing • TEST YOUR CODE! • RETEST YOUR CODE! • If you find ANY syntax or logic errors, plan to fix them. For logic errors make sure you have adequate time to allow for proper debugging.
Debugging • Syntax errors will usually be very easy to fix; however, do not under estimate them! • Logic errors will be harder to fix! • If you find a lot of logic errors, you need to check to see if your original logic was valid. • When you feel confidant that your code works, and can produce correct output, you’re done.
Documentation • You should already have your program well commented • If not, DO IT NOW! • Prepare good internal/external documentation • Try and write the documentation for your target audience (eg their technical skill level)
Hit the Bar! • Once you’ve completed all the previous steps, it’s time to relax • Order a Jack and Coke and relax • If you get a call at 3 AM, about a bug in your program, well…start the process over again!