TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 99
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
Advanced Rails - Week 5
Share
Copy
Download
0
388
Published on Nov 21, 2015
No Description
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
ADVANCED RAILS
WEEK 5
Photo by
JmZ Florent
2.
WEEK 5
Photo by
JmZ Florent
3.
ANNOUNCEMENTS
Photo by
jeffk
4.
CODE REVIEW
Photo by
Sebastian Bergmann
5.
HOMEWORK REVIEW
EMAIL, AUTHENTICATION, AUTHORIZATION
Photo by
Stuck in Customs
6.
WTF IS WRONG WITH MY APP NOW?!
Photo by
Travis Brown
7.
SCOPE IS ONE OF 'EM
I GOT 99 PROBLEMS AND
Photo by
Will Hastings
8.
COMMON SCOPE ERRORS
Photo by
Will Hastings
9.
WTF IS SCOPE?
Photo by
Mark Morgan Trinidad B
10.
CONTEXT
FOR EXPRESSIONS
Photo by
krossbow
11.
LANGUAGE RULES
Photo by
Stéfan
12.
DIFFERENT RULES
DIFFERENT LANGUAGES HAVE
13.
STATIC & DYNAMIC
TWO KINDS OF SCOPE RULES
Photo by
JD Hancock
14.
STATIC SCOPE
CONTEXT DETERMINED BEFORE RUN-TIME
Photo by
DeathByBokeh
15.
DYNAMIC SCOPE
CONTEXT DETERMINED AT RUN-TIME
Photo by
Simon Lieschke
16.
FLEXIBLE
HAVING BOTH IS WHY RUBY FEELS SO
Photo by
sitemarca
17.
AND NATURAL
TO WRITE
Photo by
Pink Sherbet Photography
18.
RAILS WOULDN'T EXIST
WITHOUT RUBY'S SCOPE RULES
Photo by
mdornseif
19.
7 RUBY SCOPES
(PROBABLY MORE)
Photo by
s58y
20.
TODAY - 4 RUBY SCOPES
Photo by
s58y
21.
SOMEDAY
Photo by
s58y
22.
SLOWLY AND CAREFULLY
I'M GOING TO SPEAK
Photo by
Praziquantel
23.
QUESTIONS
RAISE YOUR HAND IF YOU HAVE
Photo by
Gideon Tsang
24.
READY?
Photo by
emilio labrador
25.
CONSTANTS
FIRST SCOPE
Photo by
Flashpacking Life
26.
CORE TO RUBY
UNIQUE RULES
Photo by
Cee-Bee
27.
LONG-TERM OBJECT STORAGE
LIKE OTHER LANGUAGES
Photo by
fightingtheboss
28.
NAMES FOR CLASS OR MODULE OBJECTS
UNLIKE OTHER LANGUAGES
Photo by
Erik K Veland
29.
UPPERCASE [A-Z]
BEGIN WITH AN
Photo by
Backpack Foodie
30.
Use lexical scope
CONTEXT IS BOTH STATIC AND RELATIVE
Photo by
Erik K Veland
31.
NESTED IN THE OBJECT CLASS...
CONSTANTS ARE EITHER
Photo by
Flashpacking Life
32.
OR NESTED IN ANOTHER CLASS OR MODULE
(ACTIVERECORD::BASE)
Photo by
Lafinboy
33.
DEMO
Photo by
jun0ka
34.
CONSTANTS REVIEW
Photo by
jun0ka
35.
CONSTANT SCOPE RULES
Photo by
jun0ka
36.
CURRENT CLASS
OR MODULE
Photo by
onkel_wart (thomas lieser)
37.
EASIEST OF ALL SCOPES
PROMISE!
Photo by
monkeyc.net
38.
THE ONE BEING DEFINED
CURRENT CLASS OR MODULE IS
Photo by
Wade Brooks
39.
NEST OTHER DEFINITIONS
LET YOU
Photo by
msSeason
40.
NEST OTHER DEFINITIONS
Photo by
msSeason
41.
ACCESS CONTROL
METHODS HAVE SPECIAL RULES FOR
Photo by
synx508
42.
PUBLIC METHODS
LEAST ACCESS CONTROL
Photo by
swh
43.
CLASS IT'S DEFINED WITHIN
RECEIVER MUST BE AN INSTANCE OF THE
Photo by
swh
44.
PRIVATE METHODS
MOST ACCESS CONTROL
Photo by
Andri8184
45.
CURRENT OBJECT
RECEIVER MUST BE THE
Photo by
Andri8184
46.
PROTECTED METHODS
PICKY AS F*CK
Photo by
quinet
47.
CURRENT CLASS AND CURRENT OBJECT
RECEIVER'S CLASS MUST BE THE SAME AS THE
Photo by
quinet
48.
DEMO
Photo by
VinothChandar
49.
CURRENT CLASS REVIEW
Photo by
VinothChandar
50.
PUBLIC VS PRIVATE METHODS
Photo by
VinothChandar
51.
PUBLIC METHODS
Photo by
VinothChandar
52.
PRIVATE METHODS
Photo by
VinothChandar
53.
PROTECTED METHODS
Photo by
VinothChandar
54.
CURRENT OBJECT
THIRD SCOPE
Photo by
erin leigh mcconnell
55.
CURRENT CLASS
VERY DIFFERENT CONCEPT THAN THE
Photo by
normanack
56.
SPECIAL VARIABLE
THAT REFERENCES THE CURRECT OBJECT
Photo by
ericmay
57.
SELF
ALWAYS THE CURRENT OBJECT
Photo by
Alex //Berlin _ Alexander Stübner
58.
DEFAULT RECEIVER
FOR METHOD CALLS
Photo by
ecstaticist
59.
CHANGES AT RUN-TIME
2 SIMPLE RULES
Photo by
kevin dooley
60.
TWO WAYS TO CHANGE SELF
Photo by
kevin dooley
61.
DEMO
Photo by
Adam Melancon
62.
CURRENT OBJECT REVIEW
Photo by
Adam Melancon
63.
TWO WAYS TO CHANGE SELF
Photo by
kevin dooley
64.
VARIABLES
FOURTH AND LAST SCOPE FOR TODAY
Photo by
ecstaticist
65.
4 KINDS OF VARIABLES
Photo by
ecstaticist
66.
_ OR LOWERCASE [A-Z]
LOCAL VARIABLES
Photo by
aspheric.lens
67.
@
INSTANCE VARIABLES
Photo by
Claudio.Ar
68.
@@
CLASS VARIABLE
Photo by
Stuck in Customs
69.
$
GLOBAL VARIABLE
Photo by
Aztlek
70.
ALMOST NEVER USED
CLASS AND GLOBAL VARIABLES ARE
Photo by
tim caynes
71.
ALMOST ALWAYS USED
LOCAL AND INSTANCE VARIABLES ARE
Photo by
VinothChandar
72.
LOCAL VARIABLES
SHORT-LIVED REFERENECES TO OBJECTS
Photo by
aspheric.lens
73.
LOCAL VARIABLE SCOPE
ISOLATED TO DECLARATION CONTEXT
Photo by
SteveD.
74.
FIRST ASSIGNMENT
DECLARATION MEANS
Photo by
SteveD.
75.
DECLARATION CONTEXT
Photo by
SteveD.
76.
DEMO
Photo by
Al_HikesAZ
77.
LOCAL VARIABLE REVIEW
Photo by
Al_HikesAZ
78.
INSTANCE VARIABLES
STORE OBJECT STATE
Photo by
gnuckx
79.
DIFFERENT STATE
ALLOWS OBJECTS OF THE SAME CLASS TO HAVE
Photo by
archer10 (Dennis)
80.
NIL UNTIL DECLARED
Photo by
Bert Kaufmann
81.
#INITIALIZE
DECLARED WITHIN
Photo by
Claudio.Ar
82.
LAZY INITIALIZATION
WHEN NECESSARY
Photo by
Claudio.Ar
83.
THINK RAILS ACTIONS
Photo by
Claudio.Ar
84.
PUBLIC METHODS
OBSERVE AND ALTER WITH
Photo by
JanvanSchijndel
85.
LIVE INSIDE SELF
INSTANCES VARIABLES
Photo by
Stewart Leiwakabessy
86.
DEMO
Photo by
Claudio.Ar
87.
INSTANCE VARIABLE REVIEW
Photo by
Claudio.Ar
88.
INSTANCE VARIABLE REVIEW
Photo by
Claudio.Ar
89.
END
NO MORE!
Photo by
pj_vanf
90.
WHAT'S THE POINT?
Photo by
Glenn Waters ぐれんin Japan.
91.
IT'S OKAY
IF YOU'RE STILL CONFUSED
Photo by
PhotoJonny
92.
HARD
RUBY SCOPES ARE
Photo by
jbcurio
93.
PRACTICE
GOING TO TAKE
Photo by
alykat
94.
FEEL CONFIDENT
UNITL YOU
Photo by
Miss Yellow
95.
UNTIL THEN...
Photo by
Yoko ❥ (Paulina)
96.
USE ME
Photo by
Monica's Dad
97.
ASK QUESTIONS
Photo by
photosteve101
98.
SHOW ME YOUR CODE
I'LL BE GENTLE, I PROMISE
Photo by
elliottcable
99.
LAB SESSION
Photo by
bkcasteel
Ryan Sobol
http://ryansobol.com
×
Error!