Abracodeabra


magic tricks for code

Git Never Forgets

Git has changed my life as a developer. I won’t go into all of the benefits of Git right now because you probably already know that version control is a lifesaver. I use Git almost every single day but I generally only work with the basic commands:


Marco Polo

Sometimes learning to code feels like a game of Marco Polo. I’m swimming in a pool of methods trying to find the right one. Though in this post I’ll lift the blindfold and expose the difference between the .find and the .find_by Active Record methods.


Sinatra Portfolio Project: Catskill 3500 Tracker

To complete the Sinatra section of the curriculum, I needed to make a CRUD app that tracks something. A user would be able to create, read, update, and delete information stored in a database.


CLI Gem to Find Adventures

I coded a Ruby CLI gem to find outdoor adventures in any state based on an activity. It scrapes data from The Outbound Collective website. I frequent this site to find recommended hikes and I’ve even posted a few.


Reflect & Review

I just finished creating a Tic-Tac-Toe with AI game, and I’m really excited about it! A few months ago I built a simple 2-player version while in the Intro to Ruby section of the curriculum, and that felt like such a feat at the time. I looked back at my code to use some of my methods in this current iteration. I found that I’ve made a lot of progress in my growth as a Ruby developer. My recent code is more efficient and simplified. For instance, instead of @board = [" "," "," "," "," "," "," "," "," "] I can simplify and reduce the likelihood of human error by setting the board equal to Array.new(9, " "). Building the game this time around wasn’t as tough as I thought it would be, and I even ended up enjoying it. I had the most fun building the AI and CLI. The strategy for the computer player looks like this: