<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Yining.write() &#187; PHP</title>
	<atom:link href="http://www.yining.org/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yining.org</link>
	<description>public virtual stream Yining.write()</description>
	<lastBuildDate>Fri, 04 Jun 2010 12:01:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>		<item>
		<title>PHP比其它语言好的绝对理由</title>
		<link>http://www.yining.org/2008/04/24/why-php-is-better-than-others/</link>
		<comments>http://www.yining.org/2008/04/24/why-php-is-better-than-others/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 06:26:53 +0000</pubDate>
		<dc:creator>Yining</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.yining.org/?p=154</guid>
		<description><![CDATA[月光博客上写了一篇Java在Web开发语言上败给了PHP，TSS上很早就讨论了，这回在月光博客那里又吵起来了，各说各有理，各有各的瘾，想起从前论坛上一句名言：人是不能被说服的，只有被打服。（哎，跑题了）
好，那又有什么理由说PHP比其它语言好呢，还绝对？
答案是：MM。
MM？是的, 美媚，women, female, , Frauen, fille，girls, chicks&#8230; （得，这么写，会被当作spam么？）
Tim Bray在OpenWeb and PHP and Women首先观察到：
there are way more women in the audience. 
然后看看留言的解释或者解释，也都很有道理：
PHP being a language that is far better at attracting people without a formal training in programming.
I&#8217;d agree with the people who ascribe it to the move from designer to (often unintentional) programmer. I know [...]]]></description>
			<content:encoded><![CDATA[<p>月光博客上写了一篇<a href="http://www.williamlong.info/archives/1314.html">Java在Web开发语言上败给了PHP</a>，TSS上很早就讨论了，这回在月光博客那里又吵起来了，各说各有理，各有各的瘾，想起从前论坛上一句名言：人是不能被说服的，只有被打服。（哎，跑题了）</p>
<p>好，那又有什么理由说PHP比其它语言好呢，还绝对？</p>
<p>答案是：MM。</p>
<p>MM？是的, 美媚，women, female, , Frauen, fille，girls, chicks&#8230; （得，这么写，会被当作spam么？）</p>
<p>Tim Bray在<a href="http://www.tbray.org/ongoing/When/200x/2008/04/14/PHP-Women">OpenWeb and PHP and Women</a>首先观察到：</p>
<blockquote><p>there are <em>way</em> more women in the audience. </p></blockquote>
<p>然后看看留言的解释或者解释，也都很有道理：</p>
<blockquote><p>PHP being a language that is far better at attracting people without a formal training in programming.</p></blockquote>
<blockquote><p>I&#8217;d agree with the people who ascribe it to the move from designer to (often unintentional) programmer. I know several women who fit into this category, and unlike the women &#8220;programmers&#8221; that I know, I don&#8217;t know these women *because* they are programmers. These women don&#8217;t really think of themselves as programmers &#8212; it&#8217;s more an unintentional role they fell into in order to get things done.</p></blockquote>
<p>Okay，标题党骗点结束。其实总结就是：对非程序员科班出身的网页设计师（很多是女性）来说，PHP是最容易迈入网站开发的语言。对已经有了静态网页设计的基础的他们来说，想要进一步实现动态页面，比如显示“早安/晚上好“或者显示时间，只要很简单一句话。接着就可以很快掌握提交的表单的处理，直接使用$_POST和$_GET即可，再下一步就能很快进入数据库操作，也不需要预先了解和加载驱动程序。</p>
<p>用Java呢？恩&#8230;我们要先有个类，什么？&#8230; 哦 &#8230; 让我们从介绍什么是类，等等，你们需要知道什么是面向对象，抽象地说形而上地来说每一个物体都可以看作是一个对象&#8230;对象有属性也有动作&#8230; ?*%#^%$水克火^&#038;!%火克金&#038;&#038;*#@^法克由!@&#038;~</p>
<p>这点上看，PHP最方便地提供了一个能够不断提供正反馈的学习，实践和进阶的过程, 能够让学习者很快get into the <a href="http://www.douban.com/subject/1419011/">flow</a>，同时也是最接近Web的语言。这能鼓励和吸引许多想要开发动态页面而又不是程序员科班出身的设计师和爱好者们。</p>
<p>为什么最方便呢，因为很普遍，绝大部分的虚拟主机服务提供商都会提供PHP环境，很少提供perl，ruby，java，python的环境（最近google推出的AppEngine算个特殊例子），这是它们的环境特性决定的，这也是PHP的一大优势之处，具体请看：<a href="http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/">What PHP Deployment Gets Right</a>。</p>
<p>至于讨论语言本身的优势和功能，争论哪个语言的代码的结构端庄优雅更出得厅堂入得厨房，咱就不参和了，<a href=""http://thedailywtf.com/>The Daily WTF</a>上看看，什么语言的都有的。</p>
<p>月光博客还提到一个问题：“而成功的Java网站却寥寥无几，这又是什么原因呢？”，原因很简单，都在吭哧吭哧埋头赚钱呢，全球许许多多的金融业(retail banking, corporate banking, risk management)企业的网站都是用Java实现的，另外，ebay和阿里巴巴也都是用Java。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yining.org/2008/04/24/why-php-is-better-than-others/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

