Save this video free

UNC COMP 301 - F26/Lec 19 - MVC (Cont.)

Muhammad Sayeed Ghani · 1:13:25 · Watch on YouTube

Part of UNC Chapel Hill COMP 301. See all 19 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Muhammad Sayeed Ghani explains how Model-View-Controller separates application state and business rules, user-interface rendering, and event handling, then demonstrates the roles with console and JavaFX examples. He compares classic MVC, where views can read and observe the model directly, with an alternate architecture that routes model updates and data access through the controller, highlighting the tradeoff between tighter decoupling and additional communication steps.

Key takeaways

Chapters

0:00 MVC Roadmap and the Model, View, and Controller
5:35 Observer Patterns Connect MVC Events and Model Updates
11:12 Keep Phone-Number Rules and Game Logic in the Model
14:01 Use the Controller for Authorization and User Modes
19:04 Model and View Responsibilities in the 2048 Example
24:25 Build JavaFX Views with FXComponent and render()
31:24 Console Counter: Separate State, Output, and Input Handling
37:35 Counter Wiring and the Classic MVC Sequence
47:02 JavaFX Student Form: Model and Layout Structure
53:01 JavaFX Button Events Use a Lambda Observer
56:03 Student Controller Updates the Model Before the View
1:00:02 Classic MVC Lets the View Observe and Read the Model
1:06:31 Alternate MVC Routes Model Notifications Through the Controller
1:10:00 Compare MVC Class Diagrams and Review the 2048 Design

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, I hope everybody is getting ready for the midterm on Thursday. Um, and uh you've managed to take a look at the sample exam that I released a couple of days ago and I believe Vidur has had a review session I believe yesterday. So, do take a look at those. Um, apologies for the slightly delayed release of the sample questions but hopefully it's not too late. Now the sample questions uh if you've already attempted those you might have noticed that those are rather long. So the sample exam that wasn't supposed to depict the actual length but I tried to give you a whole bunch of questions so that you have more practice uh questions but uh the exam shouldn't be that long. Um the last in the last lecture I had

0:50 something really weird happen in which um Zoom didn't capture the video as it normally does. It's first time it's happened. I don't know why that happens. First time it's happened in the last 5 years I've been using Zoom, but I guess there's always the first time it happened with both of the um sessions. So anyway, um let's see how it goes today. So today, uh we'll be continuing on our discussion on the model view controller. Uh we had a quick introduction in the last lecture and today we'll be completely focused on that. We'll take a look at a whole bunch of examples and um we'll also see um a couple of different uh models which are referred to as the classic versus the

1:36 alternate architecture. All right. So let's go ahead and take a look. Um so this is what we had in the last lecture. We had three components in the model view controller. you had the model which essentially represented the

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Muhammad Sayeed Ghani.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.