/!\ It was found that many of the students had not done Java B. This will result in difficulties in understanding the basic concepts of object orientation that form the bases of this assignment. However this assignment is to help you to get a better understanding and hopefully to use object-oriented thinking elsewhere in your design, so lets lower our ambitions a bit, and focus only on the essence of object-orientated analysis and design. Also due to the limited time, [#dp the sencond half] of this assignment, that is, design patterns, will be only an introduction. The individual task has been adjusted accordingly.

TableOfContents

(!) Owning a hammer doesn't make one an architect.

Introduction

So you have done Java A and even B. Congratulations. Have you also found that Java offers something that is more than a programming language? With this assignment, we will try to wrap up your knowledge about Java, or any other object-oriented programming language you know (C++, Object Pascal, Python, Ruby ...), to get the essence of object orientation, to turn yourself from a craftsman back to a designer: Use object orientation as a tool to slice the complex into the simple, and put them back again in a structured way.

Schedule

<project xmlns:pg="http://www.logilab.org/namespaces/pygantt_docbook" id="monprojet">
<label>Object Orientation and Design Patterns</label>
<task id="uml">
  <label>Introduction to UML</label>
  <task id="lecture1">
    <label>Lecture: Introduction to UML</label>
    <duration>1</duration>
    <constraint type="begin-after-date">2005/02/21</constraint>
  </task> 
  <task id="task1">
    <label>Task 1: Practice UML diagrams</label>
    <duration>10</duration>
    <constraint type="begin-after-date">2005/02/21</constraint>
  </task>
</task>
<task id="ooad">
  <label>OOA and OOD</label> 
  <task id="lecture2">
    <label>Lecture: Object Reloaded</label>
    <duration>1</duration>
    <constraint type="begin-after-date">2005/03/07</constraint>
  </task>
  <task id="task2">
    <label>Task 2: Modeling your product</label>
    <duration>10</duration>
    <constraint type="begin-after-date">2005/03/07</constraint>
  </task>
  <task id="presentation1">
    <label>Presentation: result of Task2</label>
    <duration>1</duration>
    <constraint type="begin-after-date">2005/03/21</constraint>
  </task>
</task>
<task id="dp">
  <label>Design Patterns</label>
  <task id="lecture3">
    <label>Lecture: Design Patterns I</label>
    <duration>1</duration>
    <constraint type="begin-after-date">2005/03/14</constraint>
  </task>
  <task id="lecture4">
    <label>Lecture: Design Patterns II</label>
    <duration>1</duration>
    <constraint type="begin-after-date">2005/04/04</constraint>
  </task>
  <task id="task3">
    <label>Task 3: Redesign your software</label>
    <duration>10</duration>
    <constraint type="begin-after-date">2005/03/21</constraint>
  </task>
</task>
<task id="deadline">
  <label>Final deliverable: Deadline</label> 
  <duration>1</duration>
  <constraint type="begin-after-date">2005/04/06</constraint>
</task>
</project>
Week 1
  • Lecture: An introduction to UML (21-02 15.45-17.30 HG 2.80)
    • [attachment:UMLintro_presentation.pdf Slides], for viewing on screen
    • [attachment:UMLintro_handouts.pdf Handouts], for printing, with additional details
  • Reading:
  • <!> Task 1, to be finished in 2 weeks:

    Week 2
  • No lectures.
  • <!> Continue Task 1.

  • Week 3
  • Lecture: Object Reloaded (OOA & OOD) (07-03 15.45-17.30 HG 2.80)

    • [attachment:OO_presentation.pdf Slides], for viewing on screen
    • [attachment:OO_handouts.pdf Handouts], for printing
  • Reading:
  • <!> Task 2, to be finished in 2 weeks:

    • Modeling ( /!\ not programming) a product designed by yourself, using use case diagrams, class diagrams, sequence diagrams and activity diagrams.

  • Anchor(dp)

    Week 4
  • Lecture: Design Patters I: Iterator, Composite, Factory ... (14-03 15.45-17.30 HG 2.80)
    • [attachment:DP_presentation.pdf Slides], for viewing on screen
    • [attachment:DP_handouts.pdf Handouts], for printing, with additional details
      • Students reported difficulties in understanding when to use which diagrams, and a talk was given instead of the lectcure about design patterns.
  • Reading: [http://www.patterndepot.com/put/8/JavaPatterns.htm The Design Patterns java Companion]

    • You may also refer to the following famous books (if you are lucky, you may grab a copy from the university library):
      • GoF: [#Gamma+HelmETAL-DesiPattElemReus:95 Design Patterns -- Elements of Reusable Object-oriented Software]

      • POSA 1: [#BUSCHMANN:1996 Pattern-Oriented Software Architecture, Volume 1: A System of Patterns]

      • POSA 2: [#Schmidt+StalETAL-PattSoftArchVolu:00 Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects]

    • [attachment:Non-SoftwarePatterns.pdf Non-Software Examples of Software Design Patterns (PDF)] by Michael Duell. A bit old (1998), but if you can't manage to understand the design patterns in Java, this artical may help.

  • <!> Continue Task 2.

  • Week 5
  • No lectures.
  • Presentation: Everybody gets 5 minutes to present the results of Task 2. (21-03 15.45-17.30 HG 2.80)
  • <!> Task 3, to be finished in 2 weeks

    • Find a program you wrote before, for example, the program you wrote for Java A or Java B, or any other programs in any language

    • Read your program again.
    • Now, how would you like to impprove your design using a object-oriented approach?
      • Show me your original code,
      • identify the problems if there is any,
      • redesign it using object-oriented approach,
      • apply design patterns in your desgin,
      • try to communicate your object-oriented new desgin with me using UML diagrams.

        /!\ Implementation of your new design is appreciated, but not obligatory.

    Week 6
  • No Lectures
  • <!> Continue Task 3

  • Week 7
  • Lecture: Design Patterns II: Decorator, Visitor (04-04 15.45-17.30 HG 2.80)
  • Feedback, Q&A

  • Final deliverables

    Anchor(mustread)

    Must read

    Online Resources

    References