<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>School of Computing Forums - COS3711</title>
<description>Advanced Programming</description><link>http://osprey.unisa.ac.za/phorum/list.php?589</link><lastBuildDate>Thu, 23 May 2013 05:20:49 +0200</lastBuildDate>
<generator>Phorum 5.2.18</generator>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,173843,173843#msg-173843</guid>
<title>Tutorial letters, Past papers (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,173843,173843#msg-173843</link><description><![CDATA[ I would appreciate if anybody doing this module would kindly e-mail me tutorial letters / past papers etc.<br /><br />I am registering for it next semester, and would like to get some insight as soon as possible.<br /><br /><br />Thanks<br /><br /><a href="mailto:&#52;&#53;&#55;&#49;&#56;&#51;&#53;&#64;&#109;&#121;&#108;&#105;&#102;&#101;&#46;&#117;&#110;&#105;&#115;&#97;&#46;&#97;&#99;&#46;&#122;&#97;">&#52;&#53;&#55;&#49;&#56;&#51;&#53;&#64;&#109;&#121;&#108;&#105;&#102;&#101;&#46;&#117;&#110;&#105;&#115;&#97;&#46;&#97;&#99;&#46;&#122;&#97;</a>]]></description>
<dc:creator>bigron11</dc:creator>
<category>COS3711</category><pubDate>Wed, 16 Jan 2013 14:40:10 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,173652,173652#msg-173652</guid>
<title>Notes on Design Patterns (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,173652,173652#msg-173652</link><description><![CDATA[ I would like to know if anyone has notes on the different design patterns we do in this module. The textbook, whether it is die actual book, or the one provided by UNISA is terrible. I have seen the extra stuff on the MyUnisa site, but it is also not that helpful. Can anyone please help]]></description>
<dc:creator>Japster</dc:creator>
<category>COS3711</category><pubDate>Fri, 28 Sep 2012 20:51:38 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,171572,171572#msg-171572</guid>
<title>Exam Date (no replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,171572,171572#msg-171572</link><description><![CDATA[ Why is it that the Computer Science Exams are always at the beginning of the exam period, giving you the least amount of time to practice? Especially now since they are not year subjects but semester subjects.]]></description>
<dc:creator>wcramer</dc:creator>
<category>COS3711</category><pubDate>Mon, 23 Jul 2012 13:45:52 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,171390,171390#msg-171390</guid>
<title>Ezust libraries (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,171390,171390#msg-171390</link><description><![CDATA[ I am so battling to compile these libraries. I have tried everything.<br /><br />I get<br /><br />C:\projects\libs-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug\forms\debug\moc_dataobject.cpp:65: error: definition of static data member 'DataObject::staticMetaObjectExtraData' of dllimport'd class<br /><br />I can't see what I am doing wrong.<br />Hoping somebody can help.]]></description>
<dc:creator>JoJenkinson</dc:creator>
<category>COS3711</category><pubDate>Wed, 18 Jul 2012 13:56:03 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,170793,170793#msg-170793</guid>
<title>The Wait Is Over - Results Are Out (7 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,170793,170793#msg-170793</link><description><![CDATA[ &gt;:D&lt; This is me done, passed my final module]]></description>
<dc:creator>takadiyi</dc:creator>
<category>COS3711</category><pubDate>Tue, 03 Jul 2012 17:01:49 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,167439,167439#msg-167439</guid>
<title>May/Jun Exam Question 2 (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,167439,167439#msg-167439</link><description><![CDATA[ Holy Crap!<br /><br />Please tell me that I wasn't the only one who could not wrap my head around this question.<br />I just could not understand how to apply the visitor pattern to the rate calculation for a booking...<br />Strategy Pattern maybe, but not the visitor pattern.<br /><br />Anyone?]]></description>
<dc:creator>Kendon</dc:creator>
<category>COS3711</category><pubDate>Thu, 17 May 2012 17:22:51 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,167011,167011#msg-167011</guid>
<title>Helpful Videos (no replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,167011,167011#msg-167011</link><description><![CDATA[ Go check out very helpful videos made by MR CL PILKINGTON<br />At myUNISA<br />Location: COS3711-12-S1<br />--&gt;Additional Resources<br />--&gt;Videos<br /><br />- Abstract Factory<br />- Combining Strategy and Factory Method-<br />- Factory Method<br />- Strategy pattern]]></description>
<dc:creator>GoeS_2012</dc:creator>
<category>COS3711</category><pubDate>Sat, 12 May 2012 12:07:41 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,166501,166501#msg-166501</guid>
<title>Visitor Pattern (no replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,166501,166501#msg-166501</link><description><![CDATA[ For what it's worth, I reckon the example of Visitor pattern they gave us in the notes is wrong. It's certainly different to what you'll find on &quot;the usual culprits&quot; sites online, with that specialization of the accept() function in the object structure.<br /><br />If you track the &quot;traditional&quot; examples you'll see they work better. I'm imagining the client would have objects of (super)class Element and Visitor, and these can be assigned pointers to subtypes (by the substitutibility of subtypes, according to our good friend Xiaoping Jia). To the methods of these you just pass the right kind of pointer, in turn. In other words in the client code (as I understand it), you would choose your operation: &quot;Sort&quot; or &quot;BehaveAggressively&quot; etc. (with a generic accept() method) but from there on you can rely on the properly set up Visitor pattern to do the rest for you.<br /><br />How? Well accept(Visitor* v) always calls the same line: v -&gt; visit(this), so regardless of what <i>this</i> turns out to be you'll be using ordinary old function name overloading when your code scuttles back over to Visitor to scuttle back over to this to do its long-handed operation. You've passed the right parameter in a pretty foolproof way.<br /><br />Or am I wrong?]]></description>
<dc:creator>slow_eddy</dc:creator>
<category>COS3711</category><pubDate>Mon, 07 May 2012 19:16:07 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,166037,166037#msg-166037</guid>
<title>Oct/Nov 2011 paper (27 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,166037,166037#msg-166037</link><description><![CDATA[ ok so this is my attempt at Q1) please comment<br /><br />1.1)<br /><pre class="bbcode_geshi"><div class="head">Language: C++ (QT)</div><span class="kw2">class</span> Foo :<span class="kw2">public</span> <a href="http://doc.trolltech.com/4.2/QObject.html"><span class="kw5">QObject</span></a><span class="br0">&#123;</span>
<span class="kw2">Q_OBJECT</span>
<span class="kw2">public</span>:
	Foo<span class="br0">&#40;</span><span class="kw4">int</span> i<span class="br0">&#41;</span>;
	<span class="kw4">void</span> decrement<span class="br0">&#40;</span><span class="kw4">int</span> i<span class="br0">&#41;</span>;
	<span class="kw4">void</span> increment<span class="br0">&#40;</span><span class="kw4">int</span> i<span class="br0">&#41;</span>;
<span class="kw4">signal</span>:
	<span class="kw4">void</span> changeVal<span class="br0">&#40;</span><span class="kw4">int</span> i, Qstring changeType<span class="br0">&#41;</span>;
<span class="kw2">private</span>:
	<span class="kw4">int</span> x;
<span class="br0">&#125;</span>
&nbsp;
foo.<span class="me1">cpp</span>
	<span class="kw4">void</span> Foo::<span class="me2">decrement</span><span class="br0">&#40;</span><span class="kw4">int</span> i<span class="br0">&#41;</span><span class="br0">&#123;</span>
		x =x+i;
		emit changeVal<span class="br0">&#40;</span>x,<span class="st0">&quot;dec&quot;</span><span class="br0">&#41;</span>;
	<span class="br0">&#125;</span>
	<span class="kw4">void</span> Foo:increment<span class="br0">&#40;</span><span class="kw4">int</span> i<span class="br0">&#41;</span> <span class="br0">&#123;</span>
		x = x-i;
		emit changeVal<span class="br0">&#40;</span>x,<span class="st0">&quot;inc&quot;</span><span class="br0">&#41;</span>;
	<span class="br0">&#125;</span>
&nbsp;
&nbsp;
<span class="kw2">class</span> FooDisplay:<span class="kw2">public</span> <a href="http://doc.trolltech.com/4.2/QObject.html"><span class="kw5">QObject</span></a><span class="br0">&#123;</span>
<span class="kw2">Q_OBJECT</span>
<span class="kw2">public</span>:
	FooDisplay<span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="kw2">slots</span>:
	<span class="kw4">void</span> showChange<span class="br0">&#40;</span><span class="kw4">int</span> i, <a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a> chageType<span class="br0">&#41;</span>;
<span class="kw2">private</span>:
	<span class="kw4">int</span> x;
&nbsp;
FooDisplay.<span class="me1">cpp</span>
...
<span class="kw4">void</span> FooDisplay::<span class="me2">showChange</span><span class="br0">&#40;</span><span class="kw4">int</span> i, <a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a> changeType<span class="br0">&#41;</span> <span class="br0">&#123;</span>
	<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;inc&quot;</span><span class="br0">&#41;</span>
		<span class="kw3">cout</span> &lt;&lt; <span class="st0">&quot;Incrmenting x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
	<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;dec&quot;</span><span class="br0">&#41;</span>
		<span class="kw3">cout</span> &lt;&lt; <span class="st0">&quot;Decrementing x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
<span class="br0">&#125;</span>
...</pre><br /><br />1.2)<br /><pre class="bbcode_geshi"><div class="head">Language: C++ (QT)</div>Foo f;
FooDisplay fd;
<span class="kw2">connect</span><span class="br0">&#40;</span>&amp;f,<span class="kw4">SIGNAL</span><span class="br0">&#40;</span>changeVal<span class="br0">&#40;</span><span class="kw4">int</span>,<a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a><span class="br0">&#41;</span><span class="br0">&#41;</span>,&amp;fb,SLOT<span class="br0">&#40;</span>showChange<span class="br0">&#40;</span><span class="kw4">int</span>,<a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a><span class="br0">&#41;</span>;
f.<span class="me1">incrment</span><span class="br0">&#40;</span><span class="nu0">10</span><span class="br0">&#41;</span>;
f.<span class="me1">decremet</span><span class="br0">&#40;</span><span class="nu0">5</span><span class="br0">&#41;</span>;</pre><br /><br />1.3)<br />in FooDisplay.h Change and remove showChange implementation from the cpp<br /><pre class="bbcode_geshi"><div class="head">Language: C++ (QT)</div><span class="kw2">virtual</span> <span class="kw4">void</span> showChange<span class="br0">&#40;</span><span class="kw4">int</span> i,<a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a> outType<span class="br0">&#41;</span>=<span class="nu0">0</span>;</pre><br /><br />1.4)<br /><pre class="bbcode_geshi"><div class="head">Language: C++ (QT)</div><span class="kw2">class</span> OutConsole:<span class="kw2">public</span> FooDisplay <span class="br0">&#123;</span>
<span class="kw2">public</span>:
	OutConsole<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><span class="br0">&#125;</span>
	<span class="kw4">void</span> showChange<span class="br0">&#40;</span><span class="kw4">int</span> i, QSTring changeType<span class="br0">&#41;</span> <span class="br0">&#123;</span>
	<a href="http://doc.trolltech.com/4.2/QTextStream.html"><span class="kw5">QTextStream</span></a> <span class="kw3">cout</span><span class="br0">&#40;</span><span class="kw2">stdout</span><span class="br0">&#41;</span>; <span class="co1">//send it to console with this concrete class</span>
		<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;inc&quot;</span><span class="br0">&#41;</span>
		<span class="kw3">cout</span> &lt;&lt; <span class="st0">&quot;Incrmenting x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
		<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;dec&quot;</span><span class="br0">&#41;</span>
		<span class="kw3">cout</span> &lt;&lt; <span class="st0">&quot;Decrementing x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
	<span class="br0">&#125;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw2">class</span> OutFile:<span class="kw2">public</span> FooDisplay <span class="br0">&#123;</span>
	<span class="kw4">void</span> showChange<span class="br0">&#40;</span><span class="kw4">int</span> i, QSTring changeType<span class="br0">&#41;</span> <span class="br0">&#123;</span>
		<a href="http://doc.trolltech.com/4.2/QFile.html"><span class="kw5">QFile</span></a> f<span class="br0">&#40;</span><span class="st0">&quot;random.txt&quot;</span><span class="br0">&#41;</span>
		f.<span class="me1">open</span><span class="br0">&#40;</span><a href="http://doc.trolltech.com/4.2/QFile.html"><span class="kw5">QFile</span></a>::<span class="me2">writeonly</span><span class="br0">&#41;</span>;
		<a href="http://doc.trolltech.com/4.2/QTextStream.html"><span class="kw5">QTextStream</span></a> fout<span class="br0">&#40;</span>&amp;f<span class="br0">&#41;</span>; <span class="co1">//send it to file with this concrete class</span>
&nbsp;
		<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;inc&quot;</span><span class="br0">&#41;</span>
		fout &lt;&lt; <span class="st0">&quot;Incrmenting x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
		<span class="kw1">if</span> <span class="br0">&#40;</span>changeType==<span class="st0">&quot;dec&quot;</span><span class="br0">&#41;</span>
		fout &lt;&lt; <span class="st0">&quot;Decrementing x &quot;</span>&lt;&lt;i&lt;&lt;<span class="st0">&quot;<span class="es0">\n</span>&quot;</span>;
		f.<span class="me1">close</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
	<span class="br0">&#125;</span>
&nbsp;
<span class="br0">&#125;</span></pre><br /><br />1.5)<br /><pre class="bbcode_geshi"><div class="head">Language: C++ (QT)</div>FooDisplay* foodistCon = <span class="kw3">new</span> OutConsole<span class="br0">&#40;</span><span class="br0">&#41;</span>; <span class="co1">// stratergy Console</span>
FooDisplay* foodistFile = <span class="kw3">new</span> OutFile<span class="br0">&#40;</span><span class="br0">&#41;</span>; <span class="co1">// stratergy File</span>
Foo f;
connnect<span class="br0">&#40;</span>&amp;f,<span class="kw4">SIGNAL</span><span class="br0">&#40;</span>changeValue<span class="br0">&#40;</span><span class="kw4">int</span>,<a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a><span class="br0">&#41;</span>,foodistCon<span class="br0">&#40;</span><span class="kw4">int</span>,Qstring<span class="br0">&#41;</span><span class="br0">&#41;</span>;
connnect<span class="br0">&#40;</span>&amp;f,<span class="kw4">SIGNAL</span><span class="br0">&#40;</span>changeValue<span class="br0">&#40;</span><span class="kw4">int</span>,<a href="http://doc.trolltech.com/4.2/QString.html"><span class="kw5">QString</span></a><span class="br0">&#41;</span>,foodistFile<span class="br0">&#40;</span><span class="kw4">int</span>,Qstring<span class="br0">&#41;</span><span class="br0">&#41;</span>;</pre>]]></description>
<dc:creator>Vampyre</dc:creator>
<category>COS3711</category><pubDate>Mon, 04 Jun 2012 13:36:02 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,165983,165983#msg-165983</guid>
<title>Exam preps ? (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,165983,165983#msg-165983</link><description><![CDATA[ So exams are few weeks away, how are the preps going ?<br /><br />My second attempt at this exam damn it was a cracker last semester wowzer! want to make 100% sure I nail it , anyone started with the past papers ? And what's the experience so far ?]]></description>
<dc:creator>Vampyre</dc:creator>
<category>COS3711</category><pubDate>Mon, 30 Apr 2012 13:13:34 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,162048,162048#msg-162048</guid>
<title>Text Files (4 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,162048,162048#msg-162048</link><description><![CDATA[ Where does one place a text file(eg. Items.txt) in a QT project. Ives tried &quot;new&quot; , &quot;Text file&quot; but no luck. Please help. Thanks.]]></description>
<dc:creator>nirenu</dc:creator>
<category>COS3711</category><pubDate>Sun, 19 Feb 2012 13:35:41 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,160983,160983#msg-160983</guid>
<title>Jozi JUG 2012 Calendar of Events (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,160983,160983#msg-160983</link><description><![CDATA[ Hi all<br /><br />The Jozi Java User Group gets together on the last Monday of every month for food, drink and a technical presentation. Attendance is free and it's a great way to network and find mentors!<br /><br />Here is the 2012 calendar of events. As more details become available we'll update this post.<br /><br />Hope to see you there! <b>For those who can't make it in person, we'll be streaming the events live: [<a href="http://www.ustream.tv/channel/jozi-jug" rel="nofollow">www.ustream.tv</a>]</b><br /><br />Mailing list - [<a href="http://groups.google.com/group/jozijug" rel="nofollow">groups.google.com</a>]<br />Facebook - [<a href="http://www.facebook.com/groups/2395347656/" rel="nofollow">www.facebook.com</a>]<br />Meetup - [<a href="http://www.meetup.com/Jozi-JUG/" rel="nofollow">www.meetup.com</a>]<br />Website - [<a href="http://www.jozijug.co.za" rel="nofollow">www.jozijug.co.za</a>]<br /><br /><b>2012</b><br />30 January - Prolog - Pavel Tcholakov<br />27 February - Highly available clustered apps on Amazon Web services - Tomek<br />26 March - JRuby - Christopher Spring<br />30 April – Android - Toby Kurien<br />28 May – Java Concurrency (how to find, solve and test deadlocks) - Dr Heinz Kabutz<br />25 June - Functional Programming - Andreas Pauley]]></description>
<dc:creator>michaelw13</dc:creator>
<category>COS3711</category><pubDate>Wed, 29 Aug 2012 10:15:44 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,160939,160939#msg-160939</guid>
<title>Compile errors (2 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,160939,160939#msg-160939</link><description><![CDATA[ Hi peeps<br /><br />been trying to compile some code and get the following errors<br /><br />debug/codevisitor.o: In function `CodeVisitor':<br />C:\projects\src\visitor\codevisitor-build-desktop/../codevisitor/codevisitor.cpp:9: undefined reference to `_imp___ZN11FileVisitor10setFiltersE11QStringList'<br />C:\projects\src\visitor\codevisitor-build-desktop/../codevisitor/codevisitor.cpp:9: undefined reference to `_imp___ZN11FileVisitor10setFiltersE11QStringList'<br />C:\projects\src\visitor\codevisitor-build-desktop/../codevisitor/codevisitor.cpp:13: undefined reference to `_imp___ZN11FileVisitorC2E11QStringListbb'<br />C:\projects\src\visitor\codevisitor-build-desktop/../codevisitor/codevisitor.cpp:13: undefined reference to `_imp___ZN11FileVisitorC2E11QStringListbb'<br />collect2: ld returned 1 exit status<br />mingw32-make[1]: *** [debug\codevisitor.exe] Error 1<br /><br />same when compiling the utils<br />c:\projects\libs\customer/customer.cpp:4: undefined reference to `_imp___ZN10Dat<br />aObjectC2EP7QObject'<br />c:\projects\libs\customer/customer.cpp:4: undefined reference to `_imp___ZN10Dat<br />aObjectC2EP7QObject'<br /><br />anyone with any insite ?<br /><br />thanks in advance]]></description>
<dc:creator>Vampyre</dc:creator>
<category>COS3711</category><pubDate>Sat, 28 Jan 2012 18:52:23 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?589,160925,160925#msg-160925</guid>
<title>CommandLine Arguments (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?589,160925,160925#msg-160925</link><description><![CDATA[ Anyone with a simple elegant explanation of what commandlines are and how are used?<br />Thanks]]></description>
<dc:creator>African Boy</dc:creator>
<category>COS3711</category><pubDate>Sun, 19 Feb 2012 19:36:32 +0200</pubDate></item>
</channel>
</rss>