Beginning Programming For Dummies
Chapter One
How to Write a Program
In This Chapter
* Designing your program
* Understanding the technical details
* Choosing a programming language
* Defining how the program should work
* Knowing the life cycle of a typical program
Although you can sit down at your computer and start writing a program
right now without any planning whatsoever, the result would likely to
prove as messy as trying to bake a cake by throwing all the ingredients
together without following a recipe.
You can write a simple program that displays your cat's name on-screen without
much planning, but for anything more complex, you want to take time to
design your program on paper before you even touch a computer. After you're
sure that you know what you want your program to do and how you want it
to look on-screen, you can worry about writing a program that actually
accomplishes this task.
Before You Write Your Program
If you design your program before writing it, you don't waste time writing a
program that doesn't work or that solves the wrong problem and isn't worth
trying to salvage afterward. By planning ahead of time, you incr ... read full excerpt from Beginning Programming For Dummies, 3rd Edition ebook