For security reasons, it's important to remember the order of which you perform operations within the actions of your distrubuted application.
- Checks
- Effects
- Interactions
Performing operations in this order will prevent the vulnerability seen in the infamous DAO hack (Google it), where an attacker opened a series of withdrawals, and transfered funds before the contract could update it's balance data.