jueves, 14 de abril de 2016

Finish ICS, take a look on Gigger and begining Asap

In the last 2 weeks i continue with the parser in ICS, i begin to understand the testting on rails, in the rails project has a folder called Spec, in this i create a test for each part of the app. Thanks to Christan i could understand the test with a blog made for him (I tried to find the blog but i can't). To create a test on ruby we need create a var with sentence "let". After, I need create the context or the cases, and finally i write the function "it". At the final i have some same to that:

let(:parser) { TransactionDescriptionParser.new(keywords, sentence) }

    context 'when sentence has correct grammatic' do
      it { expect(parser.sentence_keywords).to eq(['Fresh Market']) }
    end

Also I can use a FactorygGirl, to create the instances of the object. But this is only necessary when we are testing the model.

My first Pull request has too much errors, but was by don't think in other cases, for example:
  1. If i have a specials strings on the sentence
  2. If the word is not complete
To solve the first case, i only need remove this special characters. The second i was talkig with Jesus to find a solution. i recommended use Backtraking to comparate how many as similar the string, and apply the learned on the university. I was investigate about that, but when i ask a opinion a patner school, she told me that could be dangerous because the work can change the meaning very easy. Then i don't implement.

Finally, Jesus explained me that the sintaxis on Ruby is the most import. In other words, i can read the code as a book.

The next week, i was in a new project called Gigger. On this Cardoce suggest me that do a Training about ruby on Rails. On this talk about how to develop a project on Ruby using Heroku (New for me). I don't finish the book right now, but i tried to finished this weekend and explain it in the next blog better.

On the same week, Carlos give to me of development a project "alone". The client is a American investor called Tristan. After that Carlos explain me the situation, i was nervous thinking: Holy Molly,  where do i star?. The project consist a cast of files, between CSV to IIF. On this day i tried look the tools that Tristan give me. The first i investigate some about the iif file, because was the first time in hear it. When i see the Gem to work the project i say: "OMG this gem don't has support since 2012". After i open the excel file i can't understand it, them i ask for help to Jesus. He says me that the file was not a CSV file or something like that. Immediately i send a e mail to Tristan to explain me the file.

No hay comentarios:

Publicar un comentario