Rules to good looking code ..
- Functions and methods should fit on a single page (give or take).
- Use the assert command().
- Function, method and variable names should be meaningful.
- Use comments.
- Every method and function should have a comment describing it's
function.
- Every method and function should have a comment describing any
non-obvious pre and post conditions.
- Every method and function should have a comment describing any
errors it might return.
- Don't cut and paste code, instead make a function and call it.