jueves, 28 de julio de 2016

The weak points

From this 2 weeks I was working on ICS and a lot of TableXi. On ICS I was touching the model of the project creating a new table and adding some foreign key to the tables. Maybe was not interesting to some people, but this was my first time creating a migration and I think can be mentioned in this blog. To learn this functionality of rails I use this guide.

Also I was working on the interface. This section was especially interesting, because the project use bootstrap but with a different syntaxes called HAML. This is a gem from rails to make the syntax "easier to read".




Into a part of the project I was trying to update controller code, then I went to see the code I did not find nothing of the code. At the beginning I was surprised, How can be possible?, My first conclusion was that the view had the controller (I thought on this possibility because HAML was newer for me), but It was ridiculous. Then I prefer aks to Jesus about that, and he explain me that the HAML was working with other gem who made the role of the controller. After that Jesus explain me that I investigated the gem and I can resolve the problem.

Other new experience was working with Javascript, this time I had a problem to display some information. When I was working I needed display the information in a really specific way, then I needed work with javascript. I just try to change a function of javascript and I ran the code,at the beginning I was happy because the code runs but not like I expected. At lot of minutes after I was really upset because I could not see the problem. Again I asked for help to Jesus, He check my code a rans again. After he inspected the code of the page but this time on the navigator (Chrome). He said me that my code of Javascript was wrong. After he fixed and now the view has working.




I was working on tableXi with Arnaldo, but only was one day with him. He explain me how is working on the tickets, and we will try to fix a ticked, this was resize some images.


All  this experience was really usefull, I was working on my weak points of rails. Now I need to do the best to work on TableXi.

lunes, 11 de julio de 2016

Robot Crafter?

To this blog I continue with the second part of the Robotics Course. For the second leason was about how programing the robot. This time we needed group candle of the floor and when we had a moderately big the robot go back and take other way ramdon.
To the programming I decided use the reactive model, this means use the robot with out save values in memory while is running. I thought this was the best option because the robot needed check fast if a wall is in front of it. When I was the first test, this was better than I thought, but I saw that sometimes the robot could not detect when it were full candles. To solve this problem the best way was program using the hierarchical model, because on this form I could create a pivoting to reagroup the candles to detect it  the machine. At the final I choose the reactive model, but I changged the frame of the machine.
If I was choose the hierarchical model the robot went to hit with anything, and this was going to put on risk the robot.
I think that program a machine has the same rules to make a computer program, we can not get what we want.


To this week I was helping to Macho on Wappo app, this app is on Swift and the IDE is Xcode. I think that this is a powerful languaje OO with soft typing and a code easy to understand. But I really unlike that get much resources of the computer and I only can program on MAC computer.
About on my experience on programming was interesting and careful (The best DD ever) and working with Macho was surprising, he is too fast programming.