<?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: Calling Catalyst functions outside Catalyst.</title>
	<atom:link href="http://blog.laufeyjarson.com/2009/11/calling-catalyst-functions-outside-catalyst/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.laufeyjarson.com/2009/11/calling-catalyst-functions-outside-catalyst/</link>
	<description>... notes, thoughts, rants, and randomness.</description>
	<lastBuildDate>Mon, 08 Apr 2013 21:01:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Laufeyjarson</title>
		<link>http://blog.laufeyjarson.com/2009/11/calling-catalyst-functions-outside-catalyst/comment-page-1/#comment-920</link>
		<dc:creator>Laufeyjarson</dc:creator>
		<pubDate>Tue, 01 Dec 2009 23:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.laufeyjarson.com/?p=78#comment-920</guid>
		<description><![CDATA[I can&#039;t argue with this.  It is a serious case of using a bulldozer when a shovel will do.

The startup manages to display the entire debug and diagnostics of Catalyst, which looks particularly odd in the middle of the tool&#039;s run.

I think I can even agree that it is probably not a good general solution.

I can live with this, because this tool is something only a developer will see.

I can also live with it because trying to figure out how to extract the model names and connection information from Config::JFDI - which I have already used in this program! - and being able to find the real DBIC class and get it created without the model&#039;s help was driving me crazy.

The Catalyst app in question uses several models, from several sources, and Catalyst has already got the code internally to read the config, find the models, load them, figure out where they really are, and be able to create usable handles from then.

Why should I work to duplicate all that code, in a likely fragile and hard to maintain way (actually, I gleefully threw out some horrid and sort of working code) when Catalyst already knows how to do all this for me?

(Yes, this is me saying, &quot;I already had a bulldozer, and didn&#039;t want to drive across town and get a shovel.&quot;)

Your point makes me wonder if another module to use the data from $config to load all the right DBIC classes might be worthwhile.  It would certainly be more appropriate for general use.]]></description>
		<content:encoded><![CDATA[<p>I can&#8217;t argue with this.  It is a serious case of using a bulldozer when a shovel will do.</p>
<p>The startup manages to display the entire debug and diagnostics of Catalyst, which looks particularly odd in the middle of the tool&#8217;s run.</p>
<p>I think I can even agree that it is probably not a good general solution.</p>
<p>I can live with this, because this tool is something only a developer will see.</p>
<p>I can also live with it because trying to figure out how to extract the model names and connection information from Config::JFDI &#8211; which I have already used in this program! &#8211; and being able to find the real DBIC class and get it created without the model&#8217;s help was driving me crazy.</p>
<p>The Catalyst app in question uses several models, from several sources, and Catalyst has already got the code internally to read the config, find the models, load them, figure out where they really are, and be able to create usable handles from then.</p>
<p>Why should I work to duplicate all that code, in a likely fragile and hard to maintain way (actually, I gleefully threw out some horrid and sort of working code) when Catalyst already knows how to do all this for me?</p>
<p>(Yes, this is me saying, &#8220;I already had a bulldozer, and didn&#8217;t want to drive across town and get a shovel.&#8221;)</p>
<p>Your point makes me wonder if another module to use the data from $config to load all the right DBIC classes might be worthwhile.  It would certainly be more appropriate for general use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fREW Schmidt</title>
		<link>http://blog.laufeyjarson.com/2009/11/calling-catalyst-functions-outside-catalyst/comment-page-1/#comment-919</link>
		<dc:creator>fREW Schmidt</dc:creator>
		<pubDate>Tue, 01 Dec 2009 22:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.laufeyjarson.com/?p=78#comment-919</guid>
		<description><![CDATA[The problem with this solution is that it will be WAY slower than using Config::JFDI and DBIC.  You&#039;re loading a lot more than you really need for simple DB stuff.]]></description>
		<content:encoded><![CDATA[<p>The problem with this solution is that it will be WAY slower than using Config::JFDI and DBIC.  You&#8217;re loading a lot more than you really need for simple DB stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
