I have only just started to learn Ruby hoping one of you have some time to explain something to a complete newbie. I have been learning from Treehouse and Lynda (any other suggestions) and want to start testing what i know to write a small sports tipping app for my friends.
basically my theory is to 1. parse some data from an official site 2. get this into the format of a hash 3. iterate over the hash to see which score (value) is higher and which key (team) that is associated with to get a winner.
this is the core of functionality, however there is obviously code required around;
- signing up and manage users
- getting tips
- giving results (and winners)
My first question is around iterating over a hash to compare the scores and get the winner. what would be the most beautiful code to achieve this.
Hope you can help and thank you for your help its really appreciated, hope one day to be here with some skills returning the favour !