1 00:00:00,000 --> 00:00:04,527 [MUSIC] 2 00:00:04,527 --> 00:00:05,450 In this episode, 3 00:00:05,450 --> 00:00:09,510 we'll be taking a field trip to downtown Portland's food cart scene. 4 00:00:09,510 --> 00:00:12,700 We'll be playing an impromptu game show with real-life developers 5 00:00:12,700 --> 00:00:14,710 to see how well they can think on their toes. 6 00:00:14,710 --> 00:00:16,851 Play along at home and see if you would have won a burrito. 7 00:00:16,851 --> 00:00:21,020 All right, so welcome to the Treehouse pop-up game show. 8 00:00:21,020 --> 00:00:23,980 We are about to let you win a burrito, how does that sound? 9 00:00:23,980 --> 00:00:25,120 >> Right, I love a burrito. 10 00:00:25,120 --> 00:00:25,770 >> Awesome, so 11 00:00:25,770 --> 00:00:28,470 what is your name? >> Marco Nicalovsky. 12 00:00:28,470 --> 00:00:29,670 >> Max Janice. 13 00:00:29,670 --> 00:00:30,842 >> I'm Kevin Lighthouse. 14 00:00:30,842 --> 00:00:33,360 >> All right, so the first question, 15 00:00:33,360 --> 00:00:36,848 if you have a date, and actually, what's your programming language of choice? 16 00:00:36,848 --> 00:00:39,590 Ruby. >> C#. 17 00:00:39,590 --> 00:00:41,840 >> I am a Java developer. 18 00:00:41,840 --> 00:00:42,630 >> Java developer! 19 00:00:42,630 --> 00:00:44,350 Excellent, I teach Java at Treehouse! 20 00:00:44,350 --> 00:00:45,230 That's great. 21 00:00:45,230 --> 00:00:49,440 In Ruby, if you have a date and you wanted to turn it into a string, you wanted to 22 00:00:49,440 --> 00:00:53,960 show it on a page, what would you do? >> If I wanted to turn it into a string? 23 00:00:53,960 --> 00:00:58,540 Well, on Ruby, you could use the to_s. 24 00:00:58,540 --> 00:01:00,800 >> Date time, two strings? 25 00:01:00,800 --> 00:01:04,670 Would it be two string? >> There it is, that's great! 26 00:01:04,670 --> 00:01:05,940 All right, second question. 27 00:01:05,940 --> 00:01:09,830 Let's say that you wanted to take that date and just print the day of the week? 28 00:01:09,830 --> 00:01:10,700 Is there a way to do that? 29 00:01:10,700 --> 00:01:15,233 Is there a way to pass a format string to turn that date into, 30 00:01:15,233 --> 00:01:18,906 let's just make it say Wednesday? >> Yeah. 31 00:01:18,906 --> 00:01:22,050 >> What would you do to make that happen? 32 00:01:22,050 --> 00:01:23,210 >> I'd read the docs. 33 00:01:23,210 --> 00:01:25,310 >> That is the answer, yes! 34 00:01:25,310 --> 00:01:26,740 Number 2, that was perfect. 35 00:01:26,740 --> 00:01:30,010 You did that perfectly! >> I don't remember it. 36 00:01:30,010 --> 00:01:32,500 >> So what would you do in that case? 37 00:01:32,500 --> 00:01:33,780 >> I would Google it. 38 00:01:33,780 --> 00:01:35,910 >> That is the answer, correct! 39 00:01:36,930 --> 00:01:40,570 I would look at the Java docs. >> That's the answer, that's the answer! 40 00:01:40,570 --> 00:01:42,890 Looking at documentation is the answer. 41 00:01:42,890 --> 00:01:44,440 Ding, ding, ding. So third question, 42 00:01:44,440 --> 00:01:50,190 how often do you look at documentation? >> Pretty much anytime I'm 43 00:01:50,190 --> 00:01:52,890 using something that I don't recognize. >> Every 30 minutes or 44 00:01:52,890 --> 00:01:55,570 so. >> Every time I do anything. 45 00:01:55,570 --> 00:01:57,130 >> That is also the answer. 46 00:01:57,130 --> 00:01:57,840 You did it! 47 00:01:57,840 --> 00:01:59,250 Three questions, nailed it. 48 00:01:59,250 --> 00:02:01,350 Thank you so much for being on the show. 49 00:02:01,350 --> 00:02:02,760 Thanks for watching the Treehouse show. 50 00:02:02,760 --> 00:02:05,200 To get in touch with the show, reach out to me on Twitter or 51 00:02:05,200 --> 00:02:06,690 hit us up in the Treehouse community. 52 00:02:06,690 --> 00:02:09,550 See ya next time.