Communication Through Uniformity

08 Feb 2018

Coding is communication. The different languages are different ways to communicate to different electronics. This is just like in our everyday lives. If you want to communicate with a Chinese person, you use Chinese. If you want to communicate with a French person, you use French. Just like these written and spoken languages, there are rules. If you do not follow these rules, your words will not be understandable. The same goes for coding. We have our basic syntax that must be used, or else the computer will not accept nor understand it.

As far as analyzing human language, imagine reading an essay, just like the one you are currently reading. Imagine if this essay were one long paragraph. The writer knows exactly what he wrote, so he can easily understand it and how to maneuver through it. However, another person would have a very hard time. It would look like a mess, and though it is possible to read and understand it, it would take more time.

The same goes for coding. It is good practice to use coding standards. If everyone used the followed the same coding standard, it would make collaborating much easier. Coders often get stuck when coding, and a second opinion is always nice. If a coder used coding standards, as well as whoever looks at it, it will be faster for the mistake to be found.

Using a program like IntelliJ with ESLint standards will also catch mistakes right when they happen. For instance if you do not use a variable you created, meaning either it was created for nothing (which I doubt is the case), or it is possible it is misspelt. Using IntelliJ is very convenient because they have this green checkmark in the corner that acts almost like spell-check or Grammarly. If your code follows all standards in accordance with ESLint, it appears as a green checkmark, which is always pleasant to see. If there are errors, it will instead be red, and will tell you exactly what you are doing wrong.

If everyone used the same coding standards, it would be like the entire world being able to speak a mutual language. That level of communication and collaboration would inspire so many great ideas and projects. I hope one day these standards will be more widely used, as they have already improved my ability to learn code.