forked from latazzajones/Intro-to-Programming-Using-Ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1280 lines (1113 loc) · 36.5 KB
/
index.html
File metadata and controls
1280 lines (1113 loc) · 36.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/night.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Intro to Programming</h1>
<h2>Using Ruby</h2>
<p>
<p>Created by</p>
<small>Vaidehi Joshi <a href="https://twitter.com/vaidehijoshi">@vaidehijoshi</a></small>
<small>//</small>
<small> Natasha Jones <a href="http://twitter.com/latazzajones">@latazzajones</a></small>
</p>
</section>
<!-- Slide 1 = we introduce ourselves and how we got into programming -->
<!-- DAY 1 -->
<section>
<h2>Day 1</h2>
</section>
<section>
<h2>Vaidehi Joshi</h2>
<img width="auto" height="476" data-src="http://vaidehi.weebly.com/uploads/2/6/6/2/2662213/1426816888.png" alt="Vaidehi!!!" style="float: left">
<br>
<span style="padding: 1em">
<h3>14 months of code</h3>
<h3>9 months of ruby</h3>
<h3>6 months of working</h3>
<h3>as a developer</h3>
</span>
</section>
<section>
<h2>Tasha Jones</h2>
<img width="auto" height="476" data-src="assets/yay.jpg" alt="Tasha!!!" style="float: left">
<span style="padding: 1em">
<h3>14 months of code</h3>
<h3>12 months of ruby</h3>
<h3>6 months of working</h3>
<h3>as a developer</h3>
</span>
</section>
<!-- Course Outline -->
<section>
<h2>What</h2>
<ol>
<li>The command line</li>
<li>Running scripts/programs</li>
<li>Building blocks of Ruby, of course</li>
<li>Version control with Git + GitHub</li>
</ol>
<br>
</section>
<section>
<h2>How</h2>
<h4>Chris Pine's <i>Learn To Program</i></h4>
<img width="auto" height="350" src="https://pine.fm/images/LTP2_cover.jpg">
<p>
<a href="http://kysmykseka.net/koti/wizardry/Programming/Pragmatic%20Programmers/Learn%20to%20Program%202nd%20Edition.pdf" target="blank">Learn to Program PDF</a>
</p>
</section>
<section>
<h2>Our Expectations</h2>
<p>Always ask, because everyone else has the same question.</p>
<p>You're not stupid, this is just freaking <i>hard</i>.</p>
<p>You won't get everything. You will have to work at it.</p>
<p>Come prepared, give it your all.</p>
<p>Use your resources (Saturdays!)</p>
<p>Help each other level up and we'll all learn more.</p>
</section>
<section>
<h2>Your Expectations</h2>
<p>Who are you?</p>
<p>Why are you here?</p>
</section>
<!-- talk about the history of the command line -->
<section>
<h2>Your New Best Friend</h2>
<h3>The Command Line (or Terminal)</h3>
<p>How we communicate with our computer</p>
<p>Where we run scripts</p>
<p>Where we look cool</p>
<p>Have you installed xCode? Make sure you do that today.</p>
</section>
<section>
<h2>The Command Line! For mac</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/vJYfXUgayxw" frameborder="0" allowfullscreen></iframe>
</section>
<section>
<h2>The Command Line! For pc</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/zixpms1oo40" frameborder="0" allowfullscreen></iframe>
</section>
<!-- short demo of -ls -cd -.. -pwd -->
<!-- 5-7 minutes going to cli the hard way and playing around with CLI prompts -->
<section>
<h2>Commands!</h2>
<div>
<a href="http://cli.learncodethehardway.org/book/">Learn Command Line the Hard Way</a>
</div><br>
<ul>
<li>pwd: <em>present working directory</em></li>
<li>cd: <em>change directory</em></li>
<li>ls: <em>list directory</em></li>
</ul>
</section>
<!-- install ruby -->
<section data-markdown>
<script type="text/template">
## Get Yo Ruby On
Download ruby for [mac](https://rvm.io/rvm/install).
Download ruby for [windows](http://rubyinstaller.org/).
```
curl -sSL https://get.rvm.io | bash -s stable --ruby
```
</script>
</section>
<!-- install sublime text -->
<section>
<h2>Get Yo Sublime On</h2>
<a href="http://www.sublimetext.com/">Sublime Text</a> or <a href="https://atom.io/">Atom</a><br>
<p>Text editors are where our ruby files live!</p>
</section>
<!-- Abridged using Learn To Program's Chapter 2 -->
<section data-markdown>
<script type="text/template">
## Write a Program!
- Open your text editor
- Save your file to the desktop as "calc.rb"
- Type this
```
puts 1 + 2
puts 3
puts 1.0 + 2.0
puts 2.0 * 3.0
puts 5.0 - 8.0
puts 9.0 / 2.0
```
</script>
</section>
<section>
<h2>Numbers:</h2>
<ul>
<li><em>Integers</em>: numbers without decimal points.</li>
<li><em>Floats</em>: numbers with decimal points.</li>
<li><em>Operations</em>: basic arithmetic operators (which are actual methods in ruby!)</li>
</ul>
</section>
<section data-markdown>
<script type="text/template">
## Time To Run Our Program!
- Open your command line
- Type: `pwd`
- If you are not in your `/Desktop` directory, `cd` into it
- Run this command:
```
ruby calc.rb
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## So...what happened?
```
[11:54:32] Desktop
♥ ruby calc.rb
3
3
3.0
6.0
-3.0
4.5
```
</script>
</section>
<!-- slides to insert here:
turn all of our numbers into strings
talk about the difference between numbers and strings in programming
different data types
-->
<section data-markdown>
<script type="text/template">
## Strings vs. Numbers
- *Numbers*: integer or a float
- *Strings*: characters, words, sentences. Basically, anything can be a string if it's within `"` or `'` quotes
</script>
</section>
<section data-markdown>
<script type="text/template">
## Escaping characters in strings
`puts 'Hello, what\'s your name?'`
</script>
</section>
<section data-markdown>
<script type="text/template">
## Different data types do not play well together
- this will break
```
'dog' + 5
```
- this will **not** break
```
'dog' + '5'
```
- and neither will this
```
'dog' + 5.to_s
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## `to_s`
### is a method.
### Don't worry about it.
## But it does **DO** something.
#### What do you think it does?
</script>
</section>
<section data-markdown>
<script type="text/template">
## Let's write our program:
- Open your `calc.rb` file and type:
```
puts "cat" + 2
puts "3"
puts 1.0 + 2.0 + "addition!"
puts "you" + "are" + "programming!"
puts "programming" * 3
puts "9.0 / 2.0"
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Run Our Program!
```
ruby calc.rb
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Did you get this ...?
```
[11:54:32] Desktop
♥ ruby calc.rb
cat 2
3
3 addition!
you are programming!
programming
programming
programming
9.0 / 2.0
```
but maybe you got something more like this?
```
#<TypeError: no implicit conversion of Fixnum into String>
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Your first bug. Welcome to code.
- Figure out why this error might happen:
```
<TypeError: no implicit conversion of Fixnum into String>
```
- Fix it in your code -- there's more than one way!
</script>
</section>
<section data-markdown>
<script type="text/template">
## Review
- Set up + install.
- Introduced the command line.
- Created + ran our first program.
- Learned about numbers + operations.
- Learned about strings.
- And data types.
- AND a method!
</script>
</section>
<!-- homework slide! -->
<section data-markdown>
<script type="text/template">
## Homework
1. Teach yourself about the `mkdir` command:
- Try to create your own folder on your desktop called `Development`(if this is challenging - do it from your GUI)
- Create a file in that folder called `numbers_and_letters.rb`
- Do the rest of your homework in that file!
2. Do Section 2.5 in Learn to Program (pdf)
3. Use some strings to elaborate on your program and create more complete answers from 2.5:
```
"There are " + 24.to_s + " hours in a day."
```
</script>
</section>
<!-- DAY 2 -->
<section data-markdown>
<script type="text/template">
Day 2
</script>
</section>
<section data-markdown>
<script type="text/template">
## Homework Review!
</script>
</section>
<section data-markdown>
<script type="text/template">
## More command line commands
- `mkdir`
- `touch`
- `rm`
- `rm -rf`
- `grep pattern filename(s)`
</script>
</section>
<section data-markdown>
<script type="text/template">
## Make a new file in our Development folder
#### Create and open a file called `variables.rb`
</script>
</section>
<section data-markdown>
<script type="text/template">
### Let's write some strings!
#### Write a program that `puts` this phrase `20` times:
`I saw Susie sitting in a shoe shine shop. Where she sits she shines, and where she shines she sits.`
</script>
</section>
<section data-markdown>
<script type="text/template">
## There's gotta be a better way!
<iframe width="420" height="315" src="https://www.youtube.com/embed/wwROPN3Fir8?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</script>
</section>
<section data-markdown>
<script type="text/template">
##And there is!
- *Variables*: references, pointers, labels to things!
- Those things are generally *data*, and in Ruby, most data is an object.
</script>
</section>
<section data-markdown>
<script type="text/template">
## Let's define some variables in the console
### In your terminal, type `irb`
### `irb` stands for "Interactive Ruby Shell"
### `irb` is your playground!
##*Ask Angelique how to open irb in windows*
</script>
</section>
<section data-markdown>
<script type="text/template">
## How do you define a variable?
```
> vaidehi = "Vaidehi"
> t = "Tasha"
> x = 3
> y = 5
```
what can you do with variables?
```
> t
# => "Tasha"
> x + y
# => 8
> vaidehi + " & " + t
# => "Vaidehi & Tasha"
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Use a variable to make your program run
### Try to do it in as few lines as possible
#### Hint: you'll need to use some tools from last week!
</script>
</section>
<section data-markdown>
<script type="text/template">
##The only solution I could come up with.
```
susie = "I saw Susie sitting in a shoe shine shop. Where she sits she shines,
and where she shines she sits." + " "
susie * 20
```
```
susie = "I saw Susie sitting in a shoe shine shop. Where she sits she shines,
and where she shines she sits. "
susie * 20
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Methods
### How we send actions
</script>
</section>
<section data-markdown>
<script type="text/template">
### Everything in Ruby is an object.
</script>
</section>
<section data-markdown>
<script type="text/template">
<img src="assets/objectmethod.png">
</script>
</section>
<section data-markdown>
<script type="text/template">
##What methods have we learned?
###`+ = - / *`
</script>
</section>
<section data-markdown>
<script type="text/template">
##Some *really* useful methods
```
puts (implicit reciever for self)
gets
gets.chomp
rand
.to_s
.to_i
.length
.reverse
.upcase
.downcase
.capitalize
.swapcase
```
</script>
</section>
<section data-markdown>
<script type="text/template">
##Lets write a program. Create a new file and add this to it.
```
puts "Tell me your name!"
name = gets
name
```
</script>
</section>
<section data-markdown>
<script type="text/template">
##Cool - now run your program.
</script>
</section>
<section data-markdown>
<script type="text/template">
##Now for some social networking/version control.
<a href="https://github.com/">GitHub</a>
</script>
</section>
<section data-markdown>
<script type="text/template">
## Homework:
- Create GitHub account
- Exercise 5.6 on page 28 (you'll need to use variables + methods!)
</script>
</section>
<!-- DAY 3 -->
<section>
<h2>Day 3</h2>
</section>
<section data-markdown>
<script type="text/template">
## Review the Homework!
- How did you write the `full name greeting` program?
- There's more than one way to do something!
</script>
</section>
<section data-markdown>
<script type="text/template">
## Time to git our git on
- Version control
- Locally-hidden files prepended with `.git`
- Do you have git? (`git --version`)
* Install from <a href="http://git-scm.com/book/en/v2/Getting-Started-Installing-Git">here</a>.
</script>
</section>
<section data-markdown>
<script type="text/template">
## Using git locally
- `git init`
- `git status`
- `git add --all`
- `git commit -m`
- `git branch`
- `git log`
</script>
</section>
<section data-markdown>
<script type="text/template">
## Making our first commit
```
git init
git status
git add --all
git commit -m "first commit! yay!"
```
###Let's check our log:
```
git log
```
</script>
</section>
<section data-markdown>
<script type="text/template">
##Time to work on `Angry Boss`!!
###(Chris Pine 6.2)
</script>
</section>
<section data-markdown>
<script type="text/template">
## Let's commit `Angry Boss` !
#### ...do you remember how?
<!-- link back to the slide that explains how -->
</script>
</section>
<section data-markdown>
<script type="text/template">
## Flow control
- How we handle logic in our code.
- **Comparisons** & **conditionals** (aka "branching")
</script>
</section>
<section data-markdown>
<script type="text/template">
## Comparisons
#### comparing one object to another
- `<`
- `>`
- `>=`
- `<=`
- `==`
- `!=` (not equals to)
</script>
</section>
<section data-markdown>
<script type="text/template">
## Nothingness
#### Everything in Ruby is an object.
#### Objects are inherently "truthy" values, because they exist.
#### ...but what about the *absence* of an object?
## `nil`
</script>
</section>
<section data-markdown>
<script type="text/template">
## `nil` is nothing
- Evaluates to neither `true` nor `false`
- Nil is *not* a truthy value -- it's falsey (it doesn't exist)
- The **only** other falsey value in Ruby is `false`.
</script>
</section>
<section data-markdown>
<script type="text/template">
## Comparisons
### let's play in irb:
```
> 1 > 2
# => false
> 1 < 2
# => true
> 'dog' == 'dog'
# => true
> 1 == '1'
# => false
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## What about `true` and `false`?
### What are they?
</script>
</section>
<section data-markdown>
<script type="text/template">
## `true` and `false`
are objects & data structures!
We call them `booleans`
</script>
</section>
<section data-markdown>
<script type="text/template">
## Conditionals
#### logical statements based on how comparisons evaluate
- `if`
- `else`
- `elsif`
- `end`
- `&&`
- `||`
</script>
</section>
<section data-markdown>
<script type="text/template">
### Combining conditionals and comparisons (example 1):
```
if "dog".length > 4
"Woof woof!"
else
"dawg"
end
```
##### *(uses implicit returns)*
</script>
</section>
<section data-markdown>
<script type="text/template">
### Combining conditionals and comparisons (example 2):
#### Using ||
```
cat = 'purrr'
if cat == 'purrr' || cat == 'meow'
'Hi kitty!'
end
```
#### Using &&
```
dog = 'woof'
cat = 'purrr'
if cat == 'purrr' && dog == 'woof'
'Too many animals!'
end
```
</script>
</section>
<section data-markdown>
<script type="text/template">
### Combining conditionals and comparisons (example 3):
```
puts 'Hello, what\'s your name?'
name = gets.chomp
puts 'Hello, ' + name + '.'
if name == 'Chris'
'What a lovely name!'
elsif name == 'Katy'
'That\'s a nice name!'
end
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Hai, I'm a loop!
### `while` & `break`
```
while true
puts 'What would you like to ask C to do?'
request = gets.chomp
puts 'You say, "C, please ' + request + '"'
puts 'C\'s response:'
puts '"C ' + request + '."'
puts '"Papa ' + request + ', too."'
puts '"Mama ' + request + ', too."'
puts '"Ruby ' + request + ', too."'
puts '"Nono ' + request + ', too."'
puts '"Emma ' + request + ', too."'
puts
if request == 'stop'
break
end
end
```
</script>
</section>
<section data-markdown>
<script type="text/template">
## Work time!
### Start `Deaf Grandma` and `99 Bottles of Beer` in Chris Pine 7.5
#### Save them as separate files in your `/Development` directory and commit your work frequently!
</script>
</section>
<section data-markdown>
<script type="text/template">
## Homework
- Finish both exercises
- Use version control and **commit, commit, commit**!
- Check out Ruby Monk over <a href="http://rubymonk.com">here</a>.
</script>
</section>
<!-- DAY 4 -->
<section>
<h2>Day 4</h2>
</section>
<section data-markdown>
<script type="text/template">
## Homework Review
- Time to push what we committed last week!
- We'll set up a new repository together!
</script>
</section>
<section data-markdown>
<script type="text/template">
## Making a new repo on GitHub
- Go to your GitHub account
- Click on the `Repositories` tab
- Click the `new` button
- Name your repository -- generally the same name as the directory that has your files.
- Follow the instructions to create a new repository from the command line.
</script>
</section>
<section data-markdown>
<script type="text/template">
## `git push origin master`
</script>
</section>
<section data-markdown>
<script type="text/template">
## What happened on GitHub?
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: define an array & enumerables
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: give an example & deconstruct this data type
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: play with it in irb for 5 minutes
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: methods on arrays
- `.first` and `.last`
- `.include?` and `.any?`
- `.push` and `.pop` (anyone remember git push??!??!)
- `.shuffle`
- `.shift`
- `.slice`
- `.uniq`
- `.flatten`
- `.zip`
*Check out the <a href="http://ruby-doc.org/core-2.2.0/Array.html">Ruby docs</a> on Arrays!*
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: define iterators (in the context of loop through enumerables)
- unique syntax in ruby for iterators called BLOCK SYNTAX
- use an example of `each` to show what blocks look like
- show the do block and the inline { } block syntax
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: another enumerable example using `times` block
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: maybe `.collect` if we can come up with a simple example)
* show enumerable docs? (careful, they also include hashes.)
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: WE will come up with good array example program that we'll write together
- you guys drive, we'll type.
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: WORK TIME -- we will come up with a sample example for them to do on their own using arrays + iterators
- do this twice:
**commit + push**
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: introduce hashes
## talk about how arrays are indexed and the order of things really matters
## explain keys and values and how order doesnt matter in context of hash
## think about why a hash might be a more appropriate data structure to use than an array
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: example with hashes
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: play in irb with hashes, take a look at the enumerable docs again.
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: take a look at all the resources available to you!
*Chris Pine gets a little complex, but read through it even if you can't do all the exercises*
## other resources:
- ruby monk
- codeacademy ruby
- ruby docs
- blogs! tutorials!
</script>
</section>
<section data-markdown>
<script type="text/template">
todo: next steps
- hack nights
- bmore on rails talks
</script>
</section>
<section data-markdown>
<script type="text/template">
## THANK YOU! It's been fun.
</script>
</section>
<!-- REFERENCE SLIDES -->
<section data-markdown>
<script type="text/template">
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
```
<section data-markdown>
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
</section>
```
</script>
</section>
<section>
<section id="fragments">
<h2>Fragments</h2>
<p>Hit the next arrow...</p>