Thoughts
Kelley linked the following post which extols "compressing" your code while writing it. It's very similar to Graham's argument that Lisp
allows for less repetition and more compression than macro-less languages. (From On Lisp, likely, but Graham's writing style makes it very difficult to find the section that you're looking for.)
=> https://caseymuratori.com/blog_0015
At a less technical and more colloquial level, this is summed up the idea of "DRY"—don't repeat code. Although it's not immediately obvious (because I didn't do a good job describing it), this is the mentality that my "semantic programming", is an alternative to, summed up by the Pizza example.
=> https://thoughts.learnerpages.com/?show=d0d9c6b7-dd7a-495f-aa82-6c6ab83f437c
Compressing code *for the sake of compressing it* is always a bad move because it makes future edits more difficult. You should only compress code when there is a semantic rule (with a rule of thumb—that a non-programmer could understand) for why the repeated operation is, in reality the same operation in two+ different places.