Best Practices for Writing Clean and Maintainable Code