This chapter discusses best practices for coding, including avoiding programming by coincidence, estimating algorithm speeds using Big O notation, refactoring code when needed to improve design, writing code that is easy to test with unit tests, and avoiding using code you don't understand from "wizards". It provides tips such as programming deliberately with a plan, testing assumptions, refactoring early and often, designing code to be testable, and understanding all code used. The chapter contains five sections on these topics.