Week1
Upcoming SlideShare
Loading in...5
×
 

Week1

on

  • 494 views

 

Statistics

Views

Total Views
494
Views on SlideShare
491
Embed Views
3

Actions

Likes
0
Downloads
6
Comments
0

3 Embeds 3

http://www.hanrss.com 1
http://www.linkedin.com 1
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Week1 Week1 Presentation Transcript

  • Ruby the Core Language Fall 2012
  • IntroductionsRenée De Voursney Backgroundrenee@nird.us Hidden Talent
  • Class StructureLecture, Demos, In-Class ExercisesExperimentation & ExplorationResources & HomeworkQuestions & Parking Lot
  • Grades?!Attendance (2 absences) - 25%Homework (1-2 hours a week) - 25%2 Take-Home Tests - 25%1 Project - 25%
  • Office HoursRenée: Monday 6pm-8pm HipChat, Phone, Skype, E-mail, iChatNell: Sunday 4pm-6pm HipChat, Skype, E-mail, gChat (Will also gladly respond to Hipchats and emails throughout the week)
  • RubyCreated by Yukihiro "Matz" MatsumotoRuby 1.0 released in 1996Ruby is for PeopleMINSWAN
  • The Ruby WorldToolsetsBest PracticesCommon Uses
  • Install CheckCommand PromptGitRubyRspecEditor (Syntax Highlighting)
  • Install CheckCommand Prompt (CLI) Mac: Terminal, iTerm, etc... Unix: bash, zsh, csh, etc.... Windows: Command Prompt w/ Ruby on Rails
  • Gitwhich git ex: /usr/local/bin/gitgit --version ex: git version 1.7.10.2
  • Rubywhich ruby ex: /Users/renee/.rvm/rubies/ruby-1.9.3- p194/bin/rubyruby -v ex: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
  • Ruby Interpreterirb ex: 1.9.3-p194 :001 > 1+2 => 3 1.9.3-p194 :002 > exit
  • RSpecgem install rspec ex: Fetching: rspec-core-2.11.1.gem (100%)gem list ex: diff-lcs (1.1.3), rspec (2.11.0), rspec-core (2.11.1), rspec- expectations (2.11.3), rspec-mocks (2.11.3)rspec -v ex: 2.11.1
  • EditorSublime, Komodo, RubyMine, Vim (!), Emacs (!),RedcarMac: TextMate
  • GitSource Control SystemTimeline, Track ChangesBranching and MergingCode Safety
  • Git Commandsgit clone / initgit statusgit add / rmgit commitgit pushgit log
  • GitHub
  • Setup a GitHub Account Sign-up: https://github.com/signup/free Set-up: https://help.github.com/articles/set- up-git#platform-all SSH Key: https://help.github.com/articles/ generating-ssh-keys#platform-all
  • HipChathttps://www.hipchat.comIn-Class Back-ChannelQuestions, Discussion
  • Demo!Fork on GitHubClone my copyMake changesCommit and Push changesSend a pull request
  • In-Class Exercise!ForkCloneChangePushPull Request
  • RSpec IntroCode that Tests code!Test Driven Development Red-Green-RefactorTest First TeachingRuby Domain Specific Language (DSL) fortesting
  • RSpec SpecificsDescribe (What) / Context (When)It (Does)ShouldMatchers http://rubydoc.info/gems/rspec- expectations/2.4.0/RSpec/Matchers
  • Rspec Demo!make a new rspec filerun rspecwalk through rspec_spec.rb
  • In-Class ExerciseRun exercises/rspec_spec.rbFix the broken in-class testAdd the 3 pending in-class tests (don’t forgetthe do/end and should!)
  • Homework!Read Chapter 3 Classes, Objects, andVariablesRead p.90-94 Strings