Learn to Code the Hard Way

I’ve decided to work my way through Learn toCode the Hard Way while I finish the Skillcrush Ruby blueprint. I know I’m not supposed to feel solid after just taking the Ruby part but I feel like Jello. Fortunately, after 15 lessons out of 52, I’m feeling pretty good. I’ve learned a few things and…

Learned in Hangman project

How to: Delay what is on the screen changing to what’s coming to the screen (game.rb) Make a graphic in the console (graphics.rb) ^C out with a message (game.rb & graphics.rb) Access a txt file and split into a list of the individual words (dictionary.rb) WORDS = File.read(“linuxwords.txt”).split(“\n”) https://github.com/twosavoie/hangman Lots of thanks to the Github…

Fork then clone

I tried to push my project to Github but it was a no-go. I had cloned the Skillcrush hangman project so it was still assigned to their repo (confirmed with git remote -v). So I needed to remove the origin (git remote rm origin) and then add my repo and push. To avoid this next…

Bundler

Bundler allowed me to create a gem pretty easily. A couple of notes though. My version worked but I hadn’t defined an object along with a method. Doing so is important because that allows you to have something to execute. At least that’s how I understand it. It also allowed me to make a print…

chmod a+x exe/(file name)

Remedy for: WARNING: exe/greeter is not executable WARNING: See http://guides.rubygems.org/specification-reference/ for help Got this from the RubyGems docs I still can’t make my exe run. Weird but I don’t think it’s me. Max took a look and he is stumped too. My bet is it is something really simple that we’re simply overlooking. 🙂

Fear

Although I know I can learn anything, I don’t feel like I’m really grasping this yet. Part of it is I still feel crispy. Part of me thinks I shouldn’t know as much as the lesson thinks I should. Part of me is afraid. But I kind of learned to use an irc today. I’m…

Bingo!

I created a Bingo card! Well, essentially this is a grid of whatever I would want it to be. It uses the Prawn gem and is written in Ruby. The script is bcc_3.rb

preview = beta

Today I learned not to use the copy of Ruby labeled preview. It is only for testing and could be bug filled. So I installed Ruby 2.3. (I think it actually installed 2.3.7?) Max (SK) said it was a stable Ruby and I set it as my default. Fortunately, I’m not so far along that…

Always options

When I check my decisions against the suggestions I realize I need to ask myself a question. Can this be made an editable field for the client. Even if I think they would never want to change it, it is still preferable that they have the option.