WEBVTT

1
00:00:01.570 --> 00:00:06.650
examples can't say j is a
solar stars name we have the

2
00:00:06.860 --> 00:00:10.920
abstract factory pattern and
that's the creation of that

3
00:00:11.410 --> 00:00:14.550
and the problem
is that we need

4
00:00:15.480 --> 00:00:19.000
depending on some
configuration on either

5
00:00:21.740 --> 00:00:25.830
hundred one product or not a product
 of one reversed representation

6
00:00:25.830 --> 00:00:28.290
of a product another
representation of part

7
00:00:28.950 --> 00:00:32.470
of from object basically in
 software in each other

8
00:00:33.580 --> 00:00:37.710
so we can do that this so
 i could just through

9
00:00:37.710 --> 00:00:41.520
rights my constructor
and a configuration

10
00:00:41.520 --> 00:00:45.790
file very dead and it's not so
where's the actual problem why

11
00:00:45.790 --> 00:00:48.190
did an independent for
that and then you have

12
00:00:48.190 --> 00:00:51.580
to configure five and you have
you construct and then you you

13
00:00:51.590 --> 00:00:55.520
are whenever you need to decide
where i want to have the red

14
00:00:55.520 --> 00:00:58.680
but not approve
button let me ask

15
00:00:58.680 --> 00:01:02.180
the configuration file if
 it's red then iterate

16
00:01:02.180 --> 00:01:06.570
and if the the look and then
 and some other position

17
00:01:06.570 --> 00:01:08.890
there's text feared and
then it's a completely

18
00:01:08.910 --> 00:01:12.750
different view and yet it is a
problem i mean it's kind of

19
00:01:12.760 --> 00:01:16.510
you distribute this decision
 all over your code yes

20
00:01:18.530 --> 00:01:21.470
i don't know this is better
assessment of the demanding

21
00:01:22.450 --> 00:01:24.820
and what does he
 want run of

22
00:01:24.970 --> 00:01:27.130
i want to have it all
completely different

23
00:01:27.370 --> 00:01:31.990
ok so now i see that so
we want to more or less

24
00:01:32.000 --> 00:01:36.200
consolidated or the
configuration things into

25
00:01:36.200 --> 00:01:39.790
one class in this case in this
 is going to be our factory

26
00:01:40.040 --> 00:01:45.140
and with respect to we can then
create different products but

27
00:01:45.140 --> 00:01:50.090
they more less all the
same kind of product but

28
00:01:50.090 --> 00:01:53.840
they have different attributes
 different behavior one and

29
00:01:54.240 --> 00:01:57.890
so a bit basically we have the
effort effect readers as we

30
00:01:57.890 --> 00:02:01.330
need just some sort of second
then we'll decide if we let our

31
00:02:01.970 --> 00:02:05.450
products people buy fact we ate
all by fec creepy and in the

32
00:02:05.450 --> 00:02:10.170
end kind of you know that
a lot of factories built

33
00:02:10.680 --> 00:02:13.780
different things watching mix
 washing machines for and

34
00:02:13.780 --> 00:02:18.950
as a kind of this famous
company factory 'i which will

35
00:02:18.950 --> 00:02:22.230
steam most terrific washing
machines and then as the other

36
00:02:22.230 --> 00:02:25.700
company factory p which also plans
 to build the most terrific

37
00:02:25.700 --> 00:02:28.800
washing machines but then
solute that's a little

38
00:02:28.800 --> 00:02:31.430
difference here a little
 difference there are

39
00:02:31.570 --> 00:02:33.580
basically a difference
in the price second

40
00:02:35.010 --> 00:02:38.320
sometimes also difference
 in in the labor they

41
00:02:38.320 --> 00:02:42.060
put on it and sometimes called
if they come west but they or

42
00:02:42.060 --> 00:02:46.530
washing machine exactly but
they're differently and so

43
00:02:46.530 --> 00:02:52.590
depending if you kind of if
 the the tas defect-free

44
00:02:52.590 --> 00:02:56.030
a would build a washing
machine slightly different

45
00:02:56.220 --> 00:02:58.900
than if you get the touched
effect would be which also with

46
00:02:58.900 --> 00:03:03.600
the washing machine but yet
different and the thing is

47
00:03:03.950 --> 00:03:07.470
here this is all implemented
was playing all the things we

48
00:03:07.470 --> 00:03:11.010
already know like planes our
classes so we kept interfaces

49
00:03:11.010 --> 00:03:14.750
we've got abstract classes with
classes we've got associations

50
00:03:14.750 --> 00:03:17.680
between this so we already
 know the authors

51
00:03:17.840 --> 00:03:21.540
and in this case more let's see
 that's like factories more

52
00:03:21.570 --> 00:03:24.390
or less kind of an interface
false because we want to have

53
00:03:24.390 --> 00:03:27.200
a concrete fact restrict
 relay in victory b

54
00:03:27.450 --> 00:03:30.720
but we have it as an abstract
factory here because we could

55
00:03:30.730 --> 00:03:34.370
already implement some common
 behavior or at least a

56
00:03:34.900 --> 00:03:38.720
constructor for certain product
also in the abstract factory

57
00:03:38.730 --> 00:03:41.600
so yeah therefore it
the abstract factory

58
00:03:41.790 --> 00:03:44.270
and also the patterns called
 the upsuck flickr so

59
00:03:44.460 --> 00:03:48.710
they are so yeah and you
will get kind of photo

60
00:03:48.780 --> 00:03:51.770
full implementation
of exactly this on

61
00:03:55.710 --> 00:03:56.770
and

62
00:03:58.860 --> 00:04:00.790
x code will be
there on it

