The Simplicity of Ruby

When I first started this blog, I was learning Ruby and I loved it.

This was before starting freeCodeCamp or Zed Shaw’s Learn Python the Hard Way series 1.

When I decided I wanted to program for a living, I found some meetups and went to my first one in 2014, Code & Supply where Ruby was the topic; getting it set up on our systems and writing a pretty simple Ruby program.

Ruby was so simple. Take this, for example:

class MyClass
  def initialize(name, age)
    @name = name
    @age = age

If you know anything at all about OOP, you know what is happening here.

Where the beauty of Ruby lies is in its eerily easy to read syntax.

class MyClass

creates a class where we’ll hold all our objects and methods.

def: define. Here we are defining a method initialize with two local variables
name and age. We assign them to the instance variables @name and @age in order to use them outside of the object’s scope. We end the method and class with the end keyword.

Outside of the OOP instance variable syntax, this is super easy to read and understand.

First Day Feels

It is 10pm and I really need to get to bed soon. But I just wanted a chance to write about how patient the team at The Practical Dev has been with me as I learn the ropes.

On-boarding was a breeze and I have already started digging into the codebase.

My first day was fraught with nerves and expectations that I had for myself 2.
Remembering that I am not the sole developer on a project and I have a team to refer to is taking some getting used to. The team is great and I definitely ask questions: have never been shy about that. I am just so damn shy and quiet. This is something I am working on.

They even purchased a lower lumbar cushion and keyboard for me, which I can purchase when I move on.

It has been a great first week so far and I am looking forward to the weeks to come.

  1. LPTHW is quite opinionated and I am not sure if it is still recommended to new developers. 
  2. And very little sleep. Trying to fix that. 

Free Code Camp ROCKS


So I’m checking out Free Code Camp and I LOVE IT. Knocking out their Codecademy challenges left and right.

What I’m noticing is since I’ve started the Learn Code the Hard Way series I have a new and better understanding of programming. The fundamentals are starting to gel with me. I am noticing similar organization between languages like Python and Ruby. I’ve skipped all the way past the first 11 exercises in Learn Ruby the Hard Way.

Freecodecamp has been an awesome thing. There isn’t as much focus on HTML and CSS which I am thankful for. We are focusing on JQuery and Javascript mainly, then some frameworks like Node.js and Angular.js, Angular for backend and I think Node can be used for the whole stack.

This is a short post. Getting into the University has caused me so much excitement and setting things up and getting appointments, etc, has taken a lot of my time. I have just sat down to code furiously for the past two days. My last post was Saturday, I believe and before that it was a week. I am coming down off of 5 months of anxiety. I am sleeping a good bit, trying to recooperate. But don’t worry! Coding like a madwoman as of late and enjoying the hell out of it.

Ruby Gems and a Messed Up Ruby Installation

rvm reinstall ruby
gem install sinatra

Brian Douglas ran a “Singing with Sinatra” Code Club session for the Code Newbies site. Well I signed up and I was the only student.

I knew I had Ruby installed and was sure I had Bundler installed as well. Well, I had Ruby installed and not bundler so to the terminal we went (I kept confusing bower with bundler). We went to install bundler. Terminal threw some strange error which, since I’ve restarted my Mac since then I can’t copy here. This error happened every time I tried to install bundler.

We went through my Ruby installation, updated Ruby, still couldn’t install the gem. We installed rvm (Ruby Version Manager) and I found out that I should have installed my new version of Ruby with rvm. We went into this for the whole. Stinking. Hour. Finally, Brian told me to reinstall Ruby and then try but we had to end the session. As soon as the session ended, everything installed.

So for the newbs out there: install your Ruby with rvm, maybe even update with rvm. I am going to try to update my Ruby packages with rvm because these weird errors were complicated to debug.