Monthly Archive: November 2013

Inheritance and Pokemon

Inheritance and Pokemon

Last night we read two chapters on inheritance from Sandi Metz’s book, Practical Object-Oriented Design in Ruby. The concept of inheritance is fairly simple on the surface. You create a bare-bones super-class that only includes things that sub-classes, or different types of that class, will have in common. You link your sub-classes to your super-class so that they get all characteristics of...

Done is Better Than Perfect

Done is Better Than Perfect

At Flatiron, we’re often reminded to “make it work, make it right, make it fast,” a saying attributed to Kent Beck. As a lifelong perfectionist, this strikes a cord with me, and reminds me of Sheryl Sandberg’s advice in Lean In that “done is better than perfect.” Many times I’ve delayed getting started on something because I didn’t know the “right” way...

TDD and RSpec or Why It’s Okay To Fail

TDD and RSpec or Why It’s Okay To Fail

We’ve been learning about test-driven-development and RSpec, and it’s been amazing at times, frustrating at others. The frustrations are usually brought about when there’s a test that I want to run, but I don’t yet know how to build that test. We’re going to be learning more over the next few days, and the theory is that our learning curves for Ruby...

Petting Kittens

Petting Kittens

Today we were asked to find a fun way to represent the each method. This method loops over an array and does something to each item in the array. There are so many ways this can be shown, but I figured what way is better than with kittens? (Sadly I am not currently a kitten owner. If I were, have faith that...

Languages and Loops

Languages and Loops

Before delving into Ruby I dabbled in a few other languages, the primary one being Javascript. In fact, Javascript is the first programming language that I got beyond the most basic syntax in, and so the expressiveness that Ruby has in trying to make things more human-readable wasn’t something that I looked for or expected, or even realized existed in programming to...

The Mystery of the One-Line FizzBuzz

The Mystery of the One-Line FizzBuzz

I’ve written FizzBuzz in Javascript a few times, but never in Ruby until today. My code was as follows: We were printing numbers from 1 through 100 so I had the code loop 101 times, skipping the first number (which was 0), and then checking to see if numbers were divisible by 15, 3, and 5. If divisible by 3, I had...

Diving into the Bash Profile

Diving into the Bash Profile

Today at Flatiron we configured our dev environments on our computers, and learned a lot about what’s going on in the Terminal and Bash. While we’re not (yet!) command line wizards, I wanted to delve a little more into the secrets of the Bash profile, what it is, and how it can help make life easier. The home directory (you can type...

On Optimism

On Optimism

We started off the first day of class by reading a really interesting blog post on Optimism. It references a book by Dr. Martin Seligman which essentially quantifies optimism through empirical studies. According to Seligman’s research, optimism comes down to three main axes: personal vs. impersonal, general vs. specific, and permanent vs. temporary. Optimists take positive things personally, generally, and permanently, and...

The End of Pre-Work

The End of Pre-Work

It’s been a busy two weeks, but today was the last day of the Flatiron School pre-work! (Okay, we have the weekend too, but today was the last campus day.) Monday classes start, and it’s full speed ahead. I’m very excited. Can’t wait to dive in! Yesterday we had a furniture building party to prepare for the semester to start. Ikea couches...

Ruby and Moving on to Rails

Ruby and Moving on to Rails

The end of last week got a bit hectic, between my birthday, Halloween, and my last day of work at NYU! I kept wanting to blog, but sleep is important, too. So, what I’ve been doing since my last post: Ruby Ruby Ruby! I went through a lot more Ruby. After all the Treehouse videos I moved on to Chris Pine’s Learn...