CMPUT 240
Programming Methodology and Software Design II
Winter Term 2027 |
Instructor: TBA |
Total lectures: 35 Lectures |
Office Hours: TBA |
Lecture Length: 145 Minutes |
Classroom: TBA |
Credits: 3 Units |
Class Length: 7 Weeks |
Language: English |
Course Overview:
This course delves into advanced programming methodologies and robust software design
principles using the Java language. Students will explore object-oriented programming, including inheritance, polymorphism, and interfaces, alongside systematic object-oriented design
principles and UML notation for modeling. Key topics encompass data management via the Java Collection Framework, exception handling, and serialization, as well as developing interactive graphical user interfaces with Java Swing and event handling. Emphasis is placed on practical application through unit testing, regression testing, debugging, refactoring, and the strategic
implementation of various design patterns (e.g., Singleton, Command, MVC, Observer, Three- layer, Strategy) to build maintainable and scalable software systems, including those involving graphics, animation, and multi-threading.
Required Material:
The required textbook for this course is Cay S. Horstmann, Big Java: Late Objects, 3rd Edition. Additional instructor-provided lecture notes and supplementary materials may be used to support selected topics covered in the course.
Learning Objectives:
1. Design and implement robust object-oriented programs in Java, applying principles of inheritance, polymorphism, and interfaces.
2. Utilize UML notation for effective software modeling and design, including the application of object-oriented design principles and abstractions.
3. Apply various software design patterns (e.g., Singleton, Command, MVC, Observer, Strategy, Three-layer) to develop maintainable and scalable systems.
4. Construct interactive graphical user interfaces using Java Swing, incorporating event handling, graphics, animation, and timers.
Course Outline:
Week 1: Foundations of Object-Oriented Programming and Java Basics
Lecture 1: Introduction to Object-Oriented Thinking
• Explore Object-Oriented Thinking principles.
• Understand the Object-oriented programming paradigm.
Lecture 2: Java Programming Language Fundamentals
• Overview of the Java Programming Language.
• Basic Java syntax and program structure.
Lecture 3: Classes, Objects, and Encapsulation
• Defining Classes (in Java) and object creation.
• Implementing Abstractions and encapsulation.
Lecture 4: Object-Oriented Design Principles
• Key Object-Oriented Design Principles.
• Applying design principles for robust software.
Lecture 5: Modeling with UML Notation
• Introduction to software Modeling concepts.
• Utilizing UML Notation for class diagrams.
Week 2: Core OO Concepts and Software Quality
Lecture 6: Inheritance and Class Hierarchies
• Understanding Inheritance mechanisms in Java.
• Designing and utilizing class hierarchies.
Lecture 7: Polymorphism and Interfaces
• Implementing Polymorphism and dynamic dispatch.
• Defining and using Interfaces and abstract classes.
Lecture 8: Exception Handling Mechanisms
• Principles of Exception Handling in Java.
• Strategies for robust error management.
Lecture 9: Debugging and Refactoring Techniques
• Systematic approaches to Debugging Java applications.
• Refactoring code for improved design and readability.
Lecture 10: Software Testing and Object-Oriented Program Design
• Fundamentals of Unit Testing and Regression Testing.
• Principles of Object-Oriented Program Design.
Week 3: Data Structures and Generics in Java
Lecture 11: Introduction to Java Collection Framework
• Overview of the Java Collection Framework.
• Understanding fundamental collection types.
Lecture 12: List Implementations: ArrayList and LinkedList
• Using ArrayList for dynamic arrays.
• Exploring LinkedList for sequential data structures.
Lecture 13: Set and Map Collections
• Working with Set interfaces and implementations.
• Utilizing Map and HashTable for key-value pairs.
Lecture 14: Generics for Type Safety
• Introduction to Generics in Java.
• Achieving type-safe collections with Generics.
Lecture 15: Advanced Generics and Custom Classes
• Advanced Generics concepts and applications.
• Implementing custom generic classes.
Week 4: File I/O and Data Persistence
Lecture 16: Stream Classes and Objects
• Introduction to Stream Classes and Objects.
• Basic input/output operations.
Lecture 17: Basic File I/O for Data Handling
• Reading and writing text data to files.
• Handling binary data using File I/O.
Lecture 18: Advanced File I/O Techniques
• Exploring advanced File I/O operations.
• Strategies for efficient text processing.
Lecture 19: Serialization for Object Persistence
• Concepts of Serialization in Java.
• Persisting objects by transforming to byte streams.
Lecture 20: Deserialization and Persistent Data Strategies
• Deserialization for object reconstruction.
• Strategies for managing persistent data effectively.
Week 5: Graphical User Interfaces with Java Swing
Lecture 21: Introduction to Graphical User Interfaces
• Principles of Graphical User Interfaces (GUIs).
• Understanding user interface design.
Lecture 22: Building GUIs with Java Swing
• Fundamentals of Java Swing components.
• Constructing basic Swing-based GUIs.
Lecture 23: Event Handling and Listeners
• Mechanisms of Event Handling.
• Implementing Listeners for user interactions.
Lecture 24: Designing Interactive GUI Applications
• Principles for interactive GUI applications.
• User experience considerations in design.
Lecture 25: Layout Managers and Custom Components
• Using Layout Managers for component arrangement.
• Developing custom components in Java Swing.
Week 6: Design Patterns and Concurrency
Lecture 26: Introduction to Software Design Patterns
• Overview of Software Design Patterns.
• Benefits and application of design patterns.
Lecture 27: Creational and Behavioral Patterns I
• Understanding the Singleton Design Pattern.
• Implementing the Command Design Pattern.
Lecture 28: Behavioral and Architectural Patterns
• Applying the Strategy Design Pattern.
• Introduction to the Three-layer architectural pattern.
Lecture 29: Model-View-Controller and Observer Patterns
• Exploring the Model-View-Controller (MVC) pattern.
• Implementing the Observer Design Pattern.
Lecture 30: Fundamentals of Multi-threading
• Introduction to Multi-threading in Java.
• Managing concurrent execution for performance.
Week 7: Advanced GUI, Concurrency, and Review
Lecture 31: Graphics Programming in Java
• Fundamentals of Graphics programming in Java.
• Drawing shapes, text, and images.
Lecture 32: Animation and Timers in GUIs
• Implementing Animation techniques in GUIs.
• Utilizing Timers for timed events and actions.
Lecture 33: Concurrency Management in GUIs
• Handling Multi-threading in graphical applications.
• Ensuring UI responsiveness with concurrency.
Lecture 34: Review of Object-Oriented Principles
• Comprehensive review of core object-oriented principles.
• Reinforcing key software design concepts.
Lecture 35: Software Design Patterns and Future Topics
• Review of various software Design Patterns.
• Discussion of advanced topics in software development.
Grading Assessment:
Assignment 1 |
15% |
Assignment 2 |
15% |
Midterm |
30% |
Final exam |
30% |
Seminar Participation |
10% |
Total |
100% |
Assignments:
Students are required to complete two major assignments (Sets of Problems) designed to reinforce and extend the concepts, methods, and applications presented in lectures. The assignments will include a combination of analytical, theoretical, and applied problems
appropriate to the subject matter of the course. Students will be expected to demonstrate clear reasoning, accurate use of relevant terminology and notation, and appropriate application of course methods to solve problems and analyze results. Where appropriate, assignments may
include mathematical derivations, computational or practical exercises, data analysis, modeling, interpretation of results, and application of concepts to real-world contexts. Students must
provide complete and well-organized solutions with sufficient explanation to demonstrate their understanding and problem-solving skills.
Attendance:
Regular attendance and active participation are expected. Students are responsible for all material covered during scheduled lectures and are expected to complete assigned work in accordance with course requirements.
Exams:
Assessments will rigorously evaluate students' mastery of object-oriented programming
principles and software design methodologies. Evaluations will include conceptual questions, problem-solving exercises, code implementation tasks, and design challenges. These will assess analytical reasoning, algorithmic application, and the ability to construct robust software
solutions in Java. The examination structure will comprise a combination of in-class tests and a comprehensive final assessment, alongside practical programming assignments.
Final Evaluation:
Letter Grade |
Percentage (%) |
Letter Grade |
Percentage |
A+ |
≥95 |
C+ |
64-67 |
A |
89-94 |
C |
60-64 |
A- |
84-88 |
C- |
56-59 |
B+ |
79-83 |
D+ |
54-56 |
B |
73-78 |
D |
50-53 |
B- |
68-72 |
F |
≤50 |
General Policies:
Academic integrity
Academic integrity is the cornerstone of academia and requires students and researchers to
maintain honesty, fairness, trust and responsibility in all academic activities. It includes not only avoiding dishonest behaviors such as plagiarism, cheating, and falsifying data, but also requires taking responsibility for one's own academic actions and ensuring that all work is done
independently and accurately cites the research of others. Violations of academic integrity can result in severe academic penalties, such as zero grades, suspension or even expulsion, and can cause serious damage to an individual's reputation and future career. Upholding academic
integrity is therefore essential to promoting a fair academic environment and facilitating the authentic dissemination of knowledge.
Accessible Resources Policy
The policy ensures that all students, especially those with disabilities, are able to participate equally in school learning and activities. The school provides a wide range of accessibility resources including, but not limited to, specialized classrooms, hearing aids, Braille textbooks, assistive technology, and flexible testing arrangements. Students are required to apply to the school in advance and provide appropriate medical or psychological evaluations so that an
individualized support plan can be developed for them. This policy is designed to remove barriers in the academic environment and to ensure that every student has access to equitable learning opportunities.
Withdrawal Policy
Students may choose to withdraw from a course within a specified period of time, and may not be able to do so after the expiration date. When withdrawing from a course, students are required to fill out a withdrawal form with a reason, which will be reviewed and processed on a case-by- case basis. Withdrawal from a course may not affect the student's academic performance. If a
student withdraws from a course with incomplete requirements, a “W” may be assigned instead of a grade, depending on the course.