<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3462658744634470242.post9108004050733149323..comments</id><updated>2010-02-21T07:24:18.057-08:00</updated><category term='logging'/><category term='couchdb'/><category term='flash'/><category term='processing'/><category term='pubsubhubub'/><category term='javascript'/><category term='debugging'/><category term='random'/><category term='malware'/><category term='webfinger'/><category term='curl'/><category term='mapreduce'/><category term='perlin'/><category term='λ'/><category term='comet'/><category term='plurk'/><category term='appengine'/><category term='js'/><category term='CSS3'/><category term='python'/><category term='twitter'/><category term='history'/><category term='atom'/><category term='nodejs'/><category term='windows'/><category term='asynch'/><category term='WebWorkers'/><category term='sharding'/><category term='HTML5'/><category term='xrd'/><category term='humor'/><title type='text'>Comments on --verbose: Request Routing With URI Templates in Node.JS</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.dashdashverbose.com/feeds/9108004050733149323/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default'/><link rel='alternate' type='text/html' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html'/><author><name>Sean</name><uri>http://www.blogger.com/profile/02665804009944491315</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_AUNxsGKsbmw/S2ygmIwJHII/AAAAAAAACfI/M-1-OZoHB1g/s1600/Photo+2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3462658744634470242.post-8391997358863871772</id><published>2010-02-21T07:24:18.057-08:00</published><updated>2010-02-21T07:24:18.057-08:00</updated><title type='text'>I&amp;#39;d check if the request.method exists in the ...</title><content type='html'>I&amp;#39;d check if the request.method exists in the handler and return a 405 otherwise.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/8391997358863871772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/8391997358863871772'/><link rel='alternate' type='text/html' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html?showComment=1266765858057#c8391997358863871772' title=''/><author><name>greut</name><uri>http://yoan.dosimple.ch/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html' ref='tag:blogger.com,1999:blog-3462658744634470242.post-9108004050733149323' source='http://www.blogger.com/feeds/3462658744634470242/posts/default/9108004050733149323' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-88339740'/></entry><entry><id>tag:blogger.com,1999:blog-3462658744634470242.post-6085103148058630694</id><published>2009-12-29T07:04:41.901-08:00</published><updated>2009-12-29T07:04:41.901-08:00</updated><title type='text'>Clearer syntax is the point.  How often do you nee...</title><content type='html'>Clearer syntax is the point.  How often do you need the full power of RegExp for path parsing?  Rarely.  And you end up with typos, unintentionally greedy patterns that match other handlers&amp;#39; request paths.  Really RegExp is overkill.  &lt;br /&gt;&lt;br /&gt;PLUS- this method uses the variable {names} from the URI template as the actual variable names returned in a match.  So you don&amp;#39;t have to iterate through the RegExp match groups manually looking for a parameter from the URI.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/6085103148058630694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/6085103148058630694'/><link rel='alternate' type='text/html' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html?showComment=1262099081901#c6085103148058630694' title=''/><author><name>Sean</name><uri>http://www.blogger.com/profile/02665804009944491315</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13837871466967044510'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html' ref='tag:blogger.com,1999:blog-3462658744634470242.post-9108004050733149323' source='http://www.blogger.com/feeds/3462658744634470242/posts/default/9108004050733149323' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-946937638'/></entry><entry><id>tag:blogger.com,1999:blog-3462658744634470242.post-8847101134548866163</id><published>2009-12-24T02:58:11.806-08:00</published><updated>2009-12-24T02:58:11.806-08:00</updated><title type='text'>Hmm. But it&amp;#39;s still ends up as a regex. What&amp;#...</title><content type='html'>Hmm. But it&amp;#39;s still ends up as a regex. What&amp;#39;s the point (besides somehow clearer syntax)? Regex-only URI (like the ones implemented in `nerve`) will be much more flexible.&lt;br /&gt;&lt;br /&gt;On the other hand, for simple tasks as this, I think clear syntax will outweight other concerns.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/8847101134548866163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/8847101134548866163'/><link rel='alternate' type='text/html' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html?showComment=1261652291806#c8847101134548866163' title=''/><author><name>kuroikaze85</name><uri>http://kuroikaze85.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html' ref='tag:blogger.com,1999:blog-3462658744634470242.post-9108004050733149323' source='http://www.blogger.com/feeds/3462658744634470242/posts/default/9108004050733149323' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-179782579'/></entry><entry><id>tag:blogger.com,1999:blog-3462658744634470242.post-3226183491451524699</id><published>2009-11-22T11:41:30.951-08:00</published><updated>2009-11-22T11:41:30.951-08:00</updated><title type='text'>Hm. It just occurred to me that the URI template p...</title><content type='html'>Hm. It just occurred to me that the URI template parameter-to-function-parameter mapping is positional, so that the names in the template must be in the same order as the names in the handler function.  So you could&amp;#39;t change /comments/ handler to take (commentId, postId) and have it still work.  This code would produce the reverse of what would would expect for those two parameter values.&lt;br /&gt;&lt;br /&gt;Instead of calling apply() with the parameter array, it could just pass in the Route.parse() results as a single parameter to the handler.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/3226183491451524699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3462658744634470242/9108004050733149323/comments/default/3226183491451524699'/><link rel='alternate' type='text/html' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html?showComment=1258918890951#c3226183491451524699' title=''/><author><name>Sean</name><uri>http://www.blogger.com/profile/02665804009944491315</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13837871466967044510'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dashdashverbose.com/2009/11/request-routing-with-uri-templates-in.html' ref='tag:blogger.com,1999:blog-3462658744634470242.post-9108004050733149323' source='http://www.blogger.com/feeds/3462658744634470242/posts/default/9108004050733149323' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-946937638'/></entry></feed>
