I would just say:
1. Use built in data structures whenever possible
2. First fix your process flow, then spend more time to fix your code. Doing steps A C E F B and D might be better than A B C D E F.
3. Write direct queries with db when all else fails.