Comparing Ruby on Rails to PHP is
unfair. PHP is simply a programming
language. However, it is an extremely
flexible and useful language. PHP uses
very little memory and performs quite
well. It is also a mature language
with a wide variety of extensions and
library modules. Originally developed
as a scripting language to be used in
HTML pages, PHP has gradually matured
and now includes full object oriented
features. The later add-on of object
oriented features is one of the
biggest criticisms of PHP. Some
programmers feel that PHP encourages
sloppy coding because of its
script-like roots and lack of a clear
object oriented strategy from the
beginning.
rubyonrails可以在Windows上工作(尽管我建议至少将Linux作为三种语言中的任何一种的虚拟机),并且它有several decent IDE's(我个人使用NetBeans,也可以用于Windows)。但正如我在评论中已经提到的,使用动态类型语言的方法与使用Java/C的方法有很大的不同,但是我想您必须亲自看到这一点。现在,我大部分的开发都是使用Vim(同样,也适用于Windows)。在
我在“普通”编辑器中缺少的最重要的IDE特性是紧密的SVN集成,即突出显示更改的行(尽管有Vim插件用于此)。在
到目前为止,我对PHP的使用最为幸运,因为它的应用非常广泛,而且有大量关于它的信息。有些人会对rubyonrails大喊大叫。它被认为是快速部署应用程序的好工具(它也有很多好的资源)。PHP不是最干净的语言,有很多问题,但在我看来,它很容易使用。最新版本的PHP支持过程和面向对象的方法。在
如果您愿意学习MVC框架,我推荐Python/Django和{a2}。理由:
针对Windows的Django设置有点烦人,因为每个教程似乎都假装您在运行一些Unix风格;有时您必须使用命令行,而windowscli支持是半生不熟的(如果您在Windows上,get a decent terminal和install some Windows native GNU tools)。不要害怕命令行,寻找特定于windows的指令,不要灰心-安装程序只需一次。在
设置之后,学习曲线是平滑的,只需遵循Django教程。我向你保证一个启发性的经验将改变你用其他语言编程的方式。在
关于其他动态语言:
相关问题 更多 >
编程相关推荐