- Read code written by other developers. Preferably, code written by exceptional developers. There is tons of good quality code available online (eg. Linux, Google Web Toolkit, and many other open source projects).
- Have your code reviewed by peers. This ensures that your code can be easily understood by someone other than you. Your code reviewer is also very likely to point out bugs, and may point out how to simplify code using unfamiliar language constructs or API libraries. Finally, this reduces the likelihood of "shortcuts" and hacks in your code.
- Submit small CLs. When your CL is over 500 lines, it's difficult to review and it's difficult to defend it's correctness.
That's it for now. More in future posts.