<?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>1/30土、PHP『 超 』初心者勉強会に参加して来ました。 へのコメント</title>
	<atom:link href="http://www.mztm.jp/2010/01/31/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mztm.jp/2010/01/31/php/</link>
	<description>水玉製作所のページ</description>
	<lastBuildDate>Mon, 09 Aug 2010 10:57:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>2/17水、PHP『 超 』初心者勉強会に参加して来ました。2 &#124; 水玉製作所 より</title>
		<link>http://www.mztm.jp/2010/01/31/php/comment-page-1/#comment-165</link>
		<dc:creator>2/17水、PHP『 超 』初心者勉強会に参加して来ました。2 &#124; 水玉製作所</dc:creator>
		<pubDate>Wed, 17 Feb 2010 15:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mztm.jp/?p=4287#comment-165</guid>
		<description>[...] ▼前回の様子はこちら http://www.mztm.jp/2010/01/31/php/           Comments (0) Trackbacks (0) Leave a comment Trackback      [...]</description>
		<content:encoded><![CDATA[<p>[...] ▼前回の様子はこちら <a href="http://www.mztm.jp/2010/01/31/php/" rel="nofollow">http://www.mztm.jp/2010/01/31/php/</a>           Comments (0) Trackbacks (0) Leave a comment Trackback      [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>umhr より</title>
		<link>http://www.mztm.jp/2010/01/31/php/comment-page-1/#comment-150</link>
		<dc:creator>umhr</dc:creator>
		<pubDate>Tue, 02 Feb 2010 04:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mztm.jp/?p=4287#comment-150</guid>
		<description>システムハンガリアンってやつ？
うーん、そこまでやるんだったら、型指定しちゃえばいいのに。
言語自体は（型の部分での）おせっかいはしないで、
IDEが人のミスをカバーする方がいいような。

なんにしても、phpを使う際、気に留めておきます。ありがとう。</description>
		<content:encoded><![CDATA[<p>システムハンガリアンってやつ？<br />
うーん、そこまでやるんだったら、型指定しちゃえばいいのに。<br />
言語自体は（型の部分での）おせっかいはしないで、<br />
IDEが人のミスをカバーする方がいいような。</p>
<p>なんにしても、phpを使う際、気に留めておきます。ありがとう。</p>
]]></content:encoded>
	</item>
	<item>
		<title>ema より</title>
		<link>http://www.mztm.jp/2010/01/31/php/comment-page-1/#comment-149</link>
		<dc:creator>ema</dc:creator>
		<pubDate>Mon, 01 Feb 2010 04:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mztm.jp/?p=4287#comment-149</guid>
		<description>phpでの型の存在って凄く難しいです。

型を気にせずかける良さもあります。
(制御構文によっては一致しない型でもキャストして比較してくれたりする。)
しかしforeachはarray型でない変数を回そうとすれば内部サーバエラーです。
whileはarray型でない変数を回そうとすれば、そこの制御はスキップしますので、エラーとならないです。

この型をあまり意識しないで制御が出来る故、ifの制御構造で比較演算子を適当に書くとバグの元となりえることがあります。
http://php.net/manual/ja/language.operators.comparison.php

なので、型指定はせずとも、変数名に型のヒントとなるような名前をつけると、変数名でどういう値かというのが分かり、比較的バグが発生しづらいプログラミングが出来ると思います。
ex.
array型:$testAry
boolean型:$testFlag
int型:$testNum

などなど。</description>
		<content:encoded><![CDATA[<p>phpでの型の存在って凄く難しいです。</p>
<p>型を気にせずかける良さもあります。<br />
(制御構文によっては一致しない型でもキャストして比較してくれたりする。)<br />
しかしforeachはarray型でない変数を回そうとすれば内部サーバエラーです。<br />
whileはarray型でない変数を回そうとすれば、そこの制御はスキップしますので、エラーとならないです。</p>
<p>この型をあまり意識しないで制御が出来る故、ifの制御構造で比較演算子を適当に書くとバグの元となりえることがあります。<br />
<a href="http://php.net/manual/ja/language.operators.comparison.php" rel="nofollow">http://php.net/manual/ja/language.operators.comparison.php</a></p>
<p>なので、型指定はせずとも、変数名に型のヒントとなるような名前をつけると、変数名でどういう値かというのが分かり、比較的バグが発生しづらいプログラミングが出来ると思います。<br />
ex.<br />
array型:$testAry<br />
boolean型:$testFlag<br />
int型:$testNum</p>
<p>などなど。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
