Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changes for night class

  • Loading branch information...
commit a6402aa48ac88895ed16f37173f8d8d6db53e9a0 1 parent b8412a1
@alexch authored
View
19 Gemfile.lock
@@ -0,0 +1,19 @@
+GEM
+ specs:
+ diff-lcs (1.1.3)
+ rake (0.9.2)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rake
+ rspec
View
2  README.md
@@ -19,7 +19,7 @@ Alex has been improving showoff; until his latest patches get accepted and relea
After installing, run
- showoff serve
+ showoff serve
This will launch a local Sinatra server on port 9090. Open your browser to `localhost:9090`. On a Mac you can run:
View
77 night_class.md
@@ -0,0 +1,77 @@
+# Ruby For Programmers
+
+Taught by Alex Chaffee
+
+<alex@stinky.com>
+
+GitHub/Twitter/LinkedIn/Google: alexch
+
+In Collaboration with Blazing Cloud
+
+# Schedule
+
+## Night One: Ruby Basics
+
+## Night Two: Built-in Types
+
+## Night Three: Iterators
+
+## Night Four: The Ruby Object Model
+
+## Textbook: The Well-Grounded Rubyist
+
+## Exercises: Learn Ruby Test First
+<http://testfirst.org/learn_ruby>
+
+# Important Note
+
+## We Will **Not** Cover Everything
+
+# Ruby Basics
+
+* Ruby Overview
+* Command-line Tools
+* Core Ruby
+ * Syntax
+ * Functions
+ * Control Flow
+ * Built-in Types
+* Collections
+* Blocks and Iterators
+
+# The Ruby Object Model
+
+* Objects
+* Classes
+* Inheritance
+* Dispatching
+* Modules
+* Scope
+
+# Test-First Teaching
+
+* We use tests to check for code correctness
+* We use tests to define the task to implement
+* We know we're done when the tests pass
+
+Conceived by Sarah Allen and Alex Chaffee
+
+# Let's get started
+
+Install Ruby, then open a terminal window and type this:
+
+ git clone https://github.com/alexch/learn_ruby.git
+
+ cd learn_ruby
+
+then open index.html in a browser
+
+# Very Important Tips!
+
+## READ THE ERROR
+
+This is actually very difficult to do, and very easy to miss.
+
+## Make your console window REALLY TALL
+
+## When you get an error, **SCROLL UP** and read down STARTING from where YOU HIT RETURN
View
6 ruby-intro.md
@@ -5,8 +5,6 @@
This section is intended as a brief, lightweight overview of the Ruby language; following sections will cover all these topics in much more detail. Students are encouraged to ask questions, but instructors are encouraged to answer, "We'll cover that later."
-!SLIDE
-
# Ruby vs. Rails
## Ruby is a Language
@@ -34,7 +32,6 @@ I tried to make people enjoy programming and concentrate on the fun and creative
&nbsp;&nbsp;- [Matz](http://linuxdevcenter.com/pub/a/linux/2001/11/29/ruby.html) (Yukihiro Matsumoto), Ruby creator
-!SLIDE incremental
# Ruby Philosophy, Applied
* Ruby has a *humane interface*
@@ -87,6 +84,9 @@ Please fire up `irb` on your computer and try this out right now!
>> (2+2).zero?
=> false
+ >> "foo" if true
+ => "foo"
+
>> "foo" if false
=> nil
View
97 showoff-2day.json
@@ -0,0 +1,97 @@
+{
+ "name": "Ruby For Programmers",
+ "description": "a two-day introduction to the Ruby programming language",
+ "sections": [
+ "000_setup.md",
+ "current_class.md",
+ "credits.md",
+
+ "ruby-intro.md",
+
+ "ruby-basics/tools.md",
+
+ "ruby-basics/rspec.md",
+
+ "ruby-basics/more_neat_things.md",
+
+ "ruby-basics/functions.md",
+
+ "# Lab: Hello",
+
+ "ruby-basics/types.md",
+ "ruby-basics/numbers.md",
+
+ "# Lab: Temperature",
+ "# Lab: Calculator",
+
+ "ruby-basics/strings.md",
+
+ "# Lab: Simon Says",
+ "# Ablay: Igpay Atinlay",
+
+ "ruby-basics/symbols.md",
+ "ruby-basics/conditionals.md",
+ "ruby-basics/loops.md",
+
+ "# Lab: Mega Calculator",
+
+ "ruby-basics/collections.md",
+ "ruby-basics/arrays.md",
+ /* todo: lab on arrays */
+
+ "ruby-basics/ranges.md",
+ "ruby-basics/hashes.md",
+
+ /* todo: lab on hashes */
+
+ "ruby-basics/blocks.md",
+
+ "# Lab: Blocks, Performance Monitor",
+
+ "ruby-basics/iterators.md",
+
+ "ruby-basics/block_scope.md",
+
+
+ "ruby-basics/regexp.md",
+
+ "ruby-objects/waka-waka.md",
+
+ /* day two */
+
+ "ruby-objects/objects.md",
+ "ruby-objects/classes.md",
+
+ "# Labs:\n* Hello Friend\n* Temperature Object\n* Book Titles\n* Timer\n* Dictionary\n",
+
+ "# Lab:\n* RPN Calculator",
+
+ "ruby-objects/class_inheritance.md",
+ "ruby-objects/dispatch.md",
+
+ "# Lab:\n* XML Builder",
+
+ "ruby-objects/class_methods.md",
+
+ "ruby-objects/reopening_classes.md",
+ "# Labs:\n* Array Extensions\n* In Words\n",
+
+
+ "ruby-objects/modules.md",
+ "ruby-objects/scope.md",
+
+ "# Advanced Topics",
+
+ "ruby-basics/exceptions.md",
+ /* todo: exception exercise */
+
+ "ruby-advanced/more_blocks.md",
+ "ruby-basics/enumerators_advanced.md",
+ "ruby-objects/classes_as_objects.md"
+
+ /* "ruby-basics/time.md", */
+ /* "ruby-basics/io.md", */
+ /* todo: file/io exercise, like scraper */
+
+ ]
+}
View
4 showoff.json
@@ -1,9 +1,9 @@
{
"name": "Ruby For Programmers",
- "description": "a two-day introduction to the Ruby programming language",
+ "description": "a four-night introduction to the Ruby programming language",
"sections": [
"000_setup.md",
- "current_class.md",
+ "night_class.md",
"credits.md",
"ruby-intro.md",
Please sign in to comment.
Something went wrong with that request. Please try again.