<?xml version="1.0" encoding="utf-8"?>
<!-- RSS generated by Movable Type 2.661 on Fri, 11 Apr 2008 11:38:34 -0500 -->
<rss version="2.0">
  <channel>
    <title>90% Crud:Comments and Trackbacks</title>
    <link>http://george.hotelling.net/90percent/</link>
    <description>Latest comments/trackbacks for 90% Crud</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 11 Apr 2008 11:38:34 -0500</lastBuildDate>
    <generator>Movable Type v2.661</generator>
    <ttl>60</ttl>
    <item>
      <title>Comment on &quot;DRYer than thou&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/dryer_than_thou.php#comment-23214</link>
      <description><![CDATA[<p>I was wondering when you were going to expand on that Tweet.</p>

<p>BTW, $ is a valid first character for a javascript variable (hence the popularity of $() and _() as library base function names) -- so why strip them out?</p>

<p>I've started rethinking about this lately since in many cases I still end up with an anti-DRY approach when I write forms that I want to validate both with JS and on the server side.  Lately, I'm thinking using the server back-end and the jQuery metadata plugin to drop metadata necessary for the jQuery metadata plugin right into the DOM could get me most of the way there -- but it doesn't solve the duplication of logic problem.  Code generation seems to do the trick here. Perhaps there's a niche for a metalanguage that could be used for calculations/validation callbacks that could be used by JS/PHP/Whatever?<br />
</p>]]>
        &lt;p&gt;- Scott T.&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023214@http://george.hotelling.net/90percent/</guid>
      <pubDate>Sun, 06 Jan 2008 17:47:21 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23213</link>
      <description><![CDATA[<p>Super cool.  More happiness for you two!</p>]]>
        &lt;p&gt;- Gabe Friedmann&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023213@http://george.hotelling.net/90percent/</guid>
      <pubDate>Sun, 06 Jan 2008 12:56:56 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;DRYer than thou&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/dryer_than_thou.php#comment-23212</link>
      <description><![CDATA[<p>Just to clarify, the original code is more complex than calculating sales tax, but it consists of conditionals and simple arithmetic, so I'm using sales tax calculation as a stand-in.  The logic is not simple multiplication.</p>

<p>I agree that my example is a pretty awful way to calculate sales tax (only 2 states?  repeating the multiplication in the interest of not repeating code?  wtf indeed.) but it's only there because it was the first thing I came up with when thinking of conditional math.</p>]]>
        &lt;p&gt;- George Hotelling&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023212@http://george.hotelling.net/90percent/</guid>
      <pubDate>Sat, 05 Jan 2008 16:23:56 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;DRYer than thou&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/dryer_than_thou.php#comment-23211</link>
      <description><![CDATA[<p>For some reason I thought this was either an uncov or a dailywtf entry.</p>

<p>Anyway.  What I would have done is store the sales tax information in an associative array (ideally stored in a database, but even in a hard-coded include would be okay for starters), and to have the PHP emit the same array's contents in Javascript format for the client side.  It's not tricky, and it'd be much more efficient for both.</p>

<p>If you later need more intelligent logic (e.g. due to sales tax which varies by type of good - which does exist in many states - or some sort of progressive sales tax which varies by purchase price) then you'd need to update the logic on both sides, but as long as the logic is just a simple multiplication I don't see the problem with just replicating the parameters instead of the logic.</p>

<p>Also, TECHNICALLY that code isn't a polyglot - it's php code which can generate code in both php and Javascript.  On the Javascript side it's not running the same code, it's running code which was generated by a trivial "code generation" engine.</p>]]>
        &lt;p&gt;- fluffy&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023211@http://george.hotelling.net/90percent/</guid>
      <pubDate>Sat, 05 Jan 2008 15:39:42 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23210</link>
      <description><![CDATA[<p>Little disappointed that marquee did not find his way into the markup party.</p>

<p>So how nerdy was the proposal? Did public key encryption, binary code, or <a href="http://en.wikipedia.org/wiki/Concentration_%28game_show%29" rel="nofollow">concentration</a> play any part?</p>]]>
        &lt;p&gt;- NESJumpman&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023210@http://george.hotelling.net/90percent/</guid>
      <pubDate>Mon, 31 Dec 2007 16:41:16 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Hopefully this will end Ron Paul Diggspam&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/hopefully_this_will_end_ron_paul_diggspam.php#comment-23209</link>
      <description><![CDATA[<p>You think that this would hurt Ron Paul support is to believe us supporters are so shallow forget about issues like Monetary Policy and Foreign Intervention which Ron Paul is only one who has any understand of and plan for.</p>]]>
        &lt;p&gt;- Alex Merced&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023209@http://george.hotelling.net/90percent/</guid>
      <pubDate>Fri, 28 Dec 2007 12:19:06 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23208</link>
      <description><![CDATA[<p>Congratulations I'm so excited for both of you!</p>]]>
        &lt;p&gt;- Erik Zempel&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023208@http://george.hotelling.net/90percent/</guid>
      <pubDate>Thu, 27 Dec 2007 10:09:44 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23207</link>
      <description><![CDATA[<p>awesome George!  best use of blink tag ever.</p>]]>
        &lt;p&gt;- Edward Vielmetti&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023207@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 22:14:26 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23206</link>
      <description><![CDATA[<p>Congratulations, you guys! We're really happy for you!</p>]]>
        &lt;p&gt;- Harold Lee&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023206@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 11:06:35 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23205</link>
      <description><![CDATA[<p>Congratulations Sir!  </p>]]>
        &lt;p&gt;- Keith elder&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023205@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 09:41:51 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23204</link>
      <description><![CDATA[<p>Yay! and a quadruple huzzah!</p>]]>
        &lt;p&gt;- david Weinstock&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023204@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 08:39:42 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23203</link>
      <description><![CDATA[<p>woohoo!!!</p>]]>
        &lt;p&gt;- yatta&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023203@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 00:46:32 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23202</link>
      <description><![CDATA[<p>hey guys, congratulations. i am very happy for both of you. </p>]]>
        &lt;p&gt;- chris w&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023202@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 00:16:40 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23201</link>
      <description><![CDATA[<p>Congratulations to you both!</p>]]>
        &lt;p&gt;- Ian&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023201@http://george.hotelling.net/90percent/</guid>
      <pubDate>Wed, 26 Dec 2007 00:08:29 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Best Xmas Present&quot;</title>
      <link>http://george.hotelling.net/90percent/powers_that_be/best_xmas_present.php#comment-23200</link>
      <description><![CDATA[<p>congrats!!!!</p>]]>
        &lt;p&gt;- Mike K&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023200@http://george.hotelling.net/90percent/</guid>
      <pubDate>Tue, 25 Dec 2007 22:20:27 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Detroit Roundup&quot;</title>
      <link>http://george.hotelling.net/90percent/local/detroit_roundup.php#comment-23126</link>
      <description><![CDATA[<p>The hyperbole is a bit irritating.  I spend a lot of time in the city, and even some time in some fairly rough neighborhoods, but on the scale of things to be worried about I count having a car radio stolen as being pretty far below IEDs on the danger scale.</p>]]>
        &lt;p&gt;- d.w.&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023126@http://george.hotelling.net/90percent/</guid>
      <pubDate>Thu, 22 Mar 2007 11:29:15 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;Detroit Roundup&quot;</title>
      <link>http://george.hotelling.net/90percent/local/detroit_roundup.php#comment-23125</link>
      <description><![CDATA[<p>OTOH, Detroit led the region in new housing starts in both 2005 and 2006, several projects are underway in downtown and <a href="http://detnews.com/apps/pbcs.dll/article?AID=/20070321/BIZ/703210352/1001" rel="nofollow">Midtown</a>, JC Penney just announced that they'd be the anchor tenant in <a href="http://detnews.com/apps/pbcs.dll/article?AID=/20070321/BIZ/703210369/1001" rel="nofollow">an $80m shopping center on Woodward</a>, and builders in the region are reporting that Detroit's the best place to find work in the region these days.</p>

<p>My dad grew up in Detroit, and my mom in Grosse Pointe, just across Alter Road; we wandered around Detroit a bit last year, and both of them said that this was the first time in their lives when they could say Detroit looked like it was doing better than the previous time they were there.</p>

<p>I find it somewhere between depressing and infuriating how out-of-touch the metafilter thread is.  Nothing that will guarantee Detroit's demise - and from there Michigan - faster than willful denial of the good things that are actually happening.  Yes, life has been rough for 30 years, but that's no excuse for pooping on anything good that's happening.</p>

<p>Sigh.</p>]]>
        &lt;p&gt;- Murph&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023125@http://george.hotelling.net/90percent/</guid>
      <pubDate>Thu, 22 Mar 2007 11:21:06 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;inkling Markets 1 Week Later&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/inkling_markets_1_week_later.php#comment-23074</link>
      <description><![CDATA[<p>From the department of wild-assed-guesses department: George <a href="http://home.inklingmarkets.com/market/show/2359" rel="nofollow">tore into a really stupid / overly generic inkling market</a> today.</p>

<p>keep those trades coming!</p>]]>
        &lt;p&gt;- Brian&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023074@http://george.hotelling.net/90percent/</guid>
      <pubDate>Thu, 08 Mar 2007 21:29:16 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;SXSW Interactive 2007&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/sxsw_interactive_2007.php#comment-23071</link>
      <description><![CDATA[<p>Hi George,</p>

<p>I know we haven't officially met, but SXSW would be a good opportunity, right?</p>

<p>I'm still working out my schedule and will let you know if I find anything really special.  The list is so long... :)</p>]]>
        &lt;p&gt;- Ian&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023071@http://george.hotelling.net/90percent/</guid>
      <pubDate>Tue, 06 Mar 2007 13:46:18 -0500</pubDate>


    </item>
    <item>
      <title>Comment on &quot;SXSW Interactive 2007&quot;</title>
      <link>http://george.hotelling.net/90percent/geekery/sxsw_interactive_2007.php#comment-23070</link>
      <description><![CDATA[<p>I currently have a hotel reservation 5 miles outta town.  It looks like a nice place, but i suspect transportation needs would be a pain in the ass.</p>

<p>So instead of the hotel, i'm gonna go the riskier "Rent an apartment from someone" route.  The new place i plan on staying is just a bit off of South Congress road, so grabbing the bus or cab to go a few miles north should be super easy!  Couch is available in the living room.</p>

<p><a href="http://maps.google.com/maps?f=q&hl=en&q=Willowrun+Dr,+Austin,+Travis,+Texas+78704,+United+States&layer=&sll=30.227406,-97.755404&sspn=0.023917,0.032272&ie=UTF8&oi=georefine&ct=clnk&cd=1" rel="nofollow">Woodward  at S. Congess</a>  The streetname will feel like home.</p>

<p>Stupid UI makes me cry.  I plan on attending a bunch to do with User Interfaces, games,  and every party that sounds cool.  So far, there is only 2 clones required to achieve this.</p>

<p>Also, everyone seems to be hyping Tacos.</p>]]>
        &lt;p&gt;- Gabe&lt;/p&gt;</description>
      <guid isPermaLink="false">comment023070@http://george.hotelling.net/90percent/</guid>
      <pubDate>Mon, 05 Mar 2007 13:59:34 -0500</pubDate>


    </item>

  </channel>
</rss>