Pump your tires up before each ride.
After a flat analyze until you know exactly what caused the flat. Is the hole on the rim side or the tread side? Where is the hole relative to the valve stem (index the tires as cpach said in post #6). There is a reason for every flat. Most flats could have been avoided.