Member-only story

These 4 Coding Principles Boosted My Writing

Anjal Binayak Adhikari
2 min readJan 22, 2024

--

How I Applied My Coding Principles to Writing

I have noticed some interesting similarities between coding and writing recently.

Never in my life, did I think coding and writing can have anything in common.

However, Coding (writing for computers) and writing (writing for readers) do have some similarities. I found 3 coding principles and applied them to my writing.

Applying these principles has made a significant difference for me.

#1 — Modularization

In coding, I break big problems into smaller sets of problems.

The smaller problems are easier to understand and solve.

I do the same with my writing, I break my articles into sections and sub-sections, which makes it easier for readers to understand and digest.

#2 — Version Control

In coding, we track changes in our source code via version control.

We work on different versions of the app and merge them into the main app.

I do the same with my writing, I write many variations of my articles and figure out which one is the best (bug-free 😜) and publish it in my main article.

#3 — Refactoring

When I am solving a problem, I write code without caring about design patterns, quality, and readability.

After I solve the problem, I refactor it and make it more readable.

The same is true with my Writing. When I am writing my content, I free-write everything that comes to my mind without caring about grammatical mistakes, white spaces, etc.

After I finish my free writing, I restructure it with proper whitespaces, divide it into proper sub-sections, and so on.

#4 — Indentation

We don’t write code only for computers. The code we write will be read by numerous developers in the future.

For that, we indent our code to make it more readable.

The same is true with writing.

A continuous group of text without any spaces and line breaks is exhausting to read. It will easily bore readers and they will quit (unless it is a love letter).

I break my paragraphs with proper line breaks & white spaces. It makes it easier for readers to digest the content.

Conclusion

Applying these coding principles has boosted my productivity as a writer.

If you liked my code. I mean my article, you should probably read this 👇

--

--

No responses yet

Write a response