> ## Content Index
> Fetch the complete content index at: https://nolongerset.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Code is WORM: Act Accordingly
- URL: https://nolongerset.com/code-is-worm/
- Published: 2022-02-01T04:08:31.000Z
- Updated: 2026-05-08T12:59:50.000Z
- Description: Write Once. Read Many. The cost of avoiding shortcuts when writing code is far exceeded by the benefits you'll get when reading it.
- Author: Mike Wolfe
- Tags: Commentary, #Import 2026-05-20 02:59

Write Once. Read Many.

Physical memory devices are designed to optimize for their intended usage. You wouldn't want to use magnetic tape to store and retrieve values in random access memory. Likewise, you wouldn't want to rely on volatile memory that requires a constant supply of power to store financial records for the next several decades.

The same concept applies with programming. 

You **write** code one time, but over the lifetime of a (successful) project, you will **read** it many times.

That's why it's better to optimize your code **for reading**, not **for writing**.

## Practical Tips

The following tips will help with that:

- [Don't Write Clever Code](https://nolongerset.com/dont-write-clever-code/)
- [Avoid ](https://nolongerset.com/how-to-construct-a-bit-mask-in-vba/#magic-numbers-the-worst-approach)[Magic Numbers](https://nolongerset.com/how-to-construct-a-bit-mask-in-vba/#magic-numbers-the-worst-approach)
- [Use Clear Variable Names](https://blog.codinghorror.com/i-shall-call-it-somethingmanager/)
- [Use Vertical White Space to Group Related Statements](https://stackoverflow.com/a/1772094/154439)
- [Use Consistent Indenting](https://www.mztools.com/v8/onlinehelp/MZTools8Help.html?indent%5Flines.htm)
- Keep Routines Small Enough to Fit on a Single Screen Without Scrolling
- [Make Wrong Code Look Wrong](https://www.joelonsoftware.com/2005/05/11/making-wrong-code-look-wrong/)

*Image by [Катерина Кучеренко](https://pixabay.com/users/katerinakucherenko-19907709/?utm%5Fsource=link-attribution&utm%5Fmedium=referral&utm%5Fcampaign=image&utm%5Fcontent=5953965) from [Pixabay](https://pixabay.com/?utm%5Fsource=link-attribution&utm%5Fmedium=referral&utm%5Fcampaign=image&utm%5Fcontent=5953965)*