“Any fool can write code that a
computer can understand. Good
programmers write code that humans can
understand.” -- Martin Fowler, "Refactoring: Improving the Design of Existing Code"
But since you've already reached that conclusion on your own, suffice to say that this is a huge topic. It's not something you'll be able to get a single answer on. Making your code maintainable is not limited to coding style, but also involves your overall design as well as your construction process. Here's some tags on this site where pretty much all the questions and answers will impinge on this topic:
- coding-style
- best-practices
- refactoring