Just to add for disc brakes - I think it is also relatively important to ensure your brakes are properly tuned in and cables tensioned proper.
saying this as my new bike started losing braking power and it was only after a 30day tune up did i feel the amazing power of disc braking.
cheers.