2024-08-13 00:50:47 +00:00
|
|
|
---
|
|
|
|
title: Always write your code as if...
|
|
|
|
date: 2024-08-12
|
|
|
|
permalink: daily/2024/08/12/always-write-your-code-as-if
|
|
|
|
tags:
|
2024-09-08 22:09:54 +00:00
|
|
|
- software-development
|
2024-08-13 00:50:47 +00:00
|
|
|
cta: d7eol
|
|
|
|
snippet: |
|
2024-09-08 22:09:54 +00:00
|
|
|
Always write your code as if...
|
2024-08-13 00:50:47 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
There's a famous programming quote (and variations of it):
|
|
|
|
|
|
|
|
> Always code as if the (person) who ends up maintaining your code will be a
|
|
|
|
violent psychopath who knows where you live. Code for readability.
|
|
|
|
|
|
|
|
I believe [it comes from this Google thread](https://groups.google.com/g/comp.lang.c++/c/rYCO5yn4lXw/m/oITtSkZOtoUJ).
|
|
|
|
|
|
|
|
I'm currently working on some Drupal 7 code I first committed to in May 2014.
|
|
|
|
|
|
|
|
That person could also be you!
|