1 00:00:00,025 --> 00:00:04,823 [MUSIC] 2 00:00:04,823 --> 00:00:05,681 >> In this episode, 3 00:00:05,681 --> 00:00:09,180 we'll be taking a field trip to downtown Portland's food court scene. 4 00:00:09,180 --> 00:00:13,140 We'll be playing an impromptu game show with real-life developers to see how 5 00:00:13,140 --> 00:00:14,720 well they can think on their toes. 6 00:00:14,720 --> 00:00:17,750 Play along at home and see if you would have won a burrito. 7 00:00:17,750 --> 00:00:21,040 >> All right, so welcome to the treehouse pop-up game show. 8 00:00:21,040 --> 00:00:23,400 We are about to let you win a burrito. 9 00:00:23,400 --> 00:00:24,090 How's that sound? 10 00:00:24,090 --> 00:00:25,110 >> I love a burrito. 11 00:00:25,110 --> 00:00:25,630 >> Awesome. 12 00:00:25,630 --> 00:00:26,714 So what is your name? 13 00:00:26,714 --> 00:00:29,690 >> Marco Nicholosky >> Max Genese. 14 00:00:29,690 --> 00:00:30,850 >> I'm Kevin Lighthouse. 15 00:00:30,850 --> 00:00:33,370 >> All right. So, the first question. 16 00:00:33,370 --> 00:00:37,560 If you have a date in, actually what's your programming language of choice? 17 00:00:37,560 --> 00:00:39,610 >> Ruby. >> C#. 18 00:00:39,610 --> 00:00:41,850 >> I am a Java developer. 19 00:00:41,850 --> 00:00:42,808 >> Java developer, excellent. 20 00:00:42,808 --> 00:00:45,240 I teach Java at treehouse, that's great. 21 00:00:45,240 --> 00:00:49,060 In Ruby, if you have a date, and you wanted to turn it into a string, 22 00:00:49,060 --> 00:00:51,870 you wanted to show it on a page, what would you do? 23 00:00:51,870 --> 00:00:53,970 >> If I wanted to turn it into a string? 24 00:00:53,970 --> 00:00:57,745 Well in Ruby you could use the two underscore s. 25 00:00:57,745 --> 00:01:00,810 >> [LAUGH] Date time to string? 26 00:01:00,810 --> 00:01:02,920 >> Would it be two string? 27 00:01:02,920 --> 00:01:04,360 >> There it is, that's great. 28 00:01:04,360 --> 00:01:08,280 All right second question, let's say that we wanted to take that date and 29 00:01:08,280 --> 00:01:10,940 just print the day of the week, is there a way to do that? 30 00:01:10,940 --> 00:01:15,710 Is there a way to pass a format string to turn that date into, just make it say, 31 00:01:15,710 --> 00:01:16,350 like Wednesday? 32 00:01:18,280 --> 00:01:19,190 >> Yeah. 33 00:01:19,190 --> 00:01:22,460 >> What would you do to make that happen? 34 00:01:22,460 --> 00:01:23,220 >> I'd read the docs. 35 00:01:23,220 --> 00:01:28,140 >> That is the answer, yes, number two, that was perfect, you did that perfectly. 36 00:01:28,140 --> 00:01:30,030 >> I don't remember it. 37 00:01:30,030 --> 00:01:32,510 >> So what would you do, what would you do in that case? 38 00:01:32,510 --> 00:01:33,790 >> I would Google it. 39 00:01:33,790 --> 00:01:38,500 >> That is the answer, correct >> I would look at the Java docs. 40 00:01:38,500 --> 00:01:39,880 >> That's the answer. 41 00:01:39,880 --> 00:01:40,600 That's the answer. 42 00:01:40,600 --> 00:01:42,550 Looking at documentation is the answer. 43 00:01:42,550 --> 00:01:43,320 Ding, ding, ding. 44 00:01:43,320 --> 00:01:44,460 So, third question. 45 00:01:44,460 --> 00:01:46,580 How often do you look at documentation? 46 00:01:48,860 --> 00:01:51,990 >> Pretty much any time I'm using something that I don't recognize. 47 00:01:51,990 --> 00:01:53,870 >> Every 30 minutes or so. 48 00:01:53,870 --> 00:01:55,580 >> Every time I do anything. 49 00:01:55,580 --> 00:01:59,260 >> That is also the answer, you did it, three questions, nailed it. 50 00:01:59,260 --> 00:02:00,840 Thank you so much for being on the show. 51 00:02:00,840 --> 00:02:02,770 Thanks for watching the treehouse show. 52 00:02:02,770 --> 00:02:05,220 To get in touch with the show, reach out to me on Twitter or 53 00:02:05,220 --> 00:02:06,700 hit us up in the treehouse community. 54 00:02:06,700 --> 00:02:07,708 See ya next time. 55 00:02:07,708 --> 00:02:14,229 [MUSIC]