Artsy Scraper CLI

For my CLI Data Gem project, I created the ArtsyScraperCli gem. This gem is a virtual art gallery that lists artwork genes and prints 10 works of art based on the user’s selection. Data for this gem is pulled from Artsy.com using Selenium Webdriver. I chose Selenium Webdriver to scrape data because Artsy’s website uses Javascript to render their HTML. I also used the gem iterm-imgcat to print each artwork image in iTerm.
Read more →

Hannahoke

I don’t always have time to karaoke as much as I would like, but I did carve out time to create a KaraokeBar class. It was a fun way to implement the concept of private methods and review more OO Ruby. Each instance of KaraokeBar is initialized with an instance variable of @queue = [] to store singers as they sign up and @song_history to store each song that has already been performed.
Read more →

Refactoring Ruby Regex

A very long method is not fun to read. Refactoring involves rewriting code to increase efficiency and readability. To demonstrate refactoring, I’ll show you how I started with a long method and refactored it to find a cleaner solution. Both methods below accomplish the same task: accept an argument of a phone number and return true for valid phone numbers, regardless of format, and return false for invalid phone numbers.
Read more →

Why?

Read more →