The Psychology of Quality and More |
CHAPTER 3 : General Principles
3.2 Think of the readerA fundamental guiding principle for all elements of style, is simply to think of the reader at all times. When you are writing 'normal' code just as much as when you are adding those clever tweaky bits, think first: "Will the reader easily understand what I mean and what the code is doing?". The immediacy of understanding is important, as any delay can affect the contents of short term memory, causing re-reading and possible error. Who will this reader be? He may be a clever programmer, able to understand what you mean (rather than what you say!), but he is more likely to be a junior team member, given the work that no-one else wants. He could also be an older programmer, consigned to the maintenance department, where he slogs away finding those last, really obscure bugs in your code. This may well be done under the pressure of a customer (and consequently senior management) breathing down his neck, complaining about corrupted data and unreliable systems. So think kindly of this poor chap, whoever he may be. He might even be you!
|
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 |