The Psychology of Quality and More |
CHAPTER 6 : Code Layout
<-- Prev chapter | Next chapter -->
The most visible aspect of coding style is the way in which the code is laid out. It is a common subject of significant controversy amongst programmers, where individual layout styles are strongly defended. The difference of opinion is often due to the pattern-recognition characteristics of the mind, where a style even slightly different from your own somehow looks 'wrong' (see 2.1). This level of individualism is often tolerated, as it does not appear to affect the actual code which is written. However, it can affect the readability of the code for a future reader, especially if he is trying to maintain a program written by several people, each using a different style. This chapter considers the basic layout of code statements, focusing on the positioning of the fundamental elements of the language. It also strays into the realms of usage where changes in text do not change the basic meaning of the code (for example, use of parentheses in expressions).
|
Site Menu |
Quality: | Quality Toolbook | Tools of the Trade | Improvement Encyclopedia | Quality Articles | Being Creative | Being Persuasive | |
And: | C Style (Book) | Stories | Articles | Bookstore | My Photos | About | Contact | |
Settings: | Computer layout | Mobile layout | Small font | Medium font | Large font | Translate | |
You can buy books here |
And the big |