Best practices for writing clean and maintainable code