1
00:00:00,980 --> 00:00:02,460
In this course, we looked at several

2
00:00:02,460 --> 00:00:05,760
concepts. Use null object to avoid null

3
00:00:05,760 --> 00:00:08,430
checks. This simplifies our code, makes it

4
00:00:08,430 --> 00:00:10,650
easier to read and write, and decreases

5
00:00:10,650 --> 00:00:14,890
complexity. Returned object is not null,

6
00:00:14,890 --> 00:00:17,350
meaning when we ask for something, we can

7
00:00:17,350 --> 00:00:19,830
be sure that what we're getting back isn't

8
00:00:19,830 --> 00:00:22,970
null. Use interface or inheritance as

9
00:00:22,970 --> 00:00:25,570
appropriate, or use one over the other as

10
00:00:25,570 --> 00:00:28,040
you prefer. Both techniques will typically

11
00:00:28,040 --> 00:00:30,260
give you the same outcome. Using the

12
00:00:30,260 --> 00:00:33,050
interface technique as we did in our code

13
00:00:33,050 --> 00:00:35,035
simply means that our code depth is

14
00:00:35,035 --> 00:00:38,290
shallower, thus less complex to read. And

15
00:00:38,290 --> 00:00:40,420
we get cleaner code, which is always a

16
00:00:40,420 --> 00:00:42,840
good thing. Thank you for exploring the

17
00:00:42,840 --> 00:00:44,910
null object pattern with me. I hope it

18
00:00:44,910 --> 00:00:49,000
helps you as it has for me in writing cleaner, more concise code.

