1 00:00:00,550 --> 00:00:03,890 The MVC model may sound like a lot of work, but 2 00:00:03,890 --> 00:00:06,900 it provides many, many benefits for developers. 3 00:00:08,228 --> 00:00:09,850 Most importantly, 4 00:00:09,850 --> 00:00:15,780 MVC separates a program into individual parts that handle specific tasks. 5 00:00:15,780 --> 00:00:17,860 The model only handles data. 6 00:00:17,860 --> 00:00:21,990 The view only handles the presentation of data, and the controller handles 7 00:00:21,990 --> 00:00:26,800 all of the communication between the model, view, and user. 8 00:00:26,800 --> 00:00:31,280 This one principal task is sometimes called the separation of concerns, 9 00:00:31,280 --> 00:00:35,460 meaning each part of the program has just a single task or concern. 10 00:00:36,730 --> 00:00:40,890 This pattern let's team of developers work on different parts of a program 11 00:00:40,890 --> 00:00:44,065 at the same time leading to faster development. 12 00:00:44,065 --> 00:00:48,990 MVC also makes it easier to find errors if one part isn't 13 00:00:48,990 --> 00:00:53,530 returning what you're expecting, then it's much easier to fix because you only 14 00:00:53,530 --> 00:00:58,200 need to look into one specific part or concern to locate the error. 15 00:00:59,200 --> 00:01:03,020 MVC helps you create flexible and reusable components. 16 00:01:03,020 --> 00:01:07,123 For example, if the model only contains specific data, 17 00:01:07,123 --> 00:01:12,607 you can use the same model with different views using the same information. 18 00:01:12,607 --> 00:01:16,908 That is to say, a database like IMDB can use the same data for 19 00:01:16,908 --> 00:01:21,726 a movie but presented on different pages such as the trailer page, 20 00:01:21,726 --> 00:01:24,235 a ratings page or on the homepage. 21 00:01:25,325 --> 00:01:30,105 Overall, MVC provides a pattern for you to program in a very structured and 22 00:01:30,105 --> 00:01:34,115 efficient way that helps you work faster and create better software. 23 00:01:35,270 --> 00:01:37,600 Let's dig deeper into the MVC pattern. 24 00:01:37,600 --> 00:01:41,590 In the next video, I'll introduce you to the master mind behind the pattern. 25 00:01:41,590 --> 00:01:44,490 The C in MVC, known as the controller. 26 00:01:44,490 --> 00:01:45,050 See you there.