Try it free

← All courses

UNC Chapel Hill COMP 301

Professor Sayeed Ghani · UNC Chapel Hill · 22 lectures with notes

Every lecture with its full transcript and chapters, and one search across all 22 lectures.

UNC COMP 301 - F26/Lec 23 (Last) - Testing Principles and phases; Debugging (stack trace)

26 Nov 2026

Reliable tests isolate dependencies, verify both success and failure, and make randomness repeatable with fixed seeds.

UNC COMP 301 - F26/Lec 21 - MVC Playlist Views; SOLID Design Principles

21 Nov 2026

A JavaFX playlist walkthrough leads into SOLID, with SRP and OCP illustrated through report-card and ticket-pricing designs.

UNC COMP 301 - F26/Lec 22 - SOLID Design Principles (Cont.); Testing revisited

21 Nov 2026

SOLID principles in Java: use abstractions and dependency injection to support safer extension, substitution, and testing.

UNC COMP 301 - F26/Lec 20 - MVC (Cont.) - Songs Playlist example

14 Nov 2026

A JavaFX playlist demonstrates how MVC, Observer notifications, and controller validation work together.

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

7 Nov 2026

MVC separates state, rendering, and event handling, with classic and alternate architectures differing in how views access model updates.

UNC COMP 301 - F26/Lec 17 - JavaFX (part 2)

31 Oct 2026

JavaFX UI structure, scene switching, layout panes, IntelliJ setup, and reusable CSS styling.

UNC COMP 301 - F26/Lec 16 - JavaFX (part 1)

25 Oct 2026

JavaFX interfaces combine a Stage, Scene, and pane hierarchy, while button events are handled concisely with lambdas and setOnAction.

UNC COMP 301 - F26/Lec 15 - Observer (part 2); Lambda exp. and Anonymous classes; JavaFX Intro.

24 Oct 2026

Java Observer pattern variations lead into lambda expressions, anonymous classes, and a practical JavaFX setup.

UNC COMP 301 - F26/Lec 14 - Race conditions, Synchronized methods; Observer Design Pattern

14 Oct 2026

Java synchronization prevents shared-counter races, while the Observer pattern sends game updates to registered fans.

UNC COMP 301 - F26/Lec 13 - Lambda Expressions; Concurrent Programming

9 Oct 2026

Java threads enable concurrent tasks, but parallel speedups depend on the algorithm and available processor cores.

UNC COMP 301 - F26/Lec 11 - UML; Creational Design Patterns: Singleton, Multiton, Factory

3 Oct 2026

UML makes class relationships visible, while Singleton, Multiton, and Factory Method control how objects are created.

UNC COMP 301 - F26/Lec 12 - Adapter Design Pattern; Composition over Inheritance; Decorator DP

3 Oct 2026

Adapters translate incompatible APIs, while decorators add behavior through composable wrappers instead of subclass proliferation.

UNC COMP 301 - F26/Lec 9 - Iterator Design Pattern

23 Sep 2026

Java iterators hide collection structure while enabling controlled traversal through hasNext(), next(), and custom iteration strategies.

UNC COMP 301 - F26/Lec 8 - Java Collections Framework - HashMap, HashSet; Error Handling

18 Sep 2026

HashMap and HashSet provide fast key lookup and unique elements, while Java exception handling requires deliberate cleanup and checked-exception handling.

UNC COMP 301 - F26/Lec 9 - Software Testing - JUnit; Design Patterns Introduction

18 Sep 2026

JUnit tests, coverage, and TDD help verify Java behavior and reveal gaps in requirements.

UNC COMP 301 - F26/Lec 6 - Abstract classes; Inheritance application; Aggregation, Composition

11 Sep 2026

Abstract classes enforce shared contracts without requiring a default implementation, while aggregation and composition model different kinds of object ownership.

UNC COMP 301 - F26/Lec 7 - Coupling, Composition over Inheritance; Error handling

11 Sep 2026

Use inheritance for clear is-a hierarchies; otherwise favor composition, and use Java exceptions to make errors explicit and handleable.

UNC COMP 301 - F26/Lec 4 - Inheritance and Polymorphism

5 Sep 2026

Java subtype polymorphism lets a Person reference hold a Student or Professor, but downcasts must match the object's runtime class.

UNC COMP 301 - F26/Lec 5 - Polymorphism, Type casting, Method Access, Overriding methods

5 Sep 2026

Java polymorphism depends on both a reference’s declared type and its runtime object, shaping casts, method access, and dispatch.

UNC COMP 301 - F26/Lec 3 - Motivating OO; Encapsulation; Assn 01; Interfaces

30 Aug 2026

Java objects become safer and more flexible when their state is encapsulated and clients depend on interfaces rather than implementations.

UNC COMP 301 - F26/Lec 1 - Intros, Syllabus, 301 Overview, Java Workflow & Maven

22 Aug 2026

COMP 301 focuses on principled software design, with a practical introduction to Java compilation, dependencies, and Maven.

UNC COMP 301 - F26/Lec 2 - Maven Build; Motivating the Object Oriented Way

22 Aug 2026

Maven packages Java applications as JARs; a triangle program illustrates the shift from procedural code to object-oriented design.

Keep the lectures you learn from

Paste a video, playlist, or channel URL to get transcripts, AI summaries with clickable timestamps, and search across everything.

Get started free