VOOZH about

URL: https://thenewstack.io/the-importance-of-writing-clean-code/

⇱ The Importance of Writing Clean Code - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-08-21 09:00:25
The Importance of Writing Clean Code
contributed,sponsor-gitlab,sponsored,sponsored-post-contributed,
Software Development / Tech Culture

The Importance of Writing Clean Code

Understandability is the concept that information should be presented in a way that makes it quick and easy for a reader to understand.
Aug 21st, 2020 9:00am by Liran Haimovitch
👁 Featued image for: The Importance of Writing Clean Code
GitLab sponsored this post.

GitLab sponsored this post.

Liran Haimovitch
Liran is Co-Founder and CTO of Rookout. He’s an award-winning cyber security practitioner and writer. As an advocate of modern software methodologies like agile, lean and DevOps, Liran’s passion is to understand how software actually works.

In the financial industry, understandability is the concept that information should be presented in a way that makes it quick and easy for a reader to understand. To be understandable, a financial system needs to be complete, concise, clear and organized.

The concept of understandability needs to be brought to the software world.

We’ve seen that the rise of microservices, cloud and distributed systems have all added to the complexity of modern systems. This means that our development teams have to work even harder to efficiently build applications that can easily be maintained by an ever-growing number of developers.

How We Write Code

Understandability starts with how we write our code. As developers, it’s crucial to invest time in refactoring, in order to make sure the code we are writing is easily digestible by our colleagues; as well as by the programmers who will end up debugging our code next month, next year, or even ten years from now. On top of that, change requests should only be approved if inline comments and external documentation are complete, concise, clear and organized.

  • Complete: Contains all the information that a developer would need in order to understand the expected behavior of a certain component.
  • Concise: Written in a way that is easily scanned for highlights, and is not too cumbersome or repetitive; in a way that contains the relevant information, and not too much else.
  • Clear: The format and medium are easy to scan. In the world of software development, this usually translates to inline comments and wiki pages.
  • Organized: The information is presented in a way that makes it easy for the reader to cross-reference information. A well-maintained wiki page, or an integration with an IntelliSense tool or a source control management tool, usually do the trick here.

Spending time on documentation and comments may appear to slow down the development of a certain feature. But as someone once said, if you have six hours to chop down a tree, it’s wise to spend the first four sharpening the axe. The upfront effort will make our applications much easier to debug and maintain in the future. Because when applications become too buggy, too hard to support, and when handoffs become too time-consuming and ineffective, then we end up spending entire sprints on improving documentation, unit testing, logging and more.

In the complex world of microservices and distributed systems, where developers spend 10 times more time reading code than they spend writing code, it’s more important than ever that the code we are writing is clean and easy to communicate to others.

After the Code is Deployed

Even if you’ve written clean and well-documented code, in the world of cloud and distributed systems it’s still hard to predict how that code will behave after it’s deployed. Think of clean code like a good cooking recipe: it clearly lays out what should happen and you will refer back to the recipe often during the preparation of the meal, but the recipe cannot possibly know the current temperature of your oven or how you’ve mixed the ingredients.

To make our applications truly understandable, we have to be able to observe our code in real-time. Tools such as Logging, Tracing, Monitoring, Error Tracing and Profiling tell us how the application is actually behaving when the code is running. This is just as important as writing clean code in the first place, because while reading the code in its static state is crucial for understanding the application, we also know that it can never provide a full representation of how the application actually behaves in production.

A great example of this is configurations. If you have code with a big switch-case that is based on a configuration, then simply reading the code will only tell you what is possible. To know what is actually happening, you have to understand the configurations that are being used at runtime.

And remember, at the end of the day the goal is to actually go beyond observing our systems and get to a place where we truly understand them. That means we need tools that integrate into our development environments, that retrieve data in the context of the written code, and that provide a deep and dynamic view of how the code behaves in the real world.

Most companies are not there yet. If you have Observability in place, you are already ahead of most. But after observing a problem, there’s still additional work necessary to actually drill in and figure out what’s going on within the application. Production debuggers are a great example of tools that are addressing the problem of Understandability, and I foresee this category becoming more and more discussed in the coming months.

Feature image via Pixabay.

At this time, The New Stack does not allow comments directly on this website. We invite all readers who wish to discuss a story to visit us on Twitter or Facebook. We also welcome your news tips and feedback via email: feedback@thenewstack.io.

GitLab is the most comprehensive, intelligent DevSecOps platform for software innovation. GitLab enables organizations to increase developer productivity, improve operational efficiency, reduce security and compliance risk, and accelerate digital transformation.
Learn More
The latest from GitLab
TRENDING STORIES
Liran is Co-Founder and CTO of Rookout. He’s an award-winning cyber security practitioner and writer. As an advocate of modern software methodologies like agile, lean and DevOps, Liran’s passion is to understand how software actually works.
Read more from Liran Haimovitch
GitLab sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.