<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Tortured Tutor</title>
	<atom:link href="http://torturedtutor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://torturedtutor.wordpress.com</link>
	<description>Funny snippets from computer science students</description>
	<lastBuildDate>Fri, 12 Feb 2010 14:20:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='torturedtutor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Tortured Tutor</title>
		<link>http://torturedtutor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://torturedtutor.wordpress.com/osd.xml" title="The Tortured Tutor" />
	<atom:link rel='hub' href='http://torturedtutor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Master of time</title>
		<link>http://torturedtutor.wordpress.com/2010/02/12/master-of-time/</link>
		<comments>http://torturedtutor.wordpress.com/2010/02/12/master-of-time/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 14:20:04 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They mean to be funny]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=30</guid>
		<description><![CDATA[I think this comment is unintentionally very amusing: Filed under: They mean to be funny Tagged: comment, funny, java, time<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=30&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think this comment is unintentionally very amusing:<br />
<pre class="brush: java;">/**
 * {@code MyTimer} manages time.&lt;br&gt;
 * &lt;b&gt;Collaborations:&lt;/b&gt;&lt;br&gt;
 * &lt;i&gt;none&lt;/i&gt;
 */
public class MyTimer extends JLabel implements ActionListener {
   // ...
}</pre></p>
<br />Filed under: <a href='http://torturedtutor.wordpress.com/category/they-mean-to-be-funny/'>They mean to be funny</a> Tagged: <a href='http://torturedtutor.wordpress.com/tag/comment/'>comment</a>, <a href='http://torturedtutor.wordpress.com/tag/funny/'>funny</a>, <a href='http://torturedtutor.wordpress.com/tag/java/'>java</a>, <a href='http://torturedtutor.wordpress.com/tag/time/'>time</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=30&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2010/02/12/master-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Weird widget adapter</title>
		<link>http://torturedtutor.wordpress.com/2010/02/05/weird-widget-adapter/</link>
		<comments>http://torturedtutor.wordpress.com/2010/02/05/weird-widget-adapter/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:13:17 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They didn&#039;t understand]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[encapsulation]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=27</guid>
		<description><![CDATA[I&#8217;m still not really sure what misconception lead to this class: I can&#8217;t comprehend why they didn&#8217;t just extend JTextField to add their methods instead of doing this weird wrapping. This violation of encapsulation principles really hurts somehow. Filed under: They didn&#039;t understand Tagged: adapter, encapsulation, java, stupid<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=27&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still not really sure what misconception lead to this class:</p>
<p><pre class="brush: java;">
public class StatusBar {
   private JTextField status;

   public void setStatus (String status) {
      this.status.setText(status);
   }
   public void clearStatus () {
      this.status.setText(&quot;&quot;);
   }
   public JTextField getStatus () {
      return this.status;
   }
}
</pre><br />
I can&#8217;t comprehend why they didn&#8217;t just extend <code>JTextField</code> to add their methods instead of doing this weird wrapping. This violation of encapsulation principles really hurts somehow.</p>
<br />Filed under: <a href='http://torturedtutor.wordpress.com/category/they-didnt-understand/'>They didn&#039;t understand</a> Tagged: <a href='http://torturedtutor.wordpress.com/tag/adapter/'>adapter</a>, <a href='http://torturedtutor.wordpress.com/tag/encapsulation/'>encapsulation</a>, <a href='http://torturedtutor.wordpress.com/tag/java/'>java</a>, <a href='http://torturedtutor.wordpress.com/tag/stupid/'>stupid</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=27&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2010/02/05/weird-widget-adapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Not much time</title>
		<link>http://torturedtutor.wordpress.com/2010/02/05/not-much-time/</link>
		<comments>http://torturedtutor.wordpress.com/2010/02/05/not-much-time/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 15:03:58 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[Have mercy with me]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=24</guid>
		<description><![CDATA[I just found this within a sourcecode comment a student team handed in: Sorry, but we had not much time this week, so our implementation is more or less garbage. I&#8217;m not really sure, if I should look into the sourcecode at all or just take their own assessment&#8230; Addition: I should have taken their [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=24&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just found this within a sourcecode comment a student team handed in:</p>
<blockquote><p>Sorry, but we had not much time this week, so our implementation is more or less garbage.</p></blockquote>
<p>I&#8217;m not really sure, if I should look into the sourcecode at all or just take their own assessment&#8230;</p>
<h4>Addition:</h4>
<p>I should have taken their remark for real&#8230;they actually did nothing except extracting anonymous classes into explicit ones&#8230;<strong><br />
</strong></p>
<br />Filed under: <a href='http://torturedtutor.wordpress.com/category/have-mercy-with-me/'>Have mercy with me</a> Tagged: <a href='http://torturedtutor.wordpress.com/tag/comment/'>comment</a>, <a href='http://torturedtutor.wordpress.com/tag/stupid/'>stupid</a>, <a href='http://torturedtutor.wordpress.com/tag/time/'>time</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=24&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2010/02/05/not-much-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Were we supposed to&#8230;</title>
		<link>http://torturedtutor.wordpress.com/2010/01/19/were-we-supposed-to/</link>
		<comments>http://torturedtutor.wordpress.com/2010/01/19/were-we-supposed-to/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:13:17 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They didn&#039;t understand]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=22</guid>
		<description><![CDATA[Last week my students had to solve a very basic exercise concerning the MVC pattern. After almost one week time to work on that and ask questions a student approached me after I explained the observer pattern in class: &#8220;Were we supposed to use the observer pattern in this exercise?&#8221; I replied with the question [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=22&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week my students had to solve a very basic exercise concerning the MVC pattern. After almost one week time to work on that and ask questions a student approached me after I explained the observer pattern in class:</p>
<p>&#8220;Were we supposed to use the observer pattern in this exercise?&#8221;</p>
<p>I replied with the question how he managed to use MVC pattern without it and he said that his solution works. Well, yes. It works. But there is no way of adding a second, third, &#8230; view. And again I ask myself why they do not understand the most basic things&#8230;</p>
<br />Posted in They didn&#039;t understand Tagged: java, mvc, pattern, stupid <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=22&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2010/01/19/were-we-supposed-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Keep looping</title>
		<link>http://torturedtutor.wordpress.com/2009/11/28/keep-looping/</link>
		<comments>http://torturedtutor.wordpress.com/2009/11/28/keep-looping/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 22:41:42 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They didn&#039;t understand]]></category>
		<category><![CDATA[iterator]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[lightweight]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=11</guid>
		<description><![CDATA[Another funny implementation of the line iterator mentioned before. Those two did not at all understand the concept of lightweight associated with an iterator. Each call of next() or hasNext() resulted in a call of this method: Well, there are a lot of grave mistakes in here, too. But imagine this method called every time! [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=11&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Another funny implementation of the line iterator <a title="Entry &quot;Not in use&quot;" href="http://torturedtutor.wordpress.com/2009/11/28/not-in-use/">mentioned before</a>. Those two did not at all understand the concept of lightweight associated with an iterator. Each call of <code>next()</code> or <code>hasNext()</code> resulted in a call of this method:<br />
<pre class="brush: java;">public String getLineAtPosition (int index) {
    FileInputStream dataFile = new FileInputStream(this.fileName);
    byte[] buffer = new byte[1];
    String data = &quot;&quot;;

    while ((dataFile.available() != 0) &amp;&amp; (index != 0)) {
        dataFile.read(buffer);
        data += (char) buffer[0];
        if (lineBreak(data)) {
            index--;
            data = &quot;&quot;;
        }
    }
    if (dataFile.available() == 0) {
        return &quot;Insufficient data.&quot;;
    }
    while (dataFile.available() != 0) {
        dataFile.read(buffer);
        data += (char) buffer[0];
        if (lineBreak(data)) {
            data = noLineBreak(data);
            break;
        }
    }
    return data;
}</pre><br />
Well, there are a lot of grave mistakes in here, too. But imagine this method called every time! A test case reading Goethe&#8217;s &#8220;Zauberlehrling&#8221; (111 lines) took almost a minute to finish&#8230;</p>
<br />Posted in They didn&#039;t understand Tagged: iterator, java, lightweight, performance, stupid, while <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=11&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2009/11/28/keep-looping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Not in use</title>
		<link>http://torturedtutor.wordpress.com/2009/11/28/not-in-use/</link>
		<comments>http://torturedtutor.wordpress.com/2009/11/28/not-in-use/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 22:27:37 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They didn&#039;t understand]]></category>
		<category><![CDATA[iterator]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=9</guid>
		<description><![CDATA[This was handed in as an implementation of a class, which allows iterating the lines of a file one by one. Of course, the students were supposed to use the Iterator interface from the Java library. I wonder if they even bothered to look at the documentation at all. Posted in They didn&#039;t understand Tagged: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=9&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This was handed in as an implementation of a class, which allows iterating the lines of a file one by one. Of course, the students were supposed to use the <a title="Java API entry" href="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html">Iterator interface</a> from the Java library.<br />
<pre class="brush: java;">/**
 * not in use
 */
public boolean hasNext() {
    return false;
}</pre><br />
I wonder if they even bothered to look at the documentation at all.</p>
<br />Posted in They didn&#039;t understand Tagged: iterator, java, stupid <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=9&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2009/11/28/not-in-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
		<item>
		<title>Supposed to be funny?</title>
		<link>http://torturedtutor.wordpress.com/2009/11/28/supposed-to-be-funny/</link>
		<comments>http://torturedtutor.wordpress.com/2009/11/28/supposed-to-be-funny/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 22:14:46 +0000</pubDate>
		<dc:creator>torturedtutor</dc:creator>
				<category><![CDATA[They mean to be funny]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[invariant]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://torturedtutor.wordpress.com/?p=7</guid>
		<description><![CDATA[I found this comment within a solution to an exercise, which was meant to instruct on formulating an object invariant: Posted in They mean to be funny Tagged: funny, invariant, java<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=7&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found this comment within a solution to an exercise, which was meant to instruct on formulating an <a title="Article at Wikipedia" href="http://en.wikipedia.org/wiki/Object_invariant">object invariant</a>:</p>
<p><pre class="brush: java;">// invariant: we don't guarantee anything</pre></p>
<br />Posted in They mean to be funny Tagged: funny, invariant, java <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torturedtutor.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torturedtutor.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torturedtutor.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torturedtutor.wordpress.com&amp;blog=10718244&amp;post=7&amp;subd=torturedtutor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torturedtutor.wordpress.com/2009/11/28/supposed-to-be-funny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa4c07a936df7d790fe2e2415ca11649?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Tortured Tutor</media:title>
		</media:content>
	</item>
	</channel>
</rss>
