SB apprenticeship: Day 8

I discovered yesterday that I have like five people who aren’t attached to Smashing Boxes in some way who read this blog! Welcome, friends! If anyone has a topic they would like to hear more about, let me know in the comments. (Comments are moderated, FYI, because WordPress gets a lot of spam. I haven’t figured out how to get into the source code for this theme in order to post something letting people know about the moderation.) I could also conceivably tell people about my fascination with red pandas, or how I’ve been trying to work out more because moving from San Francisco to North Carolina means that I don’t really walk anywhere anymore, or how having ADD is way more of a pain when I’m trying to program than when I was trying to write in my previous life.

Ooooor, we could just stick to the daily questions.

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

Yesterday I think I may have finally grasped recursion. One version of my unbeatable Tic Tac Toe game used the Minimax algorithm, (here’s a really good blog post that explains it actually using tic tac toe) and had two functions which recursively called each other. My boyfriend helped me with that part, and while I was pretty sure that I understood what I had done, when it came time to refactor that code into working with a 4×4 game board, I was stuck staring at my monitor in confusion. I knew that what I wanted to change was in that code, and it was only like two additional lines, but when it came to actually making that change I just broke things a lot. Fortunately we figured it out, and now I can play 4×4 Tic Tac Toe! That was a pretty cool breakthrough, there was much chair dancing.

Today I am going to write the coin changer kata again, and then I think I’m going to figure out Rspec testing for my 4×4 game. I used Minitest in my original game, because that’s what we learned at TIY, and I think it was easier in some ways. For instance, in order to test that the board exists, I simply put a copy of what the board should look like in the test. I’m still figuring out how to make that work in Rspec. I’ve also been working through Code School’s course on Git and version control, Git Real. (Oh, how they love their puns. What is it with programmers and puns?) I’ve actually been a little surprised how much of it I already knew, I guess TIY gave us a thorough grounding, but it’s a good refresher.

So, all that being said, I expect to learn how to retroactively write Rspec tests for a game and more about version control. I also plan to learn what kind of batteries my wireless keyboard takes, and where to find them, since I have a little red outline in my menu bar. Eep!

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