Simple Development Tips to remember
Some important and yet simple tips that can get lost over time: (In no particular order)
- Ensure every code path closes your database connection
- Log all errors and review your error logs on a periodic basis
- Comment all code – It’s easier to remove excessive comments than to try and understand someone else’s code
- Write out the process in SUDO code before you start to ensure you’ve covered off all the necessary functionality
- Have another developer review your code – in 5 minutes another developer can sanity check your code
- Document complicated code in a WIKI or some other type of developer resource
- Break down complex problems into smaller issues that are easier to digest – if necessary repeat
- Always assume the user will do unexpected things
- For larger development ensure database design and specifications are tackled first
- Never be embarrassed to ask other developers for help, all to often developers try to solve a problem that one of their colleagues have already successfully resolved
- Google is your friend, use it
- And most important, get up and go for a walk, stretch your legs and get the blood flowing when you’re trying to solve a difficult problem or when you’ve just been working for hours on end
If you have some great tips feel free to post a comment below.
