The Intersection of Good Writing and Efficient Coding
Hatched by Kazuki Nakayashiki
Jul 16, 2023
3 min read
20 views
The Intersection of Good Writing and Efficient Coding
"Write like you code". This simple statement highlights the similarities between good writing and good code. Both require simplicity, efficiency, and structure to effectively convey their intended message. On the other hand, bad writing and bad code share common traits of unnecessary complexity, inefficiency, and lack of structure. In this article, we will explore the parallels between good writing and efficient coding, emphasizing the importance of mastering the basics in both disciplines.
In the realm of coding, it is often said that good code can be understood by a junior engineer, while great code can be comprehended by a first-year computer science freshman. However, the pinnacle of coding excellence lies in the ability to write code that is so intuitive and well-designed that it requires no code at all. Similarly, in writing, there is a need to consider the mental resources of the reader. Just as CPU cycles and RAM are limited resources in coding, attention span and memory are the writer's equivalent. Therefore, good writing should aim to combat reader boredom by incorporating frequent moments of humor or insight. This aligns with David Perell's "Raymond Chandler rule," which suggests that readers should have an epiphany every 250 words.
Scott H Young's article, "You're Never Too Good for the Basics," resonates with the idea that the basics are the foundation of any skill. Mastery of the performance in any discipline stems from mastering the elemental components. Just as coding has commands, painting has brushstrokes, and comedy has jokes, writing has its own set of basics that must be honed. Often, we tend to overlook the basics because they seem too obvious or mundane. However, it is precisely this complacency that hinders our progress.
To return to the basics, one effective strategy is to change the environment in which we work. By altering our surroundings, we disrupt our habitual patterns and force ourselves to pay closer attention to the fundamental aspects of our craft. Another approach is to redefine our goals. When we set higher standards for what we want to produce, our actions must adapt accordingly. This forces us to revisit and strengthen our grasp of the basics.
Observation and analysis are also crucial in mastering the basics of any craft. By critically examining our work after the fact, we can identify areas for improvement and pinpoint any weaknesses in our foundational skills. Reflection allows us to refine our techniques and ensure that we are continually growing and evolving.
In conclusion, the parallels between good writing and efficient coding are striking. Both require simplicity, efficiency, and structure to effectively convey their intended message. Mastery of the basics is essential in both disciplines, as it forms the foundation for advanced skills. To excel in writing and coding, we must pay attention to the mental resources of our readers and users, respectively. Frequent moments of humor or insight can combat boredom and maintain engagement. Lastly, changing our environment, redefining our goals, and engaging in reflective analysis are actionable strategies that can help us master the basics and advance in our craft. So, whether you are a writer or a coder, remember the importance of the basics and strive for simplicity, efficiency, and structured excellence in your work.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣