<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: OOP in PHP from a .NET OOP Perspective: The Database Class</title>
	<atom:link href="http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<lastBuildDate>Thu, 11 Mar 2010 15:25:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-28087</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Sun, 25 Nov 2007 22:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-28087</guid>
		<description>Hi billicim,

I will try to get to those in the upcoming month.  I have been out of town a lot over the last month, which is why I haven&#039;t got a chance to write those yet.  I will aim for December 12th for the Design class.</description>
		<content:encoded><![CDATA[<p>Hi billicim,</p>
<p>I will try to get to those in the upcoming month.  I have been out of town a lot over the last month, which is why I haven&#8217;t got a chance to write those yet.  I will aim for December 12th for the Design class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bilicim</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-27910</link>
		<dc:creator>bilicim</dc:creator>
		<pubDate>Sat, 24 Nov 2007 13:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-27910</guid>
		<description>thanx for the post,
But i couldn&#039;t find your other posts about session and design class that you mentioned in your first article before. So, are you going to post? Because, I really curious about those :)</description>
		<content:encoded><![CDATA[<p>thanx for the post,<br />
But i couldn&#8217;t find your other posts about session and design class that you mentioned in your first article before. So, are you going to post? Because, I really curious about those <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-22217</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Tue, 16 Oct 2007 10:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-22217</guid>
		<description>Stephen, thanks for commenting.  Static classes are supposed to be fast as they could lock up threads depending on how the language and the runtime are written.

Unfortunately, there is not very much knowledge (easy to find knowledge) for how PHP handles static methods and classes.

In either case, I would still continuously keep the Database class static, to help ensure each person optimizes their queries to run fast.  This will help performance greatly at the possible cost of thread lockouts.  

Time will tell though and so will testing.  However, from the initial testing I have done, I personally cannot see with the way PHP was written, for it to lockout any threads trying to access a static class, unlike .NET which will lockout any threads if the static method is currently &quot;in use&quot;.

PHP, since it is not a compiled language, it has to compile the scripts at run-time, which in my opinion would mean the run-time execution would be per thread.  Now I am sure there can be caching enabled to help stop it from compiling the run-time execution on each request, and that is where it is hazy on if static methods would in fact cause a lockout to another thread if it is &quot;in use&quot;.

Again, thanks for the comment and I would be very interested in seeing the code for the db abstraction with the composition of a db results class.</description>
		<content:encoded><![CDATA[<p>Stephen, thanks for commenting.  Static classes are supposed to be fast as they could lock up threads depending on how the language and the runtime are written.</p>
<p>Unfortunately, there is not very much knowledge (easy to find knowledge) for how PHP handles static methods and classes.</p>
<p>In either case, I would still continuously keep the Database class static, to help ensure each person optimizes their queries to run fast.  This will help performance greatly at the possible cost of thread lockouts.  </p>
<p>Time will tell though and so will testing.  However, from the initial testing I have done, I personally cannot see with the way PHP was written, for it to lockout any threads trying to access a static class, unlike .NET which will lockout any threads if the static method is currently &#8220;in use&#8221;.</p>
<p>PHP, since it is not a compiled language, it has to compile the scripts at run-time, which in my opinion would mean the run-time execution would be per thread.  Now I am sure there can be caching enabled to help stop it from compiling the run-time execution on each request, and that is where it is hazy on if static methods would in fact cause a lockout to another thread if it is &#8220;in use&#8221;.</p>
<p>Again, thanks for the comment and I would be very interested in seeing the code for the db abstraction with the composition of a db results class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-22175</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 15 Oct 2007 22:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-22175</guid>
		<description>Matt

Interesting take on static classes. My only criticism would be the limitations it lays upon itself by not being a class instantiation i.e object. php5 is great (and looking at the tech notes for php6 that will be greater). I like using static classes, and a lot of them tend to be refactoring of php4 library functions, or small classes to perform a tightly nit group of functions as a helper class to an object. As far as db abstraction I like the pattern method of main db class as singleton (from abstract factory) with composition of a db results class. No one best way of doing it though!
Look forward to kiosk.</description>
		<content:encoded><![CDATA[<p>Matt</p>
<p>Interesting take on static classes. My only criticism would be the limitations it lays upon itself by not being a class instantiation i.e object. php5 is great (and looking at the tech notes for php6 that will be greater). I like using static classes, and a lot of them tend to be refactoring of php4 library functions, or small classes to perform a tightly nit group of functions as a helper class to an object. As far as db abstraction I like the pattern method of main db class as singleton (from abstract factory) with composition of a db results class. No one best way of doing it though!<br />
Look forward to kiosk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrSpooky</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-11969</link>
		<dc:creator>MrSpooky</dc:creator>
		<pubDate>Wed, 04 Jul 2007 16:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-11969</guid>
		<description>I&#039;ve actually got an article on Memcached in the works.  It will contain specific examples of use with PHP....</description>
		<content:encoded><![CDATA[<p>I&#8217;ve actually got an article on Memcached in the works.  It will contain specific examples of use with PHP&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-11961</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Wed, 04 Jul 2007 13:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-11961</guid>
		<description>I will try to work on an article about that.  Right now, I have two articles in the works, so it will come after those, but I will add it to my list.</description>
		<content:encoded><![CDATA[<p>I will try to work on an article about that.  Right now, I have two articles in the works, so it will come after those, but I will add it to my list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-11924</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Tue, 03 Jul 2007 21:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-11924</guid>
		<description>Just came across these articles today and found them very informative. Thank you for posting them.
I started looking around the net a couple weeks ago for a solution to cache queries using PHP Memcache. It surprised me that there is not much information for incorporating Memcache with a database class.
Your solution here gives me some ideas on how to go about it, but I&#039;m still relatively new to all this. I would be interested in seeing how you would implement something like Memcache.

Anyway, thanks for the info.</description>
		<content:encoded><![CDATA[<p>Just came across these articles today and found them very informative. Thank you for posting them.<br />
I started looking around the net a couple weeks ago for a solution to cache queries using PHP Memcache. It surprised me that there is not much information for incorporating Memcache with a database class.<br />
Your solution here gives me some ideas on how to go about it, but I&#8217;m still relatively new to all this. I would be interested in seeing how you would implement something like Memcache.</p>
<p>Anyway, thanks for the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Mansen</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-5517</link>
		<dc:creator>Peter Mansen</dc:creator>
		<pubDate>Wed, 16 May 2007 21:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-5517</guid>
		<description>Great Thank&#039;s.</description>
		<content:encoded><![CDATA[<p>Great Thank&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Contrid</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-1788</link>
		<dc:creator>Contrid</dc:creator>
		<pubDate>Wed, 04 Apr 2007 01:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-1788</guid>
		<description>Thanks for the great post.
This is really extremely useful.</description>
		<content:encoded><![CDATA[<p>Thanks for the great post.<br />
This is really extremely useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpradio</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-994</link>
		<dc:creator>cpradio</dc:creator>
		<pubDate>Sun, 18 Mar 2007 20:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-994</guid>
		<description>Sample of use is now provided.</description>
		<content:encoded><![CDATA[<p>Sample of use is now provided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BianchiKid</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-993</link>
		<dc:creator>BianchiKid</dc:creator>
		<pubDate>Sun, 18 Mar 2007 19:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-993</guid>
		<description>This is a great article but it would be even better if you could include a few lines of code to demonstrate how to instantiate and use the class.</description>
		<content:encoded><![CDATA[<p>This is a great article but it would be even better if you could include a few lines of code to demonstrate how to instantiate and use the class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Golgotha</title>
		<link>http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/comment-page-1/#comment-336</link>
		<dc:creator>Golgotha</dc:creator>
		<pubDate>Wed, 07 Feb 2007 15:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/02/06/oop-in-php-from-a-net-oop-perspective-the-database-class/#comment-336</guid>
		<description>Holy crap Matt, that&#039;s a long post! 

I&#039;m going to have to print this one and read it tonight before bed. I suck at PHP so hopefully reading this stuff as I doze off to sleep will help me take it all in.</description>
		<content:encoded><![CDATA[<p>Holy crap Matt, that&#8217;s a long post! </p>
<p>I&#8217;m going to have to print this one and read it tonight before bed. I suck at PHP so hopefully reading this stuff as I doze off to sleep will help me take it all in.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
