In this contemporary culture, geeks are conventionally stereotyped to be people who are knowledgeable and overly obsessed or enthusiastic about their own particular interests. The question stands, why do geeks, people who supposedly only seek to expand on their horizon of knowledge, would want to write?
Programming is a type of language. You communicate with other programmers through programming. Just like a piece of literature, program codes are iterated over and modified. For this reason, it is necessary that the coding is clear, concise and as easy as it can be to follow through. When you write, you mean for your work to be read and understood by others. Computer mechanism, coding and logic can be hard and take long to explain, and mastering the use of language and vocabulary can save you a lot of resources. That intention is carried over to programming. It forces you to be explicit in short language.
Well, there are several answers.Programming is a type of language. You communicate with other programmers through programming. Just like a piece of literature, program codes are iterated over and modified. For this reason, it is necessary that the coding is clear, concise and as easy as it can be to follow through. When you write, you mean for your work to be read and understood by others. Computer mechanism, coding and logic can be hard and take long to explain, and mastering the use of language and vocabulary can save you a lot of resources. That intention is carried over to programming. It forces you to be explicit in short language.
As our good old cliché phrase states, practice makes it perfect. When writing is practiced, the knowledge becomes sharper and sharper. When you know so much information about something, and you iterate over it by writing about it, that information ingrains in your brain. It is just like when you teach someone something, you learn with them because you are revisiting and refreshing what you have learned. But not just that, when you write, you get to keep track of things that you might otherwise forget or get mixed up with. When you are developing a complex program, it is human nature to lose track of the logic. But, if your progress and thinking are recorded, you can refer back to them easily as you get more ideas, hence, it would be much easier to connect the dots. In addition to keeping a record for yourself, if you elaborate on and publish your program; the experience of progressing it; and the ways you troubleshoot it, it would benefit countless other fellow programmers out there who might be going through the same thing. You would create a public library of information. If it was not for the developers of several open-source software and libraries, we would not have the knowledge of how they work or the opportunity to learn from them or the freedom of modifying them.
There's a parallel concept between writing literature and coding. When you write, you form sentences out of words and then paragraph out of those sentences and finally you compose work of literature with these paragraphs that can be altered later on if you wish. This is very similar to coding: when you code, you create smaller functions that can be altered later on, then you import and create classes, then subsequently, accumulate them all to develop a complex program. So, when you write, the organized structure of your oeuvre and the fact that you try to write succinctly give you practice in efficient programming, and every programmer knows that efficiency is very vital in their lives.
Although writing is beneficial to everyone, it is particularly crucial for programmers.