As far as we have been taught, there are many ways to make a computer understand us. Depending on those, there might be a little easier or harder for us to understand it. A clear example of that was the first time we saw a SIF language, clojure. In this case, and as not a very good programmer it was kind of hard to really understand what we were doing due to the fact that parentheses separate our elements and the order of elements really care. I mean, when we program, sometime we forget that something will process it and how we think about it will define how long it will take and what answer will give, just when we get the correct answer we are happy.
That case is not the ideal one because we tend to look for answers and not to really understand what we are doing. In the case of SIF, I personally think that we need first to understand what we are doing before proceeding. This is due to the fact that we are not used to think like that, first the simbol, then the values and what is inside the parentheses will be affected, and we just write parentheses as crazy people until it works.
This idea I think, was taken from math classes where there are sign order and depending on that is what we should do. I consider that this is a right place to start because as we have seen, to build a compiler, first we need to understand some elements, then divide them and after that we need them to read each element and make it understandable for the computer to select the lower level element. As a matter of fact, the idea of white spaces before code, helps the compiler to find the lowest level and from that moment and on to go up to the top.
In this case, what the text is teaching us is that we use an special way of coding because this way is easier to understand as a student and to replicate it on the computer. I consider that we do not need to create new compilers everyday, but we need to understand them and to use them in our favor. In this case we should also need to remember which programming language are we using, what we are doing and our goal for the program because that will give us the answer on what we are doing wrong.
Comentarios
Publicar un comentario