SB Apprenticeship: Day 38

Ignore the mess, isn't my cat cute?

Ignore the mess, isn’t my cat cute?

  • What did you learn yesterday?
  • What are you going to do today?
  • What do you expect to learn?

Yesterday I managed to finish one of the Cucumber feature tests, felt awesome, started another and immediately felt lost again. Sigh. I should really have been more proactive with the TDD in code school. Hindsight! Still, I learned a lot about Cucumber and what it expects. I also put in my first real pull request for this assignment, and making the corrections that were requested also helped. I’m learning a lot every day, but it’s not really localized. Yesterday I learned a little about Cucumber, regex, pull requests, merging and Rails.

Today I’m pairing with Brandon again and probably working on the bookstore app. The feature set I’m working on in Cucumber is all about the book index store page, so I’m guessing that will involve writing the books controller and fiddling with the database.

I’m still a little confused when it comes to knowing exactly what an app requires me to write. For instance, right now, I wrote a test that makes a new book, then creates a new user and logs into the bookstore. I got this insane error message when I ran the tests, and I’m pretty sure that undefined method `create' for # (NoMethodError) means that I need to make a create method in my books controller. But then I look at David’s code, and he doesn’t have one. So I’m not sure if that means that for whatever reason his github isn’t up to date, or if he did something fancy that I don’t know. I should probably err on the side of doing what I know, even if it is less professional; that’s what refactoring is for, right? 🙂 This is what I mean when I say that I’m constantly second-guessing myself when it comes to knowing what to do. Maybe I just need to be more aggressive.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s