WTF per Minute – An Actual Measurement for Code Quality

compiler-guy1 pts0 comments

MediumWTF Per Minute — An Actual Measurement for Code Quality | by Muhammad Rahmatullah 🇮🇩 | MediumSitemapOpen in appSign up<br>Sign in

Medium Logo

Get app<br>Write

Search

Sign up<br>Sign in

WTF Per Minute — An Actual Measurement for Code Quality

Muhammad Rahmatullah 🇮🇩

2 min read·<br>Jun 9, 2021

Listen

Share

Have you ever heard the joke about a way to measure code quality is using WTF/minutes (WTFPM), which stands for “Works that Frustrate” that the developer can read per minute.<br>It’s kind of a common thing that exists in many places. And I’m dead certain it happens in our workplaces as well.<br>Now, the real question is how to cope with this and reduce the number of WTF/minutes that the developer reads, whilst we have no capability to make improvements to our codebase.<br>There are several activities we can do, including:<br>1. Let the others review our codes. Make a code review every time we finish working on something, this can be done through the pull request then ask our colleagues to provide feedback and comments to our code. But if you’re the kind of person who likes a real-time discussion, then do pair programming. Two heads are better than one, right. With this kind of technique we can develop faster and higher quality code.<br>2. Standardize all code and stick with it. Don’t reinvent the wheel and Don’t let the standardization of every project be made based on the demand of every developer who is responsible for the project, because the submission that occurs will create a high learning curve. Especially if it turns out that the standardization made by the developer is not optimal, then it will be a fatal backfire for us<br>3. Practice, Learn, Practice. Yes, to make good code, we are required to learn from previous mistakes, but this is inadequate. We have to learn new things, learn a lot with more skilled seniors, and put this into practice. As an analogy, even though we know the theory of painting, we may not be able to paint.

JavaScript

Technology

Programming

Clean Code

Code

Written by Muhammad Rahmatullah 🇮🇩<br>194 followers<br>·75 following

An Expert Full-stack Software Engineer with years of experience, adept at developing, scaling software solutions. https://www.linkedin.com/in/rahmatullah5/

Help

Status

About

Careers

Press

Blog

Store

Privacy

Rules

Terms

Text to speech

code quality minute developer learn actual

Related Articles