Permalink
Browse files

tidying up, preparing for deck

  • Loading branch information...
1 parent adc0da4 commit c7fbbe1c7074d4c5ec85376f65080fedd994b571 @alexch committed Jan 16, 2012
View
@@ -49,7 +49,7 @@ For example, if you want to run the "Teacher Training" presentation, which lives
# Running several presentations in a row
-You can create a custom presentation out of any combination and ordering of the section directories by creating your own `showoff.json` file. See `nyc.json` for an example -- it's the same as the standard `showoff.json` but inserts NY-specific resources after the Welcome section.
+You can create a custom presentation out of any combination and ordering of the section directories by creating your own `showoff.json` file. See `showoff-nyc.json` for an example -- it's the same as the standard `showoff.json` but inserts NY-specific resources after the Welcome section.
rake showoff serve --pres_file showoff-nyc.json
@@ -27,7 +27,7 @@ This presentation covers the basic skills required to be a programmer...
<!SLIDE bullets>
# Special Directories
-* Current directory
+* Current directory
* `.` ("dot")
* Parent directory
* `..` ("dot dot")
@@ -46,10 +46,10 @@ This presentation covers the basic skills required to be a programmer...
* text editor vs. word processor
* similarities and differences
* Have group open editor, create and save file with explanation of how and where files are stored.
- * after change, go to command line and `cat` the file to see
-* Explain file extensions and file types.
- * File types tell the editor how to color the special words in each language.
-* Explain difference between the buffer (in the editor’s memory) and the file (stored on disk).
+ * after change, go to command line and `cat` the file to see
+* Explain file extensions and file types.
+ * File types tell the editor how to color the special words in each language.
+* Explain difference between the buffer (in the editor’s memory) and the file (stored on disk).
* Emphasize the importance of saving the buffer to a file before trying to run it with ruby.
* "Save" makes things unsafe
@@ -71,9 +71,16 @@ This presentation covers the basic skills required to be a programmer...
<!SLIDE bullets>
# Operating System
-![](img/os_x_logo.jpg)
-![](img/windows_logo.gif)
-![](img/linux_logo.gif)
+<table>
+ <tr>
+ <td>
+ <img src='img/os_x_logo.jpg'>
+ <td>
+ <img src='img/windows_logo.gif'>
+ <td>
+ <img src='img/linux_logo.gif'>
+ </tr>
+</table>
* The OS is a program that runs other programs
* the term "multitasking" actually started with computers and migrated to common usage
@@ -99,7 +106,7 @@ This presentation covers the basic skills required to be a programmer...
* "check in"/"commit"
* "diff"
* "merge"
-
+
<!SLIDE bullets>
# Version Control with git
* More Terminology
@@ -108,3 +115,4 @@ This presentation covers the basic skills required to be a programmer...
* "pull"
* Diagram
* ![git](img/git.png)
+* <http://help.github.com/git-cheat-sheets/>
@@ -6,14 +6,19 @@
# What is a program?
-!SLIDE
+!SLIDE
# Operating Systems
-![](img/os_x_logo.jpg)
-
-![](img/windows_logo.gif)
-
-![](img/linux_logo.gif)
+<table>
+ <tr>
+ <td>
+ <img src='img/os_x_logo.jpg'>
+ <td>
+ <img src='img/windows_logo.gif'>
+ <td>
+ <img src='img/linux_logo.gif'>
+ </tr>
+</table>
!SLIDE
# Applications
@@ -49,12 +54,16 @@
# Let's start writing code!
!SLIDE bullets
+# "The Terminal"
* Windows: git bash ![](img/git_bash.png)
* Mac OS X: Terminal ![](img/mac_terminal_sm.png)
+* aka "The Shell" or "The Command Line" or "The Console" or "Bash" or "Shell"
+
!SLIDE commandline
+# irb: the Interactive Ruby Browser
$ irb
@@ -69,7 +78,14 @@
=> "hi"
!SLIDE
-## Types of information
+## Many types of information
+
+* Strings
+* Numbers
+* Collections
+* Dates
+* Booleans (true/false)
+* etc.
!SLIDE
## Strings (text)
@@ -78,10 +94,13 @@
## Numbers
!SLIDE
-# Collections
+## Collections
+
+* Arrays
+* Hashes
!SLIDE
-# Arrays
+## Arrays
An Array is a list of objects.
@@ -108,14 +127,14 @@ Ruby starts counting at zero.
* shift, unshift
fruits.first #=> "kiwi"
-
-!SLIDE
+
+!SLIDE
# Hashes
* aka Dictionary or Map
* collection of key/value pairs
- >> states = {"CA" => "California",
+ >> states = {"CA" => "California",
"DE" => "Delaware"}
=> {"CA"=>"California", "DE"=>"Delaware"}
@@ -196,40 +215,47 @@ The easy way, with "do...end" rather than "{...}"
!SLIDE bullets
# Hello World
-hello.rb
+hello.rb:
+
@@@ Ruby
puts "Hello, World!"
!SLIDE bullets
# Arguments (ARGV)
-hello.rb
+hello.rb:
+
@@@ Ruby
puts "Hello, #{ARGV.first}!"
+terminal:
+
$ ruby hello.rb Alice
Hello, Alice!
!SLIDE bullets
# Conditionals
-hello.rb
+hello.rb:
+
@@@ Ruby
if ARGV.empty?
puts "Hello, World!"
else
puts "Hello, #{ARGV.first}!"
end
+terminal:
+
$ ruby hello.rb
Hello, World!
$ ruby hello.rb Alice
Hello, Alice!
!SLIDE
-# Sinatra
+# Sinatra
-## hello_app.rb
+hello_app.rb:
@@@ Ruby
require 'rubygems'
@@ -256,7 +282,7 @@ then open a browser to <http://localhost:4567/>
gem install rerun
rerun hello_app.rb
-
+
...now it'll automatically reload when you edit a file.
!SLIDE
View
@@ -7,7 +7,7 @@
<!SLIDE bullets>
# sponsor
-![EngineYard](ey_logo_rgb.png)
+![EngineYard](img/ey_logo_rgb.png)
<!SLIDE bullets>
# Schedule
File renamed without changes
File renamed without changes
File renamed without changes
@@ -11,13 +11,13 @@ This section is intended as a brief, lightweight overview of the Ruby language;
# Ruby vs. Rails
-## Ruby is a Language
+### Ruby is a Language
<img src="ruby-logo.jpg" height="125" width="125">
-## Rails is a Framework
+### Rails is a Framework
<img src="rails_logo.jpg" height="125" width="125">
-## Rails is written in Ruby
+### Rails is written in Ruby
<!SLIDE subsection incremental>
# Ruby Philosophy
View
@@ -24,35 +24,16 @@
# What is Ruby on Rails?
!SLIDE image
+# Web Application Plumbing
![Web App](img/web-application.png)
!SLIDE center
-![Ruby](img/ruby-logo.jpg)
-![Rails](img/rails_logo.jpg)
-
-!SLIDE
-
-<table width="100%">
-<tr>
-<td align="center">
-<img src="img/ruby-logo.jpg" width="250">
-</td>
-<td align="center">
-<img src="img/rails_logo.jpg">
-</td>
-</tr>
-<tr>
-<td align="center">
-<span class="big-text">Language</span>
-</td>
-<td align="center">
-<span class="big-text">Framework</span>
-</td>
-</tr>
-</table>
-# &nbsp;
-# &nbsp;
+# Ruby vs. Rails
+
+|Ruby is a Language | Rails is a Framework |
+|----|-----|
+| <img src="img/ruby-logo.jpg" alt="Ruby" width="250"> | <img src="img/rails_logo.jpg" alt="Rails" width="250"> |
<!SLIDE bullets>
# Ruby: programming language
@@ -112,9 +93,8 @@
<!SLIDE bullets>
# Materials
-* <http://railsbridge.github.com/workshop>
-* <http://github.com/railsbridge/workshop>
-* <http://wiki.devchix.com/index.php?title=Rails_3_Curriculum>
+* Slides: <http://railsbridge.github.com/workshop>
+* Curriculum: <http://curriculum.railsbridge.org>
<!SLIDE bullets>
# Two Tracks Today

0 comments on commit c7fbbe1

Please sign in to comment.