Turn Around…

Emily Deans
Aug 22, 2017 · 1 min read

Today I wrote my first program in Ruby!

Our daily project was to create a ‘Number Guessing Game’ that prompts users to pick a random number between 1 and 100 and determine whether that number matches with a computer-generated random number. The program provides feedback to the user on whether their guess should be higher or lower and ends the game after five incorrect guesses.

Number Games

A few quick observations:

  • Ruby is a super readable language (and one that feels more intuitive to me than JavaScript). I know this is a fairly simplistic program and that my language exposure in the programming world is still fairly minimal, but I’m already enjoying the accessibility of the naming and syntax in Ruby.
  • You can do a lot with a little. In JavaScript, this output would have taken significantly more lines of code to achieve and I love how straight-forward and amenable Ruby can be at its best.

AND, because I haven’t yet mentioned the spectacular natural occurrence that was today’s solar eclipse (and because I alluded to the culminating song selection in the title)…

Song of the Day: “Total Eclipse of the Heart” by Bonnie Tyler

)

Emily Deans

Written by

Washington, D.C.-based web developer. Former cheesemaker/food-systems nerd and current nerd in general.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade