I think that whenever writing code you should keep in the back of your mind, how easy will it be for another developer to understand what it is doing.
Generally I'd advise the following.
- Space the code out into logical chunks
- Give variables meaningful names
- Make sure your methods only have a single purpose that is clear by its name
- Carefully comment the parts of code where the reason for it isn't explicitly obvious
Basically, if it looks like a wall of text and you find it hard undestand what its doing then its going to be a lot worse for the person who didn't write it.