1
00:00:00,180 --> 00:00:00,670
Beautiful.

2
00:00:01,200 --> 00:00:06,150
And once we understand the global in note, I want to talk about the module's.

3
00:00:06,750 --> 00:00:14,450
And first, let's return to this command post we have here, Noad and Pajares.

4
00:00:15,320 --> 00:00:24,050
And probably the question that you have is, well, does that mean that all my application needs to

5
00:00:24,050 --> 00:00:25,070
be in this one file?

6
00:00:25,960 --> 00:00:28,570
And the answer, again, is yes and no.

7
00:00:29,020 --> 00:00:34,990
Yes, you'll execute one file, but you'll split your code in modules.

8
00:00:34,990 --> 00:00:41,320
Otherwise that would be literally insane to jump all your code in one file.

9
00:00:41,710 --> 00:00:48,160
Effectively, I'll just show you with an extremely complex app and of course, extremely complex in

10
00:00:48,160 --> 00:00:49,270
the air right now.

11
00:00:49,630 --> 00:00:53,860
And you'll see why I would want to use the modules in the first place.

12
00:00:53,890 --> 00:00:58,570
So next video, I'll give you official intro with a bunch of gibberish and all that.

13
00:00:58,570 --> 00:01:05,260
But for the time being, let's just build a super complex app and then see why you would want to use

14
00:01:05,260 --> 00:01:07,770
those modules in the first place.

15
00:01:08,020 --> 00:01:15,550
And if you have any familiarity with six modules, if you have worked with them in vanilla jars or in

16
00:01:15,550 --> 00:01:17,920
reactors, you already in good shape.

17
00:01:18,340 --> 00:01:22,900
The syntax is going to be tiny bit different because, you know, it uses common commentary's.

18
00:01:23,230 --> 00:01:25,530
But the general idea is exactly the same.

19
00:01:25,960 --> 00:01:31,600
And we start with a simple function by the name of say hi, you guessed it.

20
00:01:31,870 --> 00:01:37,540
And this function is going to be looking for the name, parameter and line inside of the function.

21
00:01:37,550 --> 00:01:38,270
What do we do?

22
00:01:38,680 --> 00:01:46,470
We simply consult a log and we say hello there and then whatever is the name of the dude or the gal

23
00:01:46,480 --> 00:01:48,010
that is being passed.

24
00:01:48,010 --> 00:01:50,130
And as a parameter, we're going to invoke it.

25
00:01:50,140 --> 00:01:51,430
And I can say say hi.

26
00:01:51,430 --> 00:01:57,820
And then passing, Suzanne, for example, in order to make this interesting, I'll set up some variables

27
00:01:57,820 --> 00:01:58,360
as well.

28
00:01:58,780 --> 00:02:01,480
So I'm going to say cons, John is equal to John.

29
00:02:02,400 --> 00:02:08,590
And you guessed it, since there is a gene that also has to be Apiata, and hopefully you get the gist.

30
00:02:09,090 --> 00:02:14,670
So imagine we would have a bunch of names and then we have probably more functions than this one.

31
00:02:14,670 --> 00:02:18,480
But for the time being, this is just going to be say how we copy and paste.

32
00:02:18,480 --> 00:02:26,760
We invoke this function, I guess, three times, one for Johnny boy, one for Peter, and the first

33
00:02:26,760 --> 00:02:28,160
one we already have for Susan.

34
00:02:28,560 --> 00:02:29,420
And what do we do?

35
00:02:29,430 --> 00:02:32,480
We run no more Appoggiaturas.

36
00:02:32,850 --> 00:02:33,590
We're on that.

37
00:02:33,600 --> 00:02:35,810
And there is in Arkansas, we can clearly see.

38
00:02:35,850 --> 00:02:37,490
Hello there, Susan, blah, blah, blah.

39
00:02:37,890 --> 00:02:46,110
Now, wouldn't it make sense if the names would be separate as well as this function or the future functions

40
00:02:46,410 --> 00:02:53,160
that we're going to create would be in separate files and then we can access them all throughout the

41
00:02:53,190 --> 00:02:53,940
application.

42
00:02:54,270 --> 00:03:00,600
And that way you would have smaller files and more structure to our application.

43
00:03:00,810 --> 00:03:04,650
And that is exactly what the modules allow us to do.

44
00:03:04,980 --> 00:03:09,630
And that's why we'll move on and start talking about the modules in the next video.

