Thursday, January 22, 2015

Week 3: Why Should a Computer Geek Know How to Write?

Being a computer geek isn't just about being able to code. If you can't communicate your thoughts in a coherent and structured way, no one will be able to understand what you are trying to say. Written code isn't just for a computer to understand. The best code is written in a way that another human can understand exactly what your program does without spending too much time figuring out what each line of code means. This becomes an essential skill when collaborating with a group of programmers all working on the same code. Each programmer has to be able to understand the code to contribute. If people on the team can understand your code clearly, they can easily modify it and use parts of it in their code.

Writing is a powerful tool for a computer geek that can make writing code faster and more efficient. Before writing code, you should plan out what steps should be taken to get the desired result. This is called writing pseudo-code. The steps taken should be written in a language you are most familiar with, not a language that a computer can interpret. The goal behind writing pseudo-code is that the ideas in our minds are already in our preferred language, so it is naturally easier to edit our own language because we don't have to think about how to get a computer to understand it yet. After we understand how to solve the problem in our own language, the task of writing a program to solve that task becomes a lot simpler. We can figure out how to get to our desired result in the least number of steps by only using what is essential and cutting out extra information. An added bonus is that if something goes wrong, we don't have to start over because a blueprint is already made in our own language. Working in a formal computer language makes things needlessly complicated because we don't think the way a computer does.

The most important reason for writing coherent and concise code is for  the end users. If the end users can't understand what your code is supposed to do from its doc description, they won't be able to use your program properly and it will result in a lot of errors and frustration. The point of writing programs is for people to use them!