Ruby ruby ruby

Mr KLT
2 min readAug 22, 2021

When we first started learning ruby I was really excited because I didn’t have a lot of experience with back end code. It was new to me and an area that I thought I could be interested in.

The language elegant and simple to understand, I liked how it always returned the last line and the different ways you could iterate through arrays. On the other side of the coin I found it difficult to work with the input methods. There were often times where I was just trial and erroring the code to get the tests to pass successfully.

I really enjoyed the problem solving aspect of creating relationships between different classes. The labs / tutorials around creating songs, artist, genres and writing relationships between them were really enjoyable and challenging (I wish I had utilised them more in my project). I wonder if there is something like that for React and Javascript?

I originally wanted to scrape the KFC menu but found out they had put something in place to prevent me from scraping their website. I thought about some the restaurants in Melbs that I enjoyed and one that stood out was Gaiwong Chicken. They make an amazing hainanese chicken which I always get when I go there.

The website was simple enough to scrape, but it was a little lacking in data which is my only regret. I wish I had more data to work with, so I could have created more attributes for the meals.

With the data, I worked on making a simple ordering app, which allows you to order food from the menu by entering in a number and reordering by clicking Yes or No.

In terms of the code, I created a lot of classes each with specific purpose, so that I could keep the classes focused on a single purpose, however I suspect I might have added too many methods to my Cart class and not utilised others like the Invoices and Calculator class. I also did not end up creating tables as I ran out of time and could not think of a way until the very end to utilise them properly (adding orders and their items to the table).

Overall I think it came out really nice if a little simple, the emojis added were a nice touch to make the “front-end” more appealing.

--

--