Less is more when it comes to non-cakey makeup, so use less foundation than you think you need, then build on as needed. Use a great concealer like this one to cover up any discolorations, so you don't end up piling on your foundation.
Remember to blend, blend, blend. This is really important to avoid that cakey look. Start from the middle and work your way out.
If you have oily or combination skin, use a dusting of translucent powder to set your look, especially on your T-zone and under your eyes. A weightless, finely-milled option like this one is key!