1 00:00:01,080 --> 00:00:06,810 So welcome again in this lesson I'm going to show you two different ways that we can learn to if the 2 00:00:06,830 --> 00:00:12,340 next court one of them is obviously we can use the command line tool the baby has been doing it for 3 00:00:12,360 --> 00:00:18,860 Objective-C and it's another and much more modern way of doing it which is called a playground in ex-cult. 4 00:00:19,000 --> 00:00:23,400 Let's go ahead and look at both of them when I go to school. 5 00:00:23,440 --> 00:00:26,450 And I'm going to make myself a new project. 6 00:00:26,650 --> 00:00:34,390 This new project is going to be a command line tool and I'm going to call it my first swithe command 7 00:00:34,390 --> 00:00:35,230 tool. 8 00:00:35,230 --> 00:00:40,260 The only thing you have to change in here is you have to make sure your language is not objective as 9 00:00:40,380 --> 00:00:41,560 it is with. 10 00:00:41,620 --> 00:00:44,000 So I'm going to head next. 11 00:00:44,140 --> 00:00:52,800 And now let me put it in but I have to put it create and now we have kind of a very similar thing we 12 00:00:52,810 --> 00:00:57,780 have in Maine that swift and it's written in history of language. 13 00:00:57,850 --> 00:01:02,820 And the only downside with this method is every that they want to see what they have done. 14 00:01:02,830 --> 00:01:04,950 I have to build and run it. 15 00:01:05,140 --> 00:01:09,840 And that's you know you can imagine this line of code that Corinne's the text Hello world. 16 00:01:09,880 --> 00:01:21,760 It's identical to saying in this log what we would say hello world in Objective-C and you know to run 17 00:01:21,760 --> 00:01:27,740 it and to see the result of what they have to build and run the application or build and run the project. 18 00:01:27,880 --> 00:01:30,880 And then I will see a little cost showing up at the bottom. 19 00:01:31,060 --> 00:01:34,820 That's going to actually show us you know what is going on now. 20 00:01:34,840 --> 00:01:36,460 There is a much easier way. 21 00:01:36,460 --> 00:01:42,460 So when I close this project and I'm going to say find a new playground and playground it helps us to 22 00:01:42,460 --> 00:01:45,620 see things are kind of in real time. 23 00:01:45,670 --> 00:01:47,200 So let's go ahead with that. 24 00:01:47,230 --> 00:01:53,830 And when I say find new playground is going to be a blind playground and I'm going to call it my first 25 00:01:53,920 --> 00:01:56,790 play play call. 26 00:01:56,980 --> 00:02:01,600 So my first playground and I'm going to increase its size. 27 00:02:01,600 --> 00:02:04,400 So playgrounds are in a state that we call it. 28 00:02:04,420 --> 00:02:09,880 They can have a state that we call it real time feedback from them so I can actually go in here and 29 00:02:09,880 --> 00:02:15,920 press this button and that executes my playground and actually tells me what is going on. 30 00:02:16,060 --> 00:02:21,610 So for instance if I go in here and I say let's say you know we know what these things mean I'm going 31 00:02:21,610 --> 00:02:32,920 to write my next the string is going to be hello Swift and then when I do that it takes a little while 32 00:02:32,920 --> 00:02:38,740 because the app is actually calculating itself but once is really is going to show us the result of 33 00:02:38,740 --> 00:02:40,340 that in here. 34 00:02:40,390 --> 00:02:45,990 Now depending on the version of ex-coach this might be a little bit slow simply because you know I'm 35 00:02:46,000 --> 00:02:47,150 using x. 36 00:02:47,210 --> 00:02:51,470 Peter I'm not sure if these things are functioning as well as you would expect them. 37 00:02:51,480 --> 00:02:52,770 You can actually go in here. 38 00:02:52,780 --> 00:02:59,440 Stop the execution and rerun the execution immediately see what's going on in this little you know print 39 00:02:59,440 --> 00:03:00,230 area. 40 00:03:00,250 --> 00:03:06,430 So two methods of learning Swift One is the command line tool one is with three gone through all these 41 00:03:06,430 --> 00:03:06,940 lessons. 42 00:03:06,940 --> 00:03:12,880 I'm going to use our combination of both of them so if we get a sense of what different things are. 43 00:03:12,880 --> 00:03:19,450 Keep in mind that play guns cannot do anything for you when it comes to running an apple or making it 44 00:03:19,690 --> 00:03:21,080 or anything of the sort. 45 00:03:21,080 --> 00:03:26,840 The only thing it can do is it can show us stuff that is primarily for learning purposes. 46 00:03:26,860 --> 00:03:32,120 One very important note in here is that playground has an iPad app. 47 00:03:32,290 --> 00:03:36,260 So that said there's an official OP by Apel. 48 00:03:36,340 --> 00:03:42,330 So if you want to you can actually download that and Lehren swift programming on your iPad. 49 00:03:42,340 --> 00:03:47,480 It doesn't unfortunately work on iPhones only on iPods. 50 00:03:47,500 --> 00:03:49,490 So with that in mind let's move on.