<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://www.johnkleijn.nl/feeds/atom.xml" rel="self" title="John Kleijn" type="application/atom+xml" />
    <link href="http://www.johnkleijn.nl/"                        rel="alternate"    title="John Kleijn" type="text/html" />
    <link href="http://www.johnkleijn.nl/rss.php?version=2.0"     rel="alternate"    title="John Kleijn" type="application/rss+xml" />
    <title type="html">John Kleijn</title>
    <subtitle type="html">Cogito ergo sum, baby</subtitle>
    <icon>http://www.johnkleijn.nl/templates/default/img/s9y_banner_small.png</icon>
    <id>http://www.johnkleijn.nl/</id>
    <updated>2010-07-26T13:30:43Z</updated>
    <generator uri="http://www.s9y.org/" version="1.5.2">Serendipity 1.5.2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.johnkleijn.nl/2010/Story-Doctrine-2-lead-up" rel="alternate" title="Story: Doctrine 2 lead up" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-07-23T08:33:21Z</published>
        <updated>2010-07-26T13:30:43Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=38</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=38</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2010/38</id>
        <title type="html">Story: Doctrine 2 lead up</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">I had been waiting for PHP 5.3 for a long time, and looking at the progress for Zend Framework 2.0, I got very frustrated. But it made me keep a closer eye on the ZF Wiki, and when I encountered a proposal for Zend_Db_Mapper, I recognized many of the PoEAA patterns I had abandoned for reasons of practicality, but longed for so much. But the work was far from done, so I emailed the proposer, Benjamin Eberlei, on 19 December last year, offering my assistance. He responded..
</p><blockquote><p class="whiteline">Hello John,
</p><p class="break">I stopped to work on Zend Entity (and Db Mapper) when we realized that</p><p class="break">it actually would end up being sort of a clone of the Doctrine 2 project,</p><p class="break">so we joined forces and we will see some pretty neat ZF and Doctrine 1 /2</p><p class="whiteline">integration very soon.
</p><p class="break">you are always welcome to contribute to doctrine 2, its quite advanced</p><p class="whiteline">already.
</p><p class="break">greetings,</p><p class="break">Benjamin</p></blockquote><p>
</p><p class="whiteline">I was very disappointed. Zend Framework has a certain robustness, a defensiveness, that I've come to expect (although around this same time ZF started to disappoint in this regard). Doctrine, to me, was superior in functionality to Zend_Db_Table, but it definitely lacked defensiveness. It was messy. And "you can't build a palace on a pile of shit", the lesson I extracted from my experience with the SilverStripe CMS.
</p><p class="whiteline">I responded to Benjamin expressing my disappointment and lack of faith in the quality of Doctrine. And even though he responded with assurances that Doctrine 2 was very different from Doctrine 1, I remained skeptical and disappointed.
</p><p class="whiteline">Some months passed, and eventually I did have another look at D2, which had reached the last Alpha stage. I didn't really look at the docs, I assumed that it would be better than D1, but remained skeptical. Regardless, a bleak hope of "a better Doctrine" started to glimmer, and I started to investigate. I quickly came across <a href="http://www.slideshare.net/jwage/doctrine-2-not-the-same-old-php-orm">this presentation</a> by Jonathan Wage. He had me at "completely rewritten", but going on to "kill the magic", it really caught my attention. The "magic" had annoyed me greatly, as it is very inflexible, a source of unclear execution flow, and perhaps the primary source of the lack of defensiveness in D1. Going on to replace the magic with proper OO principles, I was sold. This Doctrine was indeed better, <strong>fundamentally</strong> better. There was more to the presentation, but it was just icing on the cake. The realization that it was still in alpha, tempered my enthusiasm enough to let it be.
</p><p class="whiteline">Then I came across a project, that had the need for composite objects in a hierarchal structure, that needed to be persistent. Given the possible nesting level of these structures, I needed something that doesn't require many round trips to the database. Enter Nested Set (aka "Modified Preorder Tree Traversal"). Doctrine 1 does support that, but as it turned out, the combination of inheritance using "column aggregation" and nested set, was asking too much. This was mostly due to the poor inheritance mapping in D1. In desperation (and remembering a promise of "better support for inheritance"), I looked at the latest release of Doctrine, which turned out to be 2.0 BETA1. I was pleased the project had finally reached beta status, and started looking at the docs. I became more and more convinced that it was doable to rip out the guts of the application and replace it with D2.
</p><p class="whiteline">This was a daunting task though, and I did underestimate it. I ended up namespacing the whole application, creating my own Nested Set implementation for use with D2, and overall just making mayor changes to the application. It put mayor stress on the deadline and myself, especially halfway through. But, the end result seemed worth it, and I am truly impressed with Doctrine 2. 
</p><p class="whiteline">Another thing I am anticipation of is Symfony 2. I never cared much for S1, but I had a look at S2 and it looks pretty good. It relies pretty heavily on DI, another prerequisite for effective Domain Driven Development. Regrettably it won't reach beta until next year. Fabien Potencier apparently coined the expression "kill the magic", and <a href="http://www.symfony-project.org/blog/2009/10/27/why-will-symfony-2-0-finally-use-php-5-3">seems as impressed</a> with D2 as I am:
</p><blockquote><p class="break">And man, Doctrine 2.0 is gorgeous. Doctrine 2.0 is one of best things that's happened to PHP in a long time.</p></blockquote> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Why-you-cant-or-shouldnt-unserialize-exceptions" rel="alternate" title="Why you can't (or shouldn't) unserialize exceptions" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-05-07T10:52:07Z</published>
        <updated>2010-05-07T10:52:07Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=32</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/TDD" label="TDD" term="TDD" />
    
        <id>http://www.johnkleijn.nl/2010/32</id>
        <title type="html">Why you can't (or shouldn't) unserialize exceptions</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Sorry for not posting much, I'm insanely busy, but I can squeeze in a quick post. I already lost lots of time on the topic of this post, so I might as well take 10 minutes more and explain.
</p><p class="whiteline">I develop using TDD, using PHPUnit. I (usually) use Zend Framework in combination with Doctrine. To be a 100% sure tests are completely isolated, PHPUnit has a nice feature called "Process Isolation", which means as much as that every test is run in its own environment. To get the result of the test into the main environment, PHPUnit serializes and unserializes the "test result" object. Which is fine, I couldn't think of another way to do it.
</p><p class="whiteline">But, this test result object may include failures, in which case the exception(s) are attached. Which is a problem. A few lines of code is worth a thousand words, so here you go:
</p><p class="break">jkleijn@goliath:~$ php -a</p><p class="whiteline">Interactive shell
</p><p class="break">php > class Argument { function __wakeup() { throw new LogicException; }}</p><p class="break">php > class Subject { function fail($argument){ throw new InvalidArgumentException; }}</p><p class="break">php > try { $s = new Subject; $s->fail(new Argument); } catch(Exception $e) { unserialize(serialize($e)); }</p><p class="break">PHP Warning:  Uncaught exception 'LogicException' in php shell code:1</p><p class="break">Stack trace:</p><p class="break">#0 [internal function]: Argument->__wakeup()</p><p class="break">#1 php shell code(1): unserialize('O:24:"InvalidAr...')</p><p class="break">#2 {main}</p><p class="break">  thrown in php shell code on line 1</p><p class="whiteline">php > 
</p><p class="whiteline">As you can see, unserializing the exception triggers the __wakeup() method in the argument that was passed to the failing method. The problem with that is that an Exception object in PHP includes a full backtrace, which, amongst other things, includes arguments to function or method calls. No issue if the arguments are scalar values or a simple array, but an object may not like being serialized, per se.
</p><p class="whiteline">Such is the case with Doctrine_Record and Doctrine_Collection objects. They can be unserialized, but require that a database connection has been made first, or they will throw: Uncaught exception 'Doctrine_Connection_Exception' with message 'There is no open connection'. Which obviously is not a precondition one would want to have for running test cases. It kinda defeats having test isolation in the first place.
</p><p class="whiteline">The good news is that this is only an issue if a test fails, so as long as your test passes, you're fine. The bad news is that in order to find out WHY your test failed, you have to hack a file dump of the serialized test result, to find the exception message and origin. Which is a nuisance at best.
</p> 
            </div>
        </content>
        <dc:subject>exceptions</dc:subject>
<dc:subject>phpunit</dc:subject>
<dc:subject>test isolation</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Google-not-indexing-my-blog" rel="alternate" title="Google not indexing my blog" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-29T13:45:04Z</published>
        <updated>2010-03-30T09:03:17Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=31</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/Personal" label="Personal" term="Personal" />
    
        <id>http://www.johnkleijn.nl/2010/31</id>
        <title type="html">Google not indexing my blog</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">If you are reading this, you probably kept my old feed in your RSS reader. Using Google Webmaster Tools, I got reminded that people actually subscribed to that. Right now, you lucky (ha!) few are the only ones reading my blog, the greater Internet is being deprived of the privilege because Google is not indexing it. For example search "john kleijn closures", you'll get Eli White's blog because Serendipity created a trackback for it, instead of my own post about closures. Search simply "John Kleijn" and you'll get my company website, some other links such as my PHPFreaks.com profile, and also some other guy called John Kleijn twice my age (okay, 1.5 times -- I'm getting old).</p> <br /><a href="http://www.johnkleijn.nl/2010/Google-not-indexing-my-blog#extended">Continue reading "Google not indexing my blog"</a>
            </div>
        </content>
        <dc:subject>blog</dc:subject>
<dc:subject>google</dc:subject>
<dc:subject>monopoly</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/NetBeans-is-TDD-unfriendly!" rel="alternate" title="NetBeans is TDD unfriendly!" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-29T10:18:16Z</published>
        <updated>2010-03-29T15:18:27Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=30</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=30</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/TDD" label="TDD" term="TDD" />
    
        <id>http://www.johnkleijn.nl/2010/30</id>
        <title type="html">NetBeans is TDD unfriendly!</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">I am getting soo tired of Zend Studio for Eclipse. On large projects, or rather projects with large libs (e.g. Zend Framework and Doctrine) code suggest and "building" is just too slow. It is since about a month impossible to blame hardware imitations either. </p> <br /><a href="http://www.johnkleijn.nl/2010/NetBeans-is-TDD-unfriendly!#extended">Continue reading "NetBeans is TDD unfriendly!"</a>
            </div>
        </content>
        <dc:subject>ide</dc:subject>
<dc:subject>netbeans</dc:subject>
<dc:subject>phpunit</dc:subject>
<dc:subject>tdd</dc:subject>
<dc:subject>zend studio</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Notes-about-closures-in-PHP" rel="alternate" title="Notes about closures in PHP" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-27T16:47:08Z</published>
        <updated>2010-03-28T14:27:35Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=29</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2010/29</id>
        <title type="html">Notes about closures in PHP</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">When PHP 5.3 came out, I was ecstatic. Namespaces, finally! Actually some parts of the implementation were a bit disappointing, but we'll leave that for another time. In that same enthousiasm, I jumped on closures like a hungry dog on a steak. Only to find the steak to be an old shoe.</p> <br /><a href="http://www.johnkleijn.nl/2010/Notes-about-closures-in-PHP#extended">Continue reading "Notes about closures in PHP"</a>
            </div>
        </content>
        <dc:subject>closures</dc:subject>
<dc:subject>php 5.3</dc:subject>
<dc:subject>typing</dc:subject>
<dc:subject>view helpers</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Virtual-Proxies-revisited" rel="alternate" title="Virtual Proxies revisited" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-25T15:13:00Z</published>
        <updated>2010-03-27T22:38:05Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=28</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2010/28</id>
        <title type="html">Virtual Proxies revisited</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Of all the well known design patterns related to ORM, the Proxy pattern (or more specifically, Virtual Proxy) is perhaps the most under-appreciated (with Unit of Work Controller and Value List Handler coming in second). This may be because it's not strictly a data source pattern, and you won't find in PoEAA chapter or Core J2EE Patterns. It is actually in the GoF, which doesn't contain any data source patterns. For me personally, Virtual Proxy will always be directly associated with data loading, as that is what I first used it for in 2006, although since then I have used for other occasions where object initialization was abnormally expensive. It is a pretty versatile pattern.
</p><p class="whiteline">In a nutshell, a Virtual Proxy is a "lazy loading" pattern that defers initialization of an object until it needed. The proxy does not contain the actual resource, but "knows how to get it". It does this by extending a subjects class while delegating to an instance of that same class, the subject. Basically this is what a Decorator does. But instead of overriding methods to add behaviour to a decorated object, it overrides them to trigger initialization of the subject (loading from the database in the case of an ORM), before delegating to the subject. Like with a decorator you'll have to override every method so that it is delegated to the subject. This makes manually writing proxies a pain.




</p> <br /><a href="http://www.johnkleijn.nl/2010/Virtual-Proxies-revisited#extended">Continue reading "Virtual Proxies revisited"</a>
            </div>
        </content>
        <dc:subject>design patterns</dc:subject>
<dc:subject>lazy loading</dc:subject>
<dc:subject>orm</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Started-on-a-new-framework" rel="alternate" title="Started on a new framework" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-24T12:03:38Z</published>
        <updated>2010-03-28T01:47:43Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=8</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2010/8</id>
        <title type="html">Started on a new framework</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Yet again.
</p><p class="break">Actually, using bits and pieces from previous works of art and a lot of red bars that turned green eventually, it is actually already a usable framework. Which allows me to focus on the more interesting stuff that are going to set this framework apart. Starting with the data layer.</p> <br /><a href="http://www.johnkleijn.nl/2010/Started-on-a-new-framework#extended">Continue reading "Started on a new framework"</a>
            </div>
        </content>
        <dc:subject>framework</dc:subject>
<dc:subject>orm</dc:subject>
<dc:subject>php 5.3</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Bad-poetry" rel="alternate" title="Bad poetry" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-24T11:39:00Z</published>
        <updated>2010-03-27T22:38:52Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=1</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=1</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/Personal" label="Personal" term="Personal" />
    
        <id>http://www.johnkleijn.nl/2010/1</id>
        <title type="html">Bad poetry</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">I tried my hand at poetry. It's deep, philosophical, it is the best poetry ever. Actually it is probably as good as my skills on the guitar.</p> <br /><a href="http://www.johnkleijn.nl/2010/Bad-poetry#extended">Continue reading "Bad poetry"</a>
            </div>
        </content>
        <dc:subject>poetry</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Simple-htpasswd-for-Hudson-CI-using-PHP" rel="alternate" title="Simple htpasswd for Hudson CI using PHP" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-24T10:27:59Z</published>
        <updated>2010-03-27T22:41:21Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=7</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/CI" label="CI" term="CI" />
    
        <id>http://www.johnkleijn.nl/2010/7</id>
        <title type="html">Simple htpasswd for Hudson CI using PHP</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">My development server hosts Trac instances, SVN repos, and private testing/staging websites/applications. All of these use one htpasswd file with users and passwords in it.
</p><p class="whiteline">But the build server, using Hudson, doesn't natively support that. Here's how you can have Hudson check a standard htpasswd file, and have project based security so one client or subcontractor wont mess with the builds of a project they are not involved in.
</p> <br /><a href="http://www.johnkleijn.nl/2010/Simple-htpasswd-for-Hudson-CI-using-PHP#extended">Continue reading "Simple htpasswd for Hudson CI using PHP"</a>
            </div>
        </content>
        <dc:subject>continuous integration</dc:subject>
<dc:subject>hudson</dc:subject>
<dc:subject>project management</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Learning-to-play-the-guitar" rel="alternate" title="Learning to play the guitar" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-24T10:12:24Z</published>
        <updated>2010-03-27T22:51:29Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=6</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/Personal" label="Personal" term="Personal" />
    
        <id>http://www.johnkleijn.nl/2010/6</id>
        <title type="html">Learning to play the guitar</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline"><img src="http://www.johnkleijn.nl/images/guitar_hero_pocket.jpg" alt="" />
</p><p class="whiteline">That's right, I decided to join Jimmy Hendrix and.. Some other guys who were pretty good? As soon as I can play anything with more than an E and A minor, maybe I can play some Staind or System of a Down at your wedding (or funeral, same game). But seriously, I'll record something sometime so the Internet can have a little fun at my expense.
</p><p class="break">(The Stratocaster was "borrowed" from http://technabob.com/ btw).</p> 
            </div>
        </content>
        <dc:subject>guitar</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2010/Mandatory-Hello-World" rel="alternate" title="Mandatory Hello World " />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2010-03-24T09:40:33Z</published>
        <updated>2010-03-24T22:15:53Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=5</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/Personal" label="Personal" term="Personal" />
    
        <id>http://www.johnkleijn.nl/2010/5</id>
        <title type="html">Mandatory Hello World </title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Hello World,
</p><p class="whiteline">After I stopped blogging at johnkleijn.nl about a year ago, I recently decided I wanted to start again. While johnkleijn.nl was purely about Web Development, this time I want to get other thoughts off my mind as well. I'm also going to try to write a little more often than once a month, it's not like I don't have a ton of incredibly interesting things to say, even if no one really cares about half of it.
</p><p class="whiteline">When I write something that makes you want to hire me for PHP or JS development, go over to my <a href="http://www.kleijnweb.nl" title="Kleijn Web Development">company website</a>. But this is also a personal blog, with opinions, bad and poor humor and stuff. When I write something that makes you want to pull my head through your monitor by my (fairly large) ears, troll about it in the comments.
</p><p class="whiteline">I'll import some of the old posts, not sure if it's worth the trouble. If you visited my old blog and want a specific old post back, comment below.
</p><p class="whiteline">I may also become active on Twitter, Facebook and LinkedIn, who knows. Before long, you could find yourself reading more John Kleijn than you can stomach.
</p><p class="break">John Kleijn.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2009/Nuff-Said." rel="alternate" title="Nuff Said." />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2009-04-13T10:41:00Z</published>
        <updated>2010-03-27T22:50:53Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=26</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2009/26</id>
        <title type="html">Nuff Said.</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline"><div class="php geshi" style="text-align: left"><br /><span style="color: #000000; font-weight: bold;">function</span> extraStatics<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">extraDBFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span><br /><br /><span style="color: #009933; font-style: italic;">/**<br />* @deprecated 2.3 Use extraStatics()<br />*/</span><br /><span style="color: #000000; font-weight: bold;">function</span> extraDBFields<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span><br />&#160;</div>
</p><p class="break">(This gem was taken from SilverStripe)</p> 
            </div>
        </content>
        <dc:subject>silverstripe</dc:subject>
<dc:subject>wtf</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2009/Dont-blame-us,-blame-PHP" rel="alternate" title="&quot;Don't blame us, blame PHP&quot;" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2009-04-13T10:11:00Z</published>
        <updated>2010-03-24T22:22:32Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=17</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2009/17</id>
        <title type="html">&quot;Don't blame us, blame PHP&quot;</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">At SilverStripe, they've gone through great lengths to rape the OO model (seriously, stay clear). But according to SS, their way is the right way, and PHP has it ALL WRONG. The fact that SilverStripe's codebase looks like my kitchen when the gf is out of town, is as defensive as an 80 year old Amish women in a coma, and about as structurally sound as house of cards, is ALL PHP's fault! Obviously is has nothing to with the way they are trying to use static properties. Right.
</p><p class="whiteline"><div class="php geshi" style="text-align: left"><br /><span style="color: #009933; font-style: italic;">/**<br />* ...<br />*<br />* Note: please ensure that the static variable that you are overloading is explicitly defined on the class that<br />* you are extending. &#160;For example, we have added static $has_one = array() to the Member definition, <br />* so that we can add has_one relationships to Member with decorators.<br />*<br />* If you forget to do this, db/build won't create the new relation.<br />* Don't blame us, blame PHP! <img src="http://www.johnkleijn.nl/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /><br />*/</span><br />&#160;</div>
</p><p class="break">Adding a winky does not make it funny or right, sorry. Actually, double fail for smilies in code. Triple fail for writing the biggest piece of crap in PHP history (and that's saying a lot, MediaWiki anyone?)</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2009/SOAP-server-in-30-seconds" rel="alternate" title="SOAP server in 30 seconds" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2009-01-02T05:01:00Z</published>
        <updated>2010-03-27T22:52:19Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=25</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2009/25</id>
        <title type="html">SOAP server in 30 seconds</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">I sometimes get the feeling that some PHP developers think SOAP is hard to use. When in most cases, nothing could be further from the truth.</p> <br /><a href="http://www.johnkleijn.nl/2009/SOAP-server-in-30-seconds#extended">Continue reading "SOAP server in 30 seconds"</a>
            </div>
        </content>
        <dc:subject>soap</dc:subject>

    </entry>
    <entry>
        <link href="http://www.johnkleijn.nl/2008/Unserialize-vs-Include,-with-APC-or-phpmemory" rel="alternate" title="Unserialize vs Include, with APC or php://memory" />
        <author>
            <name>John Kleijn</name>
                    </author>
    
        <published>2008-12-07T03:40:00Z</published>
        <updated>2010-03-27T22:52:00Z</updated>
        <wfw:comment>http://www.johnkleijn.nl/wfwcomment.php?cid=24</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.johnkleijn.nl/rss.php?version=atom1.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    
            <category scheme="http://www.johnkleijn.nl/categories/PHP" label="PHP" term="PHP" />
    
        <id>http://www.johnkleijn.nl/2008/24</id>
        <title type="html">Unserialize vs Include, with APC or php://memory</title>
        <content type="xhtml" xml:base="http://www.johnkleijn.nl/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">As a follow up on my previous post, I decided it would be interesting to see what effect using the php://memory wrapper or APC would have on the results.</p> <br /><a href="http://www.johnkleijn.nl/2008/Unserialize-vs-Include,-with-APC-or-phpmemory#extended">Continue reading "Unserialize vs Include, with APC or php://memory"</a>
            </div>
        </content>
        <dc:subject>benchmarks</dc:subject>

    </entry>

</feed>