Software development is a tricky job; best practices help. This lecture explains why, and suggests some ingredients people at CERN have found useful over the last decades. Together they can reduce bugs, improve code usability and maintenance; in short: they simply help you write better code.