Writing better code is important for readability, maintainability, simplicity, efficiency, and clarity. Tips for better code include commenting and documenting code according to standards, consistent indentation, avoiding obvious comments, grouping code logically, using consistent naming schemes, and limiting deep nesting. Other tips are limiting line length, well organizing files and folders, using revision control and commit messages, automating repetitive tasks, refactoring code periodically, allowing time for learning, and reading open source code.