rss· 投稿· 设为首页· 加入收藏· 繁體版
当前位置: 火魔网 » 程序开发 » PHP

PHP的灯与红宝石在职业退休

Thursday, January 24th, 2008 星期四, 2008年1月24日

Here LAMP stands for Linux, Apache, MySQL and PHP, most of sites nowdays are built upon LAMP, including ours.这里灯随时为Linux , Apache , MySQL和PHP中,大部分网站都是建立在nowdays灯,包括我们。

RoR stands for Ruby on Rails, Rails is a framework for rapid website development and deployment.职业退休主张Ruby on Rails的,铁路是一个框架,快速的网站开发和部署。
Comparing languages, Ruby is a general-purpose language with a lot of influences from Smalltalk, Perl and other dynamic languages.  PHP is a special-purpose language and, although it has improved a lot over the years, it still doesn’t lend itself to the full range of object-oriented programming that Ruby does.比较语文,红宝石是一个通用的语言,大量的影响从Smalltalk , Perl和其他动态语言。 PHP是一个特殊用途的语言,尽管它已经有了很大改善多年来,它仍然不适合以全面的面向对象编程的红宝石没有。 But PHP does works well, even it is not that perfect.但是PHP也运作良好,即使不是完美的。 People’s stereotypical PHP site is a bunch of pages glommed together, a big ball of mud held together with goto statements, but the reality is the opposite.人们的成见PHP网站是一群网页glommed在一起,一个大球的泥土一起转到了发言,但现实是相反的。 Most production LAMP based sites are highly reliable and efficient, like ours.大多数生产灯泡的网站是非常可靠和有效率的,象我们这样的。

RoR (Ruby on Rails) really lives up to the name of a framework.  You ask it to generate a skeleton application and customize it as necessary.  It encourages you to follow some fairly well-known patterns, such as model-view-controller (MVC) and Active Record.  RoR uses a number of conventions, so that if you know one RoR application, it should be fairly easy to understand the next one you come across.  Hence, RoR has advantages when it comes to testing, making changes or adding features.职 业退休( Ruby on Rails的)真的辜负名称的框架。你问的只是生成了一个骨架应用和定制它是必要的。它鼓励你遵循一些比较知名的模式,如模型视图控制器( MVC模式)和Active记录。认可职业退休采用的一些公约,因此,如果你知道一个职业退休应用,它应该是相当容易理解下一次遇到。因此,职业退休的优 势是在测试,修改或增加的功能。
RoR also has canned solutions for a lot of common requirements.职业退休也有罐装的解决方案有许多共同的要求。 Not that you can’t do a lot of this with LAMP — it’s just that Rails is designed to support its approach so that it’s the natural way to do things.不是说你不能做了很多这与灯-只是Rails的目的是支持其做法,以便它的自然的方式做事。

Will RoR take over LAMP?将职业退休接管灯? Defenitely not in a forseeable future, the reason is any cool technology takes time to be mature and be accepted. Defenitely无法预见的将来,理由是任何酷的技术需要时间来成熟和被接受。

顶一下
(0)
踩一下
(0)