2. Nearby Code

Follow the conventions of code around you. You want to blend in. You don't want us to come along in 6 months and see three different people's style, block-by-block.

However, that doesn't mean you shouldn't clean up old/ugly code using wrong APIs or disobeying whitespace rules: Be a good camper.