Mallard couple
On the way back to home I took a photo of a mallard couple, Anas platyrhynchos.
On the way back to home I took a photo of a mallard couple, Anas platyrhynchos.
Every piece of code we write is unique, or pretty much. However, there are things that are common in a lot of code, even across various codebases, and even across various languages: the physical shape that code has.
Beyond the mere visual aspect of code, the shape of a piece of code can carry information by itself. Being able to decipher this information allows to glean indications about the code at a glance, even before starting to read it. This information is valuable in itself, and afterwards during the reading of the code itself.
Source: The Shapes of Code, an article by Jonathan Boccara.