<?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"
	>
<channel>
	<title>Comments for For Great Justice</title>
	<atom:link href="http://greatjustice.info/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://greatjustice.info</link>
	<description>Great justice is great.</description>
	<pubDate>Mon, 01 Dec 2008 18:27:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on Zend Framework by Using Bitmasks in a Groups Permission System &#124; For Great Justice</title>
		<link>http://greatjustice.info/zend-framework/#comment-390</link>
		<dc:creator>Using Bitmasks in a Groups Permission System &#124; For Great Justice</dc:creator>
		<pubDate>Sat, 22 Nov 2008 19:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=36#comment-390</guid>
		<description>[...] trying to do. In this case, I wanted to create a social network site of sorts (using the Zend Framework) with, next to the obvious user profiles and user-to-user communication, a &#8216;groups&#8217; [...]</description>
		<content:encoded><![CDATA[<p>[...] trying to do. In this case, I wanted to create a social network site of sorts (using the Zend Framework) with, next to the obvious user profiles and user-to-user communication, a &#8216;groups&#8217; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;PHP Database Classes&#8221; - Follow-Up by admin</title>
		<link>http://greatjustice.info/php-database-classes-follow-up/#comment-389</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 12 Nov 2008 13:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=14#comment-389</guid>
		<description>I could, but I cba and there's plenty of good examples out there, =D. I'd take a look at Doctrine (http://www.doctrine-project.org/), probably the most advanced, or at least the most recent PHP ORM / database abstraction layer.

Besides that, there's also Zend_DB (http://framework.zend.com/manual/en/zend.db.html), which is a lot more low-level (it's not an ORM, really), but does provide a good structure of sorts.

Also, neat that I'm in the Google results, thanks for sharing that, =D.</description>
		<content:encoded><![CDATA[<p>I could, but I cba and there&#8217;s plenty of good examples out there, =D. I&#8217;d take a look at Doctrine (http://www.doctrine-project.org/), probably the most advanced, or at least the most recent PHP ORM / database abstraction layer.</p>
<p>Besides that, there&#8217;s also Zend_DB (http://framework.zend.com/manual/en/zend.db.html), which is a lot more low-level (it&#8217;s not an ORM, really), but does provide a good structure of sorts.</p>
<p>Also, neat that I&#8217;m in the Google results, thanks for sharing that, =D.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;PHP Database classes&#8221; make my eyes bleed. by JD</title>
		<link>http://greatjustice.info/php-database-classes-make-my-eyes-bleed/#comment-388</link>
		<dc:creator>JD</dc:creator>
		<pubDate>Wed, 12 Nov 2008 13:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=13#comment-388</guid>
		<description>oh nevermind. here IS a good example. thanks</description>
		<content:encoded><![CDATA[<p>oh nevermind. here IS a good example. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;PHP Database Classes&#8221; - Follow-Up by JD</title>
		<link>http://greatjustice.info/php-database-classes-follow-up/#comment-387</link>
		<dc:creator>JD</dc:creator>
		<pubDate>Wed, 12 Nov 2008 13:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=14#comment-387</guid>
		<description>since this article shows up 10th in the results for "php database class" right now and since you know whats so wrong and right to do, can't you provide a good starting example of a database class. now that would be useful!</description>
		<content:encoded><![CDATA[<p>since this article shows up 10th in the results for &#8220;php database class&#8221; right now and since you know whats so wrong and right to do, can&#8217;t you provide a good starting example of a database class. now that would be useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applied design patterns: Database abstraction (part 2) by Chris</title>
		<link>http://greatjustice.info/applied-design-patterns-database-abstraction-part-2/#comment-386</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 30 Oct 2008 22:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=20#comment-386</guid>
		<description>I think I am just overdoing it a bit.  Since connections can be reused I might just decide to have a class connect to the db and do its thing. 
Who knows.
  
You're right, It seems the singleton is going the way of the dodo.  I have used in logging classes before, though.</description>
		<content:encoded><![CDATA[<p>I think I am just overdoing it a bit.  Since connections can be reused I might just decide to have a class connect to the db and do its thing.<br />
Who knows.</p>
<p>You&#8217;re right, It seems the singleton is going the way of the dodo.  I have used in logging classes before, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applied design patterns: Database abstraction (part 2) by admin</title>
		<link>http://greatjustice.info/applied-design-patterns-database-abstraction-part-2/#comment-385</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=20#comment-385</guid>
		<description>There's currently plenty of people that vote against the singleton design pattern, calling it a remnant of ye olde imperative programming and, from a practical point of view, it doesn't really apply to database connection thingies - after all, multiple connections to a database are perfectly allowed and whatnot.

For your problem, you could, I guess, write a database connection manager, which basically keeps track of a list of your database connections, so yeah, it's perfectly valid. I'm not entirely sure what motivation people have when they apply the singleton pattern to database connections - it's firstly not applicable to database connections, and second, it seems to me like a complex way to make it a global thing.

As for the quick reply, I get an e-mail whenever someone posts a comment, so I can be pretty quick, =D.</description>
		<content:encoded><![CDATA[<p>There&#8217;s currently plenty of people that vote against the singleton design pattern, calling it a remnant of ye olde imperative programming and, from a practical point of view, it doesn&#8217;t really apply to database connection thingies - after all, multiple connections to a database are perfectly allowed and whatnot.</p>
<p>For your problem, you could, I guess, write a database connection manager, which basically keeps track of a list of your database connections, so yeah, it&#8217;s perfectly valid. I&#8217;m not entirely sure what motivation people have when they apply the singleton pattern to database connections - it&#8217;s firstly not applicable to database connections, and second, it seems to me like a complex way to make it a global thing.</p>
<p>As for the quick reply, I get an e-mail whenever someone posts a comment, so I can be pretty quick, =D.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applied design patterns: Database abstraction (part 2) by Chris</title>
		<link>http://greatjustice.info/applied-design-patterns-database-abstraction-part-2/#comment-384</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=20#comment-384</guid>
		<description>Thanks for the uber quick reply on an old post.  I like the idea of DAO, but I guess what I was shooting for was a way to manage connections to multiple databases with the ability to get access to those connections within other classes without having to pass arguments when instantiating the object.  I thought about the singleton pattern, but since I will need to connection to different db's that wouldn't really work.  Is there a way to do what I'm asking?  If not (or it doesn't make sense), I will surely take your advice.</description>
		<content:encoded><![CDATA[<p>Thanks for the uber quick reply on an old post.  I like the idea of DAO, but I guess what I was shooting for was a way to manage connections to multiple databases with the ability to get access to those connections within other classes without having to pass arguments when instantiating the object.  I thought about the singleton pattern, but since I will need to connection to different db&#8217;s that wouldn&#8217;t really work.  Is there a way to do what I&#8217;m asking?  If not (or it doesn&#8217;t make sense), I will surely take your advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applied design patterns: Database abstraction (part 2) by admin</title>
		<link>http://greatjustice.info/applied-design-patterns-database-abstraction-part-2/#comment-383</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 30 Oct 2008 19:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=20#comment-383</guid>
		<description>Sounds to me that your Session class can be seen as a regular bit of data, so it's basically a Model in the MVC scheme, which makes it all right to give it a database connection (object). There's an alternative approach which, in my opinion, keeps your Session object cleaner, and that's to use a database access object (DAO) for Sessions, which is basically a class / object you use to retrieve and insert Sessions into your database, instead of leaving that responsibility with the Session object itself.</description>
		<content:encoded><![CDATA[<p>Sounds to me that your Session class can be seen as a regular bit of data, so it&#8217;s basically a Model in the MVC scheme, which makes it all right to give it a database connection (object). There&#8217;s an alternative approach which, in my opinion, keeps your Session object cleaner, and that&#8217;s to use a database access object (DAO) for Sessions, which is basically a class / object you use to retrieve and insert Sessions into your database, instead of leaving that responsibility with the Session object itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applied design patterns: Database abstraction (part 2) by Chris</title>
		<link>http://greatjustice.info/applied-design-patterns-database-abstraction-part-2/#comment-382</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 30 Oct 2008 19:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=20#comment-382</guid>
		<description>Great Post.  What would you suggest if I had a custom Session class that needed a db connection inside of it?  Would I just pass the connection in when the Session object instantiated or I am missing something fundamental here?</description>
		<content:encoded><![CDATA[<p>Great Post.  What would you suggest if I had a custom Session class that needed a db connection inside of it?  Would I just pass the connection in when the Session object instantiated or I am missing something fundamental here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Lost Art of Bitmasks by Day 6. To bit, or not to bit. at AuralGrey : the Blog</title>
		<link>http://greatjustice.info/the-lost-art-of-bitmasks/#comment-378</link>
		<dc:creator>Day 6. To bit, or not to bit. at AuralGrey : the Blog</dc:creator>
		<pubDate>Tue, 07 Oct 2008 08:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://greatjustice.info/?p=37#comment-378</guid>
		<description>[...] than doing some basic research into bitwise operators, and how and what they are used for. Studying this article at the moment.  Real interesting stuff, if you like being hit in the head with spiked clubs. Need [...]</description>
		<content:encoded><![CDATA[<p>[...] than doing some basic research into bitwise operators, and how and what they are used for. Studying this article at the moment.  Real interesting stuff, if you like being hit in the head with spiked clubs. Need [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
