<?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/"
	>

<channel>
	<title>Coen's blog &#187; Java</title>
	<atom:link href="http://blog.coenbijlsma.nl/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coenbijlsma.nl</link>
	<description>The blog of Coen Bijlsma (coenie)</description>
	<lastBuildDate>Wed, 26 May 2010 20:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>learning by cheating</title>
		<link>http://blog.coenbijlsma.nl/2008/10/29/learning-by-cheating/</link>
		<comments>http://blog.coenbijlsma.nl/2008/10/29/learning-by-cheating/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 23:31:48 +0000</pubDate>
		<dc:creator>coen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[cheating]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[trivia]]></category>

		<guid isPermaLink="false">http://blog.coenbijlsma.nl/?p=43</guid>
		<description><![CDATA[A long time ago, when I still was in high school, I sometimes tried to cheat my way out of some classes (like French, for instance). Of course, after a while, I got reasonably good at it, and that&#8217;s basically how I finished the course. I became more and more bold in other courses too, [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago, when I still was in high school, I sometimes tried to cheat my way out of some classes (like French, for instance). Of course, after a while, I got reasonably good at it, and that&#8217;s basically how I finished the course. I became more and more bold in other courses too, and after a while I got caught ( that was inevitable, of course).</p>
<p>Some time after I finished the part of high school we call &#8216;brugklas&#8217;, I came across a teacher who, to my surprise, encouraged using cheating notes. As I soon would realise, the man ment for us to create cheating notes <em>before</em> the exam, and not use them during one. That way, he said, you learn to summarize the things you need to study for that exam, and you&#8217;ll remember it, too.</p>
<p>The man was right. So, now that&#8217;s all behind me, I can use this story to do some cheating, while pretending to learn from it as well <img src='http://blog.coenbijlsma.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The cheating is about a trivia channel on irc. I&#8217;m writing a bot in Java that can parse <a title="Irssi" href="http://www.irssi.org" target="_blank">irssi</a> logfiles, and is also able to learn from the questions the trivia bot asks. The things I&#8217;m hoping to learn from this: How to simulate a human being that answers the questions (that means, among other things: do not answer every question correctly, but also that is makes some sense), and what is the nicest, most efficient way to learn questions; how do I determine the correct way to answer, etc.</p>
<p>So: $learning_by_cheating++</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.coenbijlsma.nl/2008/10/29/learning-by-cheating/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Great plans</title>
		<link>http://blog.coenbijlsma.nl/2007/12/18/great-plans/</link>
		<comments>http://blog.coenbijlsma.nl/2007/12/18/great-plans/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 10:01:31 +0000</pubDate>
		<dc:creator>coen</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[EJB]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://blog.coenbijlsma.nl/2007/12/18/great-plans/</guid>
		<description><![CDATA[In the 2nd year of my study at the HU we learned about J2EE, in particular EJB. Happy with the general idea of never writing another line of SQL, we started doing our school projects with EJB. However it&#8217;s true that you don&#8217;t write SQL, there is EJB-QL, which looks a darn lot like SQL. [...]]]></description>
			<content:encoded><![CDATA[<p>In the 2nd year of my study at the <a href="http://www.hu.nl/" title="Hogeschool Utrecht">HU</a> we learned about J2EE, in particular <a href="http://java.sun.com/products/ejb/" title="Enterprise Java Beans">EJB</a>. Happy with the general idea of never writing another line of <abbr title="Structured Query Language">SQL</abbr>, we started doing our school projects with <abbr title="Enterprise Java Beans">EJB</abbr>. However it&#8217;s true that you don&#8217;t write SQL, there is EJB-QL, which looks a darn lot like SQL.<br />
While I like the concept, I wonder if Java is the right language to use. I can&#8217;t help thinking about all the layers my poor code has to go through, and how can that ever be fast? Anyway, according to <a href="http://shootout.alioth.debian.org/" title="Computer Language Benchmarks">this</a> test, Java is way faster than PHP, which was originally intended for the web (<a href="http://en.wikipedia.org/wiki/Comparison_of_programming_languages" title="Wikipedia">Wikipedia</a> also has a nice comparison about this).</p>
<p>Strangely enough, at that time there was no framework or <a href="http://en.wikipedia.org/wiki/Abstraction_layer" title="Wikipedia Abstraction Layer">abstraction layer</a> available for PHP, so I started building one myself. The idea was for it to work like <abbr title="Enterprise Java Beans">EJB</abbr>, and the result was satisfactory. Then doom hit me, because I lost all that code <img src='http://blog.coenbijlsma.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  So now I&#8217;m going to start all over again, with a slightly different angle: I am going to write a framework that communicates with the <a href="http://framework.zend.com/" title="Zend Framework">Zend Framework</a>, but with a little extra: the Zend Framework does not provide creation and automatic querying for your objects in the database, and that&#8217;s what will be the extra in my framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.coenbijlsma.nl/2007/12/18/great-plans/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
