So welcome again in this lesson I'm going to show you two different ways that we can learn to if the
next court one of them is obviously we can use the command line tool the baby has been doing it for
Objective-C and it's another and much more modern way of doing it which is called a playground in ex-cult.
Let's go ahead and look at both of them when I go to school.
And I'm going to make myself a new project.
This new project is going to be a command line tool and I'm going to call it my first swithe command
tool.
The only thing you have to change in here is you have to make sure your language is not objective as
it is with.
So I'm going to head next.
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
have in Maine that swift and it's written in history of language.
And the only downside with this method is every that they want to see what they have done.
I have to build and run it.
And that's you know you can imagine this line of code that Corinne's the text Hello world.
It's identical to saying in this log what we would say hello world in Objective-C and you know to run
it and to see the result of what they have to build and run the application or build and run the project.
And then I will see a little cost showing up at the bottom.
That's going to actually show us you know what is going on now.
There is a much easier way.
So when I close this project and I'm going to say find a new playground and playground it helps us to
see things are kind of in real time.
So let's go ahead with that.
And when I say find new playground is going to be a blind playground and I'm going to call it my first
play play call.
So my first playground and I'm going to increase its size.
So playgrounds are in a state that we call it.
They can have a state that we call it real time feedback from them so I can actually go in here and
press this button and that executes my playground and actually tells me what is going on.
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
to write my next the string is going to be hello Swift and then when I do that it takes a little while
because the app is actually calculating itself but once is really is going to show us the result of
that in here.
Now depending on the version of ex-coach this might be a little bit slow simply because you know I'm
using x.
Peter I'm not sure if these things are functioning as well as you would expect them.
You can actually go in here.
Stop the execution and rerun the execution immediately see what's going on in this little you know print
area.
So two methods of learning Swift One is the command line tool one is with three gone through all these
lessons.
I'm going to use our combination of both of them so if we get a sense of what different things are.
Keep in mind that play guns cannot do anything for you when it comes to running an apple or making it
or anything of the sort.
The only thing it can do is it can show us stuff that is primarily for learning purposes.
One very important note in here is that playground has an iPad app.
So that said there's an official OP by Apel.
So if you want to you can actually download that and Lehren swift programming on your iPad.
It doesn't unfortunately work on iPhones only on iPods.
So with that in mind let's move on.