A lot of it is diet too. Not eating or drinking sugary things gives you much more room for error. Of course you still need to brush and floss, but in my experience sugar + rigorous cleaning can still leave you with cavities whereas no sugar + lax cleaning you're probably fine. No sugar + rigorous cleaning and you might never need a dentist again. It took me way too long to understand this.