Welcome! Log In Create A New Profile

Advanced

Design Patterns

Posted by Duncan 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Design Patterns
November 09, 2009 10:35AM
On Page 3 of Tut104 it states (in bold) that the focus of this years exam (reduced from 3hrs to 2hrs - a whole hour less of brain cell massacre!) will be on Design Patterns.

I found quite a good resource on Design Patterns here;

http://www.vincehuston.org/dp/

Good luck.

Duncan
Re: Design Patterns
November 10, 2009 07:59PM
Yes, interesting and helpful.
Thanks.
Re: Design Patterns
November 11, 2009 08:26AM
Thanks for that Duncan. I reckon especially when it comes to the understanding of the patterns, the more info you have to work with the better.
Re: Design Patterns
November 12, 2009 10:15AM
Looking at last year's exam. there didn't seem too much asked on Design Patterns. But the bit there was didn't seem too bad.
Re: Design Patterns
November 12, 2009 10:32AM
Don't be fooled - COS311-4 is all about design patterns...

For example: Question 1. You have to rewrite the class using signals and slots.
Yes, signals and slots is Qt stuff, but don't forget that you need to apply the design patterns!! Singleton pattern for Count class - as there should only be one instance. It's easy to miss it because it's not stated.

Don't be tricked!! Think PATTERNS PATTERNS PATTERNS!!!

Anyone else agrees?
Anonymous User
Re: Design Patterns
November 12, 2009 11:13AM
I agree. Also, I wager R100 that we get a singleton in the exam smiling smiley
Re: Design Patterns
November 12, 2009 12:45PM
My money is on Singlteton AND Visitor
Anonymous User
Re: Design Patterns
November 12, 2009 01:34PM
avatar Re: Design Patterns
November 12, 2009 10:53PM
Well, we're definitely going to get the Observer pattern smile. It's one of the fundamental implimentations that Qt makes.
Re: Design Patterns
November 13, 2009 05:11AM
Yes, observer too. Signal and slots, communication between objects.
Singleton - one instance
Visitor - separation of traversing and processing code

But then there are actually a couple of other ones that we also spent time on during the year
Serializer - the writing and reading of data
Composite - parent-children (QObject)
Anonymous User
Re: Design Patterns
November 13, 2009 10:18AM
I think the observer pattern will be covered by a question involving signals and slots
avatar Re: Design Patterns
November 14, 2009 11:11PM
Hey everyone, wrt Question 1.

Why do we have to implement the singleton design pattern?

Surely it's enough to create a count class with a private int counter.

Also it looks like Question 3 tests the singleton design pattern.

Am I missing something obvious?
Anonymous User
Re: Design Patterns
November 17, 2009 08:45AM
This is might be helpful on patterns

http://sourcemaking.com/design_patterns
Anonymous User
Re: Design Patterns
November 18, 2009 12:03PM
Another one on the growing set of links http://norvig.com/design-patterns/

A bunch of html slides that provide concise summaries of various design patterns and other stuff
avatar
Rey
Re: Design Patterns
November 19, 2009 09:30AM
woops wrong QThread.

----
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
"Time is a great teacher, but unfortunately it kills all its pupils ..." - Louis Hector Berlioz
I think animal testing is a terrible idea; they get all nervous and give the wrong answers.
Re: Design Patterns
November 19, 2009 05:01PM
Can anyone please confirm that the Serializer Pattern is a Behavioural pattern? ...or am I on the wrong track
avatar
Rey
Re: Design Patterns
November 19, 2009 05:47PM
I thought it was freestanding? Combining Behavioural (memento,visitor), Structural (composite), and creational (Abstract factory) patterns in its implementation of concrete creation of classes and writing to file/stream.

http://dirkriehle.com/computer-science/research/1996/plop-1996-serializer.html

----
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
"Time is a great teacher, but unfortunately it kills all its pupils ..." - Louis Hector Berlioz
I think animal testing is a terrible idea; they get all nervous and give the wrong answers.
Anonymous User
Re: Design Patterns
November 19, 2009 09:09PM
I don't think serializer is a "main" pattern and is a combo of other patterns like Rey said. It's not in the GOF book of "main" patterns
Re: Design Patterns
November 19, 2009 10:09PM
Thanks
avatar
Rey
Re: Design Patterns
November 20, 2009 08:32AM
http://patterns.cs.up.ac.za/UMLdiagrams.shtml

----
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
"Time is a great teacher, but unfortunately it kills all its pupils ..." - Louis Hector Berlioz
I think animal testing is a terrible idea; they get all nervous and give the wrong answers.
Sorry, only registered users may post in this forum.

Click here to login