Course Week02 Day01

Today, we continued to work on our atomization of methods and DRYing out by making an interactive minesweeper game. Approach was pretty similar to the hangman game, and it didn’t come too hard thanks to past experience. Something to check out in the future is using UTF-8 characters for prettier displays of arrays and game boards. We also went over some etiquette for git commits, which should be in present tense. We were introduced to JSON and YAML formats, and the YAML came in handy for saving ruby objects for access later. Also did the first code review today. Seems like other pairs have very similar approaches, and differences are largely in the little things, like favorite go-to methods for common tasks or naming patterns.

Tidbits

  • can do puts or var assignment before a ternary operator
  • arrays of arrays: Array.new(3){["a"]*3}
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