DEV Community

Discussion on: How would you define high quality code?

Collapse
 
juanfrank77 profile image
Juan F Gonzalez

High quality code is the one that has a low wtf/hour ratio

Collapse
 
cjbrooks12 profile image
Casey Brooks

😅wtf/min

Collapse
 
juanfrank77 profile image
Juan F Gonzalez

Exactly so, although I think that per minute would be a really big number hahaha.

Collapse
 
martinhaeusler profile image
Martin Häusler

This is the one and only true metric for good code quality. It never fails.

Collapse
 
juliatorrejon profile image
Julia Torrejón

An interesting point from Gridshore on this:

The most effective and certain method, however, is the code review. However, it is also very time consuming. It requires that one or more developers restrain from being (in the eyes of the customer) productive and give their attention to someone else’s code. Provided that the developer has a high standard of quality, it will definitely improve total quality of the code. Of course, there is the concept of pair programming, which could be seen as a form of continuous code reviewing. Highly effective, and can improve the skills of both developers.

These tools and processes can be very useful, but their overall efficiency depends on one thing: quality awareness within your development team. I’ll explain what I mean with “quality awareness”. It is the ability of developers to recognize code smells or failure to use design patterns at locations where they would typically be applied. This awareness it typically raises as developers gain more experience, but we’d typically like to help fate a little hand.