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

Good Style

If this chapter is ambiguous, this section is downright subjective. Good style means programming in a way that’s easy to maintain. Your code should be easy enough for anyone to understand. Not because others need to see what you’ve programmed (which could happen), but so that you can quickly interpret what you’ve produced when you need to make adjustments or fix bugs. It’s easy to get carried away trying to build something and ignore good housekeeping practices. Before you know it, your code resembles a plate of spaghetti (hence the term spaghetti code). In fact, haste makes waste, so you should always try to follow the rules of good style.

Even though the value of good style is easy to understand, the concept itself is subjective. Here are a few characteristics of good style; call them rules, if you will.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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