• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Getting Started with ActionS... > The Three R’s: Readability, Reusabil...

The Three R’s: Readability, Reusability, and Reachability

Each Flash programmer tends to develop his or her own style of writing, organizing, and commenting programs. Companies that employ Flash programmers also have different standards. However, whatever your individual style, you probably want to write code that is readable, reachable, and perhaps reusable. The longer and more complex your programs are, the more important it is to think about these goals before and as you write.

Readability: Writing Readable Code

When you go back to change, enhance, or debug a program, it’s nice to have code that you can decipher without too much strain on your eyes or brain. Readability is partly just a matter of spacing, indentation, and capitalization. Comments can also add a lot to readability, as can the use of meaningful names for functions, variables, arrays, and objects. Finally, the best (and hardest) way of making code more readable is by solving coding problems in more elegant, simpler ways.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint