White Space
Developer Removes All Whitespace to 'Save Bytes'; Code Review Takes 6 Hours

White space is not wasted space. It's breathing room for your code. Just as paragraphs make text readable, strategic blank lines and spaces make code scannable.
White Space Rules
Spaces around operators
x = y + z;x=y+z;Space after commas
Method(a, b, c)Method(a,b,c)Blank lines between methods
Separate methods with exactly one blank line. No more, no less.
No trailing whitespace
Lines should not end with spaces or tabs. Configure your editor to remove them.
Quick Check
What is the purpose of blank lines between methods in a class?
Course Summary
- File Organization: One class per file, named to match the class.
- Indentation: Use tabs consistently, one level per block.
- Naming: PascalCase for public, camelCase for private, descriptive always.
- Braces: Always use them, even for single statements.
- White Space: Use it strategically to improve readability.
Download Cheat Sheet
File organization, naming conventions, indentation rules, and statement guidelines