Skip to content

Instantly share code, notes, and snippets.

The Crux of Best Coding Practices

There exists many well-known coding practices established to improve the overall quality of code such as test-driven development, frequent commenting and documentation, and structure clean architecture and design. It would be ideal for all code and programs to implement best practices but it doesn't happen, not even in the professional world; why is that? Why can't the industry leaders always implement the ideals they preach? Why do a lot of programs have poor documentation and nearly no unit tests? I believe there's no true answers to these questions but I do have a few points that may explain the lack of best coding practices.

Passion

I believe the reason most junior developers such as myself and even many senior developers fail to implement best coding practices is because we program out of passion which tends to lack structure. We tend to build projects from very abstract wireframes and dive right into coding without establishing tests or class structures. We all k