hi all,
i have already some good experience with php and iam learnin asp.net now and after a deep study and comparison of these languages i concluded this things:
PHP
- run in a major of OS
ASP.net
- run only in windows like systems
PS: an open source implementation of the .net framework is in development (http://www.go-mono.com/)
PHP advantage
PHP
- is dificult to debugging (need third parties software)
- dont have a good ide. i´ve already used zend studio and it quite complicated and useless.
ASP.net
- has an integrated development environment very good, which supports debugging, editing many kinds of documents e.g. images,etc. , managing databases
asp.net advantage
PHP
- doesnt support data and html caching natively, u need third parties software
ASP.net
- suports natively
asp.net advantage
PHP
- its interpretated at time of execution (im sure until 4.x) but im not sure about php 5.0
ASP.net
- its compilated in a sort of IL (intermediate language) and translated into native code (JIT) only in the first request of the client.
asp.net advantage
separation between presentation and business code
PHP
- u need a third party api (i.e. FastTemplate)
ASP
- supports natively. business code is put in a file, usually aspx.cs, and presentation is put in other file, usually aspx.
asp.net advantage
asp.net uses rad (Rapid development, like vb).
Php dont have an default ide (zend?). when i have to do an web application using php i usually make the design in dreamweaver mx and after i use an editor like ultraedit...
asp.net advantage
talking about oo, i cannot say bad things about php because the new zend engine (2.0) had included a lot of concepts of oo paradigm like encapsulation, exception handling, etc... so PHP is doing quite well in oo...
finally what i want to conclude it that PHP its suitable for small/medium applications (where u dont have $$ for buying vs.net, etc or when u want something simple) and asp.net its something more enterprise
anyone know the new model of zend engine 2.0? pre-compilated to an intermediated language or still interpreted. And anyone know any benchmark of PHP x asp.net? because i only found an benchmark comparing php with asp.
feel free to disagree with me, i want to put clear the diferences between them. in the botton i put some references i used for studyng..
thnx
Sérgio
references:
PHP5: Ready for enterprise
Diferences between asp.net and php