Monday, June 30, 2014

HTML Methods

Get method

sent in the URLof a get request

Post method
sent in the http message body of a post request

Blackjack

In Blackjack web game, the guy uses a turn hash to keep track on when to cover the 1st card of the dealer's hand. Why does he use this array or hash instead of an instance variable?

Tuesday, December 3, 2013

Outer scope vars are available to inner scope, but not vice versa

var scope deals with do/end, not methods
local vars initialized in outer scope is available in inner scope
local vars initialized in inner scope is NOT available in outer scope


binding.pry

require 'pry' at the very top

binding.pry where you want it to stop

Ctrl + D when you want to proceed with code