<?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: An Exposition on Specific Time Saving Code</title>
	<atom:link href="http://blog.afoolishmanifesto.com/archives/1282/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.afoolishmanifesto.com/archives/1282</link>
	<description>fREWdiculous!</description>
	<lastBuildDate>Mon, 16 Jan 2012 12:16:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: fREW Schmidt</title>
		<link>http://blog.afoolishmanifesto.com/archives/1282/comment-page-1#comment-974</link>
		<dc:creator>fREW Schmidt</dc:creator>
		<pubDate>Fri, 29 Jan 2010 18:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=1282#comment-974</guid>
		<description>@nperez: the main reason we haven&#039;t gone that route is that our grids are certainly not homogeneous.  I briefly considered doing what you are talking about, but I just am not convinced that we would have the flexibility that we need.  The same goes for DBIC::API.</description>
		<content:encoded><![CDATA[<p>@nperez: the main reason we haven&#8217;t gone that route is that our grids are certainly not homogeneous.  I briefly considered doing what you are talking about, but I just am not convinced that we would have the flexibility that we need.  The same goes for DBIC::API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nperez</title>
		<link>http://blog.afoolishmanifesto.com/archives/1282/comment-page-1#comment-973</link>
		<dc:creator>nperez</dc:creator>
		<pubDate>Fri, 29 Jan 2010 16:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=1282#comment-973</guid>
		<description>That&#039;s interesting that you do a lot of the code gen inside Perl. For our platform, we use TT instead fo spit out the the record format, columns definitions, etc for the data store and grid. Mostly, I end up passing a result source directly via the stash to the template, and it is only a simple matter at that point of iterating the columns. 

DBIx::Class has an underdocumented &quot;feature&quot; that you can put pretty much whatever you want into the add_column statement, so I attach a small &quot;hint&quot; hash that contains things like whether it should be displayed in the grid, its display order, etc. This lets me very easily &quot;bleed&quot; implementations from the DB up to the display layer.

In the end, our datastores and grids are restful and we have them talking to DBIC::API. All of the setup to get to that point is just an index method to spit out the initial page.

I had toyed with at one point going even further and disconnecting the UI completely from TT and have it query the backend for its config (you can attach metaData to your results and it will reconfigure the record fields automagically), but time constraints left me with the TT approach to convey the structure.</description>
		<content:encoded><![CDATA[<p>That&#8217;s interesting that you do a lot of the code gen inside Perl. For our platform, we use TT instead fo spit out the the record format, columns definitions, etc for the data store and grid. Mostly, I end up passing a result source directly via the stash to the template, and it is only a simple matter at that point of iterating the columns. </p>
<p>DBIx::Class has an underdocumented &#8220;feature&#8221; that you can put pretty much whatever you want into the add_column statement, so I attach a small &#8220;hint&#8221; hash that contains things like whether it should be displayed in the grid, its display order, etc. This lets me very easily &#8220;bleed&#8221; implementations from the DB up to the display layer.</p>
<p>In the end, our datastores and grids are restful and we have them talking to DBIC::API. All of the setup to get to that point is just an index method to spit out the initial page.</p>
<p>I had toyed with at one point going even further and disconnecting the UI completely from TT and have it query the backend for its config (you can attach metaData to your results and it will reconfigure the record fields automagically), but time constraints left me with the TT approach to convey the structure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

