Skip to main content
Logo image

Section 11.3 Program Style

Style, which is how you format your source code, is an important consideration when writing computer programs. In the following Codecast, we will explore ways to craft easy-to-read code and why style is so important. Considerations such as indentation, where to place line breaks, grouping pieces of code together, choice of variable names, where to place comments are all part of coding style.

If you cannot see this codecast, please click here.

Investigate 11.1.

Time for some reflection:
Do you think your current style when coding is clean and easy-to-read, such as the example shown in the Codecast above, or do you think there’s some room for improvement?