oliverdavies.uk/source/_daily_emails/2023-09-10.md

20 lines
673 B
Markdown
Raw Normal View History

2024-01-03 20:00:00 +00:00
---
title: >
2024-09-08 22:09:54 +00:00
Code is read more than it's written
2024-01-03 20:00:00 +00:00
pubDate: 2023-09-10
permalink: >-
2024-09-08 22:09:54 +00:00
archive/2023/09/10/code-is-read-more-than-it-s-written
2024-01-03 20:00:00 +00:00
tags:
2024-09-08 22:09:54 +00:00
- software-development
2024-01-03 20:00:00 +00:00
---
A lot of code is written once by one person and not changed again.
But it's read by multiple people at multiple times.
If the code is read more than it's written, we should be optimising it for readability so it's easier for people to understand.
The application doesn't care whether you wrote the code the "clever" way or the "boring" way, but people will appreciate the more readable version.
If I need to review or work on the code in the future, I want to read and understand it easily.