2 ms·
One view of things is that code is more Poetry than a lot of people give it credit for. The formatting of code and usage of whitespace is as much aesthetic / cr
by WorldMaker 7y ago
One view of things is that code is more Poetry than a lot of people give it credit for. The formatting of code and usage of whitespace is as much aesthetic / creative space as it is technical requirement (depending on the language of course; whitespace is more syntactically necessary in Python than say C, obviously).
I am sure there are classical poets that would happily engage in the tabs versus spaces debate, and even some of the other formatting debates in the code world. Concepts like rhythm and structure from the poetry world directly apply to code formatting, because they affect how we as people read the code. Programmers just don't often think to use the same terms for such isomorphic concepts. Yet it also speaks to how so many code formatting arguments get to be so heated: it can be deeply, personal, subjective, aesthetic.
(When we are squashing personal freedom/creativity in our "mandated" formats or automated formatters should we sometimes wonder that maybe we are losing our chance at finding the programming equivalents of great poets that might stun, delight, or otherwise bring emotion to us with their code? We have things like the IOCCC that celebrates one extreme of code formatting [obfuscated], but should we find other ways to celebrate well and uniquely formatted code?)