Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
In this episode, we'll head to downtown Portland, OR food cart scene to do a surprise game show for unsuspecting hungry developers. Would you have won the burrito?
Lessons
- You shouldn't feel like you are cheating by using documentation
- Don't feel like you need to know everything, you are expected to use the documentation and that is okay!
The documentation for the method can be found here
[MUSIC]
0:00
>> In this episode,
0:04
we'll be taking a field trip to
downtown Portland's food court scene.
0:05
We'll be playing an impromptu game show
with real-life developers to see how
0:09
well they can think on their toes.
0:13
Play along at home and
see if you would have won a burrito.
0:14
>> All right, so
welcome to the treehouse pop-up game show.
0:17
We are about to let you win a burrito.
0:21
How's that sound?
0:23
>> I love a burrito.
0:24
>> Awesome.
0:25
So what is your name?
0:25
>> Marco Nicholosky
>> Max Genese.
0:26
>> I'm Kevin Lighthouse.
0:29
>> All right.
So, the first question.
0:30
If you have a date in, actually what's
your programming language of choice?
0:33
>> Ruby.
>> C#.
0:37
>> I am a Java developer.
0:39
>> Java developer, excellent.
0:41
I teach Java at treehouse, that's great.
0:42
In Ruby, if you have a date, and
you wanted to turn it into a string,
0:45
you wanted to show it on a page,
what would you do?
0:49
>> If I wanted to turn it into a string?
0:51
Well in Ruby you could
use the two underscore s.
0:53
>> [LAUGH] Date time to string?
0:57
>> Would it be two string?
1:00
>> There it is, that's great.
1:02
All right second question, let's say
that we wanted to take that date and
1:04
just print the day of the week,
is there a way to do that?
1:08
Is there a way to pass a format string to
turn that date into, just make it say,
1:10
like Wednesday?
1:15
>> Yeah.
1:18
>> What would you do to make that happen?
1:19
>> I'd read the docs.
1:22
>> That is the answer, yes, number two,
that was perfect, you did that perfectly.
1:23
>> I don't remember it.
1:28
>> So what would you do,
what would you do in that case?
1:30
>> I would Google it.
1:32
>> That is the answer, correct
>> I would look at the Java docs.
1:33
>> That's the answer.
1:38
That's the answer.
1:39
Looking at documentation is the answer.
1:40
Ding, ding, ding.
1:42
So, third question.
1:43
How often do you look at documentation?
1:44
>> Pretty much any time I'm using
something that I don't recognize.
1:48
>> Every 30 minutes or so.
1:51
>> Every time I do anything.
1:53
>> That is also the answer, you did it,
three questions, nailed it.
1:55
Thank you so much for being on the show.
1:59
Thanks for watching the treehouse show.
2:00
To get in touch with the show,
reach out to me on Twitter or
2:02
hit us up in the treehouse community.
2:05
See ya next time.
2:06
[MUSIC]
2:07
You need to sign up for Treehouse in order to download course files.
Sign up