Ir al contenido principal

Outside the realm of emoticons, parentheses always come in pairs.

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

Entradas populares de este blog

Everything is not Java

When we think about a way to create something that will run in every equipment we think of JVM. In this case, as programmers we tend to seek for something that will run in everything and in the easiest way.  The problem of this solution is that  the limitations of Java tend to be  useful for some basic problems but not for a compiler.  Why is that? A compiler is a machine that can change many things inside the computer. This means that what we are creating is a bridge between the computer and the human language that we are using.  This bridge tends to have many characteristics that depend on the use that we are gonna give it to.  One of the main characteristics of this bridge is imthat we can choose between the numbers that the computer will have  to understand such as hexa, binary or even octal. These points are important to mention due to the fact that we will need to understand what we are doing and how much presition  we need to have. ...

What would you do in a hundred years?

When people normally think about a hundred years they might think that we are living in the jetsons tv show. In this case, we might think that there will be some flying cars and buildings will not be on Warth, but over the sky; robots will help us and that we will have spaceships that will turn to briefcases.  In this case,  what the reading is about, is what will happen in these cases, where we have more than enough processing power than we are supposed to do and what we will do as programmers.  Nowadays, we have been studying how to do the simplest programs, to understand the programming languages,  and as we've been going through the mayor,  we find out new ways to solve them using in a more efficient way our processing. What we have not been considering is that computer processing,  has been evolving and the way we program, the way computer understand us and the necessities that we need to solve. In this case,  we have been evolving from us...

Do I need to download an app for that?

Nowadays people tend to be more connected to internet due to the development of technologies, such as smartphones and tablets. In this case what we tend to notice is that people need these kind of things to do their everyday activities, but there is a point where the user needs to think: do i really need this app that will use my memory or could I live accessing it through my web browser? In this case the answer we could get could be divided into two groups: the ones that download any app they need and just use it for the day and keep it forever, and the group who access the website. In any of those cases we need to consider any case that these groups answer to. As we have seen in many other clases yo create an app is kind of easy with nowadays technology, where the same programming language can be used to create an app for iOS and Android. But in the case  of a website or a webapp we tend to think just inside a  box of what we can do with this kind of technology. What I mea...