How To Improve Your Code Readability

A reflection on code readability with practical examples

Jacob Toftgaard Rasmussen
Geek Culture

--

Screenshot of some of the code mentioned in this article — here to be eye catching

Introduction

Code readability is an extremely important code quality.

If you are not convinced then just think about this:

As a developer you spend much more time reading other people’s code than you do writing new code.

So naturally you would appreciate code that is easy to digest.

That’s why I think it is important to take a look at how code readability can be improved!

This article will be a bit different for me. It is not a straightforward guide, instead you are provided with 3 code examples to initiate a discussion on the matter of code readability.

Of course the aim of the article is still to teach you something and improve your coding skills!

What is good code readability?

Before you proceed, please take a moment to consider what good code readability is?

  • Few lines of code?
  • Short variable names?
  • Long variable names?
  • Many comments?
  • Strong naming?

--

--

Jacob Toftgaard Rasmussen
Geek Culture

I explore the wonderful world of software engineering. I write guides, informative articles and silly projects ;) — Keep learning!