3 ms·
?? You mean this book-- "The Elements of Style is an American English writing style guide in numerous editions. The original was composed by William Strunk Jr.
by xtiansimon 6y ago
?? You mean this book-- "The Elements of Style is an American English writing style guide in numerous editions. The original was composed by William Strunk Jr. in 1918, and published by Harcourt in 1920..." [1]
Cool! 1920s book on English writing style inspiring your coding style.
My first reaction to the 'positive form' was to recall a conversation I had once with a retired programmer about flow control diagrams. They relayed how the normal form for these required, for example, the boolean nodes to exit True in one direction and False in another--but all similar nodes had to exit in the same direction.
I wondered if a paper-based design, once translated into code, might not include conditionals such as the example which seem awkward once the paper design is lost and forgotten.
Now I don't know which detail is more interesting--
How design methodology effects the comprehensibility of written code.
How I was inspired to apply natural language writing principles as programming best practices.
[1]: https://en.wikipedia.org/wiki/The_Elements_of_Style https://en.wikipedia.org/wiki/The_Elements_of_Style
- WalterBright 6y ago> 1920s book on English writing style inspiring your coding style. Absolutely. It is surprising (but not really once you think about it) how applicable it is.