1
00:00:05,200 --> 00:00:09,000
Good day, everyone, and welcome back. Welcome to section 17.

2
00:00:09,500 --> 00:00:13,600
In this section, we're going to review our code and the behavior of the app

3
00:00:14,100 --> 00:00:16,300
to make sure everything's working as it should.

4
00:00:17,100 --> 00:00:20,100
This is something you should get into the habit of doing

5
00:00:20,100 --> 00:00:22,300
before releasing an app to the Play Store.

6
00:00:22,800 --> 00:00:24,400
In an ideal environment,

7
00:00:24,600 --> 00:00:27,600
you'd have a code review whenever you create a new class

8
00:00:28,100 --> 00:00:30,460
or make changes to an existing class.

9
00:00:31,360 --> 00:00:35,560
Explaining to another developer why you've done things in a certain way

10
00:00:35,920 --> 00:00:39,920
and having them review your code really helps to improve the quality

11
00:00:39,920 --> 00:00:40,720
of your code.

12
00:00:41,710 --> 00:00:43,910
If you're working as a sole developer though,

13
00:00:44,270 --> 00:00:47,530
you won't have the luxury of code reviews with other developers.

14
00:00:48,080 --> 00:00:51,580
You also won't have a test team, it's just you.

15
00:00:53,380 --> 00:00:55,480
That doesn't mean you can skip the reviews.

16
00:00:55,840 --> 00:00:57,840
It just makes things a bit harder

17
00:00:58,340 --> 00:01:00,700
and needs more discipline on your part.

18
00:01:01,300 --> 00:01:03,860
Android studio can really help here.

19
00:01:04,260 --> 00:01:05,960
It's getting better and better

20
00:01:05,960 --> 00:01:08,960
at making suggestions about the quality of your code.

21
00:01:09,760 --> 00:01:12,160
The android framework also helps

22
00:01:12,160 --> 00:01:14,660
and identifies potential resource leaks.

23
00:01:16,540 --> 00:01:20,740
Google have made quite a few changes to the framework class functions.

24
00:01:21,140 --> 00:01:23,740
They've annotated the methods and parameters

25
00:01:23,740 --> 00:01:25,740
to make them more Kotlin friendly.

26
00:01:26,340 --> 00:01:30,540
That's caused some of our code to give errors or warnings at least.

27
00:01:31,140 --> 00:01:34,140
You've probably been fixing those as you went along,

28
00:01:34,440 --> 00:01:36,040
but we'll review them in this section.

29
00:01:36,940 --> 00:01:41,040
We're going to review the code in our app to spot potential problems

30
00:01:41,040 --> 00:01:43,340
then look at a few improvements we can make.

31
00:01:43,890 --> 00:01:46,880
So let's get started. See you in the next one.

