Add real-world code examples demonstrating principles of effective coding, highlighting common mistakes and their corrections.