
By writing on a regular basis, we can effectively strengthen our ability to communicate our ideas to others, in particular the programmers that read our code. This can be done through the docstring which gives a description of our classes and functions and also provides examples. Your code may work a hundred percent but if a user cannot understand anything you have written, then it would be absolutely useless to everyone. For example, if you bought a product from a foreign country and the instructions were written in a language you could not read, then it would be highly unlikely you would know how to use the product. For this reason, we must be able to correctly convey the way our code works which is the main reason why Geeks should write. As we write more and more, we will also be able to pick up new vocabulary which is tremendously useful when we are naming our functions and variables. Instead of naming a variable "a" we could name it something more meaningful like "total" which is certainly a better name to describe what the variable "a" represents. Imagine writing a program in which all variable used were named after letters of the alphabet. This would almost certainly provide confusion to anyone that wants to implement the code in your program and also to you, the programmer. In the end just simply writing and improving your communication skills, everyone benefits.
No comments:
Post a Comment