Maintainable Programming

Maintainable code is easy to read, modify and fix. You will learn habits that help, such as meaningful names, comments and indentation, and why hard-coded values should be avoided.

Key terms

Maintainable code
Code that is easy to read, modify and fix.
Meaningful identifier
A variable name that describes what it stores, such as totalScore.
Comment
A note in the code that explains what it does. It is ignored when the program runs.
Indentation
Spacing that shows the structure of the code and improves readability.
Hard-coded value
A fixed value typed directly into code. It is better to use a variable or constant.

Part of Programming.