Programming Considerations

Good application development means writing readable code. In fact, most developers consider writing readable code a professional responsibility. One of the ways to best improve the readability of your code is with white space.

White Space

The term white space refers to how text displays in contrast to the surrounding white space. For example, in reading this book, the text displays in a readable manner due to the use of indents, spaces, and paragraphs.

Using white space in programming provides the same results as it does for this book: It provides easier readability. Consider the following two WML code samples.

The first example does not use white space, but the second example does. Which would you, as a developer, ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.