1
00:00:01,630 --> 00:00:08,210
Sign this lesson we learn how to start a new command line project and how to print some values.

2
00:00:08,210 --> 00:00:10,070
That is how to out food.

3
00:00:10,060 --> 00:00:11,990
Somebody so to do that.

4
00:00:11,990 --> 00:00:13,690
Let's jump back into Mexico.

5
00:00:13,770 --> 00:00:18,300
We're going to go here to explore that I'm going to say file new project.

6
00:00:18,740 --> 00:00:23,480
And up until now we have been doing Iowa's single view applications.

7
00:00:23,480 --> 00:00:29,930
But for now I'm going to move into my course we look for something called command line tool.

8
00:00:30,140 --> 00:00:34,140
So it's starting a new project in a sort of Iowas single view up.

9
00:00:34,160 --> 00:00:39,860
I'm going to go to my quest command line tool and I'm going to say Give me a command line tool and this

10
00:00:39,860 --> 00:00:50,910
is my command line through 0 1 and the next and I place it in the same misthought as usual.

11
00:00:52,480 --> 00:00:58,100
And now I have a command line tool which is quite different than when you have an all US application

12
00:00:58,120 --> 00:01:02,920
a command line to essentially is a tool that you can run it in a terminal.

13
00:01:02,920 --> 00:01:08,800
So it essentially does some things at a terminal level in your Mac operating system.

14
00:01:08,860 --> 00:01:13,450
We are however not going to do that all of you are going to do is we're going to use this interface

15
00:01:13,480 --> 00:01:15,290
for learning programming.

16
00:01:15,490 --> 00:01:21,690
And the first thing that we have to do is we have to learn what happens if we build and run this application.

17
00:01:21,700 --> 00:01:23,500
So let me build and run it.

18
00:01:23,880 --> 00:01:26,440
And as you can see them all and it builds and runs.

19
00:01:26,440 --> 00:01:29,160
It compiles this application.

20
00:01:29,290 --> 00:01:37,060
It goes through all different lines and does exactly what this one asks it which is printing hello world

21
00:01:37,180 --> 00:01:38,640
which is this.

22
00:01:38,920 --> 00:01:44,860
So let's quickly talk about that and to do that I'm actually going to reformat this text a little bit.

23
00:01:44,950 --> 00:01:50,970
I'm going to say this thing this curly bracket down there on this line here it automatically indents

24
00:01:50,980 --> 00:01:54,450
itself because it is nested inside another one.

25
00:01:54,580 --> 00:01:59,530
And at some point we will talk about all of these things but the only line I want to talk about right

26
00:01:59,530 --> 00:02:03,980
now is this one which is essentially our print command.

27
00:02:04,000 --> 00:02:17,470
So if I say and Aslaug and I say this log This is Iowa s boot camp as you can imagine the moment I run

28
00:02:17,470 --> 00:02:19,510
the application it does.

29
00:02:19,510 --> 00:02:25,000
It prints the same thing it prints one line of saying hello world and other line of printing.

30
00:02:25,000 --> 00:02:26,860
This is Iowas food.

31
00:02:27,220 --> 00:02:32,500
Although this may seem quite unnecessary and may seem that you know it's quite trivial and we won't

32
00:02:32,500 --> 00:02:36,550
be using it for anything for as long as we are in a command line tool.

33
00:02:36,550 --> 00:02:40,720
This really helps us understanding the result of our application.

34
00:02:40,720 --> 00:02:46,480
So if we run a piece of code we can see the result of it by printing success or failure or if you're

35
00:02:46,480 --> 00:02:53,270
searching for something in printed value by knowing you know what kind of results we got for that.

36
00:02:53,270 --> 00:02:55,200
We found that one or not.

37
00:02:55,460 --> 00:03:01,540
Another thing that you must mention I must mention is that up here in the command line tools the app

38
00:03:01,570 --> 00:03:03,880
isn't constantly running.

39
00:03:03,880 --> 00:03:09,350
So the app isn't in a mode that like in Iowa as it is in the wrong time mode.

40
00:03:09,460 --> 00:03:16,090
Here it runs and then it exits which is as it says your program ended with exit code.

41
00:03:16,180 --> 00:03:22,150
It finished you know running is of course trickles right out that it stays continuously waiting for

42
00:03:22,420 --> 00:03:24,370
for instance input from user.

43
00:03:24,490 --> 00:03:26,160
But for now we don't need to do that.

44
00:03:26,170 --> 00:03:28,900
We just need to be able to print some news.

45
00:03:29,200 --> 00:03:38,950
So to keep your recap file new project and now set up an office any kind of application makeovers.

46
00:03:38,990 --> 00:03:46,060
And in your command line tool that's more or less what we'll be using for the most part in this section.

47
00:03:46,120 --> 00:03:52,300
I might jump back into Iowas from time to time but for the most part we'll doing Buddh be doing command

48
00:03:52,300 --> 00:03:58,350
line tools in the command line to remember to keep your language as Objective C for now.

49
00:03:58,660 --> 00:04:01,750
So with that in mind this move on to our next lesson.
