<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>大徳日記 &#187; REST</title>
	<atom:link href="http://www.saitoudaitoku.com/wordpress/?cat=30&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.saitoudaitoku.com/wordpress</link>
	<description>飲むのが好きなパソコンお○くの日記</description>
	<lastBuildDate>Thu, 01 Sep 2011 14:18:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>第１回RESTful本読書会</title>
		<link>http://www.saitoudaitoku.com/wordpress/?p=487</link>
		<comments>http://www.saitoudaitoku.com/wordpress/?p=487#comments</comments>
		<pubDate>Mon, 14 Apr 2008 14:23:03 +0000</pubDate>
		<dc:creator>daitoku</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[REST]]></category>

		<guid isPermaLink="false">http://www.saitoudaitoku.com/wordpress/?p=487</guid>
		<description><![CDATA[RESTful本でプレゼントが当たったからというわけではないが、RESTful読書会に参加してきました。本当はプレゼントのTシャツを着て行きたかったのだが風邪ぎみなので断念。が、私の他にもプレゼントをもらったt-wada [...]]]></description>
			<content:encoded><![CDATA[<p> <a href="http://www.saitoudaitoku.com/wordpress/?p=463">RESTful本でプレゼントが当たった</a>からというわけではないが、<a href="http://kunit.jp/restful/wiki/index.php?%C2%E81%B2%F3%C6%C9%BD%F1%B2%F1">RESTful読書会</a>に参加してきました。本当はプレゼントのTシャツを着て行きたかったのだが風邪ぎみなので断念。が、私の他にもプレゼントをもらったt-wadaさんはばっちり着てきてました。さすがです。</p>
<p>今回の範囲は、１章、２章、３章だったがみんないろいろ熱い議論をしたくて集まっているだけあって１章からスパークしていました。以下、今回の収穫と感想。</p>
<ul>
<li>監訳者の山本さんのRESTful本へのサイン</li>
<li>RESTful本を読んだら、次はWEB+DB Vol42の鼎談（ていだん）を読むべし。<a href="http://gihyo.jp/dev/serial/01/rest">動画</a>もあるよ。</li>
<li>２章のサンプルは横着せずちゃんと写経して自分で動かしてみると理解が進む</li>
<li>PHPの人が多かった</li>
</ul>
<p>また会場にはもちろんRESTに肯定的な人が多い中、その中でも客観的な分析をしていた<a href="http://capsctrl.que.jp/kdmsnr/diary/20080412.html">kdmsnrさんの意見</a>が興味深かったです。</p>
<p>残念ながら次回は仕事で参加できない予定。RESTは最近なにかと話題になっているもののまだまだで、これらどのように発展していくのかが楽しみです。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saitoudaitoku.com/wordpress/?feed=rss2&#038;p=487</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RESTful Webサービス</title>
		<link>http://www.saitoudaitoku.com/wordpress/?p=436</link>
		<comments>http://www.saitoudaitoku.com/wordpress/?p=436#comments</comments>
		<pubDate>Wed, 16 Jan 2008 19:53:17 +0000</pubDate>
		<dc:creator>daitoku</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[書評]]></category>

		<guid isPermaLink="false">http://www.saitoudaitoku.com/wordpress/?p=436</guid>
		<description><![CDATA[何かと話題な本なのでプチッとクリックして英語版を買って積読していたのだが、昨年末に本屋で日本語版を見つけて泣きながらレジに…。 主張は、「インターネットでWebサービスを公開するんだったら、メソッドを公開するよりも、 U [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.co.jp/gp/redirect.html%3FASIN=4873113539%26tag=saitoudaitoku-22%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/4873113539%253FSubscriptionId=1N9AHEAQ2F6SVD97BE02" title="Click and drag this image to the post editor"><img src="http://ecx.images-amazon.com/images/I/21RXsMNvdwL.jpg" align="left" hspace="10" vspace="10" width="123" /></a>何かと話題な本なのでプチッとクリックして英語版を買って積読していたのだが、昨年末に本屋で日本語版を見つけて泣きながらレジに…。</p>
<p>主張は、「インターネットでWebサービスを公開するんだったら、メソッドを公開するよりも、 URIにマッピングしてリソースをいろいろ公開したほうがいいよ。そうすると、リソースにブックマークできるし、URLを他人に知らせることが出来るし、リソース同士で相互にリンクも張ることでプログラムがリンクをたどれるし。あとHTTPにはちょうどいい感じでCRUD(Create, Read, Update, Delte)に相当するメソッド(Post, Get, Put, Delete)があるから、公開するリソースへのアクセスはこれらのHTTPのメソッドを使ってさ。で、このコンセプトをROA(Resource Oriented Architecture)と呼ぼうぜ！」といったところか。</p>
<p>これを読むと沸々と「リソースに全部URIをつけて公開するのはいいと思う。意味のあるURLは分かりやすいし。そう思うとWebサービスでない普通のWebアプリもこの規約に従えば、いいことはあっても悪いことはないのではないだろうか？さしてポリシーも無くURLを決めるぐらいだったら、WebアプリでもURLに関してはRESTfulにしちゃってもいいのでは？後でそのままWebサービスとして公開するのも簡単だし。」</p>
<p>などと思ったりしていたのだが、Railsはすでにそうなっていた。以下、<a href="http://peepcode.com/products/rails2-pdf">Rails2 PDF</a>より</p>
<blockquote><p>Rails 2 makes no apologies for its all-in attitude about RESTful development and replaces the standard script/generate scaffold with the scaffold_resource functionality from 1.2. The general attitude　seems to be &#8220;Why wouldn&#8217;t you want to create RESTful scaffolding?&#8221;.<br />
There&#8217;s not much not to like with the RESTful generation – giving you RESTful forms in the view templates and the appropriate RESTful structure in your controllers.</p></blockquote>
<p>教訓：英語版の技術書を買うんだったら和訳が出るまでに読みきらないと悲しい結果になる</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saitoudaitoku.com/wordpress/?feed=rss2&#038;p=436</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
