"Write Like You Code: The Connection Between Good Writing and Efficient Coding"
Hatched by Glasp
Aug 27, 2023
4 min read
8 views
"Write Like You Code: The Connection Between Good Writing and Efficient Coding"
In the world of technology, the parallels between different disciplines are often surprising. One such connection can be found between good writing and efficient coding. Both require simplicity, efficiency, and structure to be effective. Conversely, bad writing and bad code share similar traits - unnecessary complexity, inefficiency in consuming resources, and a lack of structure. In this article, we will explore the similarities between good writing and efficient coding, and how understanding these connections can improve both skills.
One fundamental principle in coding is to write code that can be understood by a junior engineer. Similarly, good writing should be easily comprehensible to anyone, regardless of their background or expertise. Just as great code can be understood by a first-year computer science freshman, excellent writing should have a universal appeal. The key to achieving this lies in simplicity and clarity. If something in your writing doesn't need to be said, don't say it. This echoes the coding principle that the best code is no code at all - only include what is necessary and avoid unnecessary complexity.
Another important aspect to consider in both writing and coding is the utilization of resources. In coding, we think about CPU cycles and RAM, while in writing, we consider the attention span and memory of the reader. Just as efficient code optimizes the use of computational resources, good writing optimizes the use of the reader's mental resources. To combat the reader's boredom and maintain engagement, it is crucial to incorporate humor or provide insightful moments throughout the writing. This is akin to optimizing a code to make the most of the available resources.
To ensure the reader remains engaged and interested, an effective technique is to provide regular epiphanies or moments of realization. David Perell refers to this as the "Raymond Chandler rule," suggesting that readers should experience an epiphany every 250 words. This concept aligns with the idea of keeping code concise and modular, allowing for frequent checkpoints and clear understanding of the overall structure. By incorporating regular moments of insight, good writing keeps the reader invested and eager to continue.
Now, let's shift our focus to the story of Larry Page and the creation of Google. The complexity and scale of the idea behind Google's search engine lured Page to the project. As a polymath with a wide range of interests, Page was captivated by the premise of BackRub, which aimed to tackle the vast expanse of the web and organize human knowledge. The concept of citation played a significant role in the development of the web, with each link serving as a form of citation. Page recognized the value in counting and qualifying backlinks, envisioning a more valuable web if this could be achieved.
This connection between citation in the web and writing is intriguing. Just as backlinks serve as citations, good writing incorporates references and sources to support claims and provide credibility. By acknowledging the work of others, a writer adds depth and credibility to their own work. This parallel reinforces the idea that good writing, like efficient coding, is built upon a foundation of structure and organization.
To conclude, the connection between good writing and efficient coding highlights the importance of simplicity, efficiency, and structure in both disciplines. By adhering to the principles of simplicity, optimizing the use of resources, and providing moments of insight, one can create engaging and impactful written content. Additionally, drawing parallels between the way backlinks function as citations and the use of references in writing emphasizes the significance of structure and organization. Whether you are a writer or a coder, understanding these connections can undoubtedly enhance your skills in both domains.
Actionable Advice:
- Simplify and clarify your writing by eliminating unnecessary information. Remember, the best code is no code at all - only include what is necessary.
- Optimize the use of the reader's mental resources by incorporating humor, insights, and moments of realization throughout your writing. Keep your reader engaged and interested.
- Structure your writing effectively, just as you would structure your code. Use references and citations to support your claims and add credibility to 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 🐣