<?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>Gargleblaster.org &#187; oop</title>
	<atom:link href="http://www.gargleblaster.org/tag/oop/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gargleblaster.org</link>
	<description></description>
	<lastBuildDate>Wed, 16 Jun 2010 08:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OOP programming for webapplications usefull?</title>
		<link>http://www.gargleblaster.org/2005/08/31/oop-programming-for-webapplications-usefull.html</link>
		<comments>http://www.gargleblaster.org/2005/08/31/oop-programming-for-webapplications-usefull.html#comments</comments>
		<pubDate>Wed, 31 Aug 2005 20:13:25 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=172</guid>
		<description><![CDATA[While coding (php5) on a new project today, I found myself struggling with the question to fit a collection of functions in a class or not. Or in other words, to maintain a procedural style, or more object orientated. I only learned recently how to use objects and classes in php5 and I find myself [...]]]></description>
			<content:encoded><![CDATA[<p>While coding (php5) on a new project today, I found myself struggling with the question to fit a collection of functions in a class or not. Or in other words, to maintain a procedural style, or more object orientated.<br />
I only learned recently how to use objects and classes in php5 and I find myself mixing objects and procedural style within scripts. For instance, html templates and database abstraction is fitted in classes, while handling a form (collection -> validating ->processing) is done in a procedural style in my scripts.</p>
<p>I think that webapplication-coding is by nature more suitable for a procedural style. You have a very clear starting point and end. So the timeline in your script is very linear. Compare this with java, where applets mostly run in a loop waiting for userevents. The fundamental difference in nature (begin->end against looping) explains my struggle to code completely  OOP with PHP.</p>
<p>Off course OOP has lots of advantages with PHP (execption handling, code reusability to name a few) but I think when coding webapplications, you will always find yourself coding a more or less procedural timeline within your script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/08/31/oop-programming-for-webapplications-usefull.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Programming with Java</title>
		<link>http://www.gargleblaster.org/2005/07/23/visual-programming-with-java.html</link>
		<comments>http://www.gargleblaster.org/2005/07/23/visual-programming-with-java.html#comments</comments>
		<pubDate>Sat, 23 Jul 2005 12:53:34 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[open university]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=158</guid>
		<description><![CDATA[For my Open University course I have started with &#8220;Visual Programming with Java&#8221;. I know it&#8217;s more fun as Discrete Math :) And it&#8217;s quite fun to finally &#8220;learn&#8221; programming, as I&#8217;m a autodidact. The level is very very basic, but that doesn&#8217;t matter to me. In the last years my experience is that it [...]]]></description>
			<content:encoded><![CDATA[<p>For my Open University course I have started with &#8220;Visual Programming with Java&#8221;.<br />
I know it&#8217;s more fun as Discrete Math :)<br />
And it&#8217;s quite fun to finally &#8220;learn&#8221; programming, as I&#8217;m a autodidact. The level is very very basic, but that doesn&#8217;t matter to me. In the last years my experience is that it can be very helpfull to really learn the basics. </p>
<p>The real fun is that I have to use windows again. The course uses Borland Jbuilder 8, with a license which only runs on windows XP according to the manual, but I use it on my very old windows98 machine without any problems.<br />
And oh boy, what is an IDE fun. Programming like playing with LEGO.</p>
<p>&#8220;You have forgotten a semi-colon right here&#8221;.<br />
Oh&#8230;thanks :)</p>
<p>Instead of digging through 2500 lines of code where that missing T_SPACE is&#8230;<br />
Java is also fun to work with. Very straightforward and easier than C (no memory management / garbage collection needed). I really can tell know where PHP has it&#8217;s roots. It really helps me getting some insight in OOP concepts, which are used in PHP 5 as well. </p>
<p>btw&#8230;writing this on windows, WordPress really looks better in Firefox as in Safari&#8230;damn.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/07/23/visual-programming-with-java.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Migrated to PHP5</title>
		<link>http://www.gargleblaster.org/2005/04/10/migrated-to-php5.html</link>
		<comments>http://www.gargleblaster.org/2005/04/10/migrated-to-php5.html#comments</comments>
		<pubDate>Sun, 10 Apr 2005 08:05:15 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[JPGraph]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=152</guid>
		<description><![CDATA[I did it! For over a year I glanced at PHP5, but put it aside as too unstable/experimental (a year ago) or too dangerous to migrate due to incompatibility issues. Some of my projects where however advancing to a point, that procedural programming became to limited. And more and more I found myself looking at [...]]]></description>
			<content:encoded><![CDATA[<p>I did it! </p>
<p>For over a year I glanced at PHP5, but put it aside as too unstable/experimental (a year ago) or too dangerous to migrate due to incompatibility issues.</p>
<p>Some of my projects where however advancing to a point, that procedural programming became to limited. And more and more I found myself looking at (Object Orientated Programming) OOP.<br />
And being a absolute rookie in OOP, I decided that if I had to learn OOP, I wanted it to learn in PHP5 rightaway, instead of starting in PHP4.</p>
<p>Well, 2 weeks ago, I decided that the time has come. I downloaded php5, installed it on my development server and&#8230;.it just worked?!</p>
<p>A closer look learned that JPgraph -scripts broke and some my legacy code also.<br />
Fortunately, there are two configuration options who both can be set in a htaccess or virtualhost configuration:<br />
zend.ze1_compatibility_mode<br />
and<br />
register_long_arrays</p>
<p>Enabling those two directives in the appropiate virtualhost config made all the scripts 100% working again!(yeah yeah I know, ditch the legacy code and wait for jpgraph 2.0, but we don&#8217;t live in a perfect world, do we?)</p>
<p>The last week I find myself coding in PHP5 OOP style for the first time, using the new mysqli extension (prepared statements kick ass!) and enjoying php5 very very much!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/04/10/migrated-to-php5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
