Want to become a better programmer? Here i find a good list of mistakes usually done by developers during small or big web development projects.
Let's have a look:
Let's have a look:
- Is error reporting on and display errors on in development and off in production?
- Do not suppress errors in your code
- Implement a logging framework to avoid future code errors
- Use a caching strategy to speed up code compilation.
- Use best practices for programming design patterns.
- Always test your code and repeat testing each time whenever a change occurs in code base.
- Review and audit your team members code before and after merging code to the code base.
- Practice defensive programming.
- Learn and use OOPs principles to make code flexible.
- Have a solid workflow and processes for developing and deploying code.
- Differentiate between read/write database queries.
- Use a solid database library which can connect to multiple databases.
- Test SQL queries for exploits.
- Learn and use indexes on database tables
- Use database transactions.
- Secure sensitive data in the database.
- Use different coding environments: development, staging, production.
- Implement a backup and monitoring strategy.