|
Well, if it's object oriented...then you don't like php since it's a procedural language. Object oriented would be ASP, JSP, etc. However, with php5, php will now support both methods of programming syntax. I know most people find it easier to learn a procedural language.
In terms of sheer speed...I say php is faster than all of them. Why? Well, it's not just personal preference, I have a lot of reasons for this. The most major of which have to do with the way asp handles things. Every single thing you do in asp requires the code to call in a com object. Every com object called is cpu intensive. So, when it all adds up, I think php is faster. Besides, with an optimizer, i.e. Zend or ionCube, php has both jsp and asp beat hands down.
Also, please guys...try to keep in mind my original request. "I don't just want votes, I want valid intellectual arguments going on here." That is a direct quote from my original post in this topic. I would like it a lot if you all would post more than three to seven words.
Utinam logica falsa tuam philosophiam totam suffodiant
|
|
06-07-2003 08:44 |
|
|
I must apologize for my previous post. It was short, without explanation and bordering on idiotic.
I must admit that I do not have a great deal of experience programming in any of the above languages, but I have taking a great deal of interest in PHP of recent. And I suppose that is the reason I voted for PHP in the poll, not so much because of not liking the other options, but because I liked PHP the most. And I stick with my choice, even though PHP is a procedural language.
On another point, I personally try to steer clear of anything Microsoft (ASP) when it comes to programming. This is mainly since the release of C#, which is clearly Java(Unless you ask an employee of MS that is ) Microsofts recent gimmick left a bad taste in my mouth I have to say. Also, compatibly is an issue with Microsoft, they don't like to share.
But, when it comes to syntax i choose OOP when possible. OOP can be very powerful when used correctly.
But the choice between the two, in this instance, really comes down to the size and complexity of the project in question. You need to weight up the trade-offs of one design over the other.
If your site needs to be able to handle 1000's of user with hundreds of thousands of database connection then you really need to be developing using J2EE and harnessing the power of the OOP design.
For smaller projects however, this may be a step to far, and one that is unnecessary. Speed may be your primary concern here, and i would imagine that PHP would beat Java in a race to the line.
verum ipsum factum
|
|
06-07-2003 21:45 |
|
|
Perl creator Larry Wall says that he designed Perl to make the easy things easy while making the difficult things possible. By contrast, PHP makes some of the easy things even easier and still gets the harder ones done. Java makes the big things more scalable and makes everything more object-centered.
On the other hand, Perl makes a lot of things weirder. It's a simple language to learn, once you can get past the culture shock. PHP has removed much of the quirkiness from Perl, but in the process it has lost just a little of the power and I hope that It might become more powerful when PHP 5 would be released. Java makes the hard things easier, especially since a lot of them have already been done and can be included or inherited efficiently. But it also makes some of the easy things a bit harder than perhaps they should be.
All the Scripting languages do pretty much the same thing. They interface with databases, they access the file system of the OS, and they create dynamic pages. As a result, the reasons why you'd choose one over another are pretty subjective, it all depends on who you are and what you're trying to do. When deciding whether to go with PHP, ASP, ColdFusion, ASP or something else, the most important matter to consider is who will be working on your website now and in the future
One cannot pass comment on PHP without first passing comment on open source. The very philosophy of open source is itself one of the driving reasons behind the popularity of PHP. Many, many articles have been written and even more arguments have taken place over the position of open source in a modern, e-commerce-based Internet. Let's just say that the Internet, and e-commerce for that matter, would not be around today if it weren't for the open source model.
Perhaps the most compelling argument for PHP is its cost: Nothing. Zip. Zero. For a lot of people, that's a big deal. Their old PC can run Linux, Free BSD, or what have you; they install Apache, PHP, MySQL, and whatever editor they choose and get hacking. Total cost? Merely the time it takes to set it all up. For many, this appeals to the hacker mentality that the Internet was built on. Why pay for something when you can get something just as good or better for free? The same applies to using Perl.
The old hacker mentality also applies to PHP's coding style. PHP borrows its language style and syntax from a number of other sources, including C, Java, Perl, and others. For many people with previous programming experience, this means implementing their first Web-based application in PHP is a simple affair, as they already have an implicit understanding of how their program should go together.
PHP's open source model means extra additions to PHP are just a compile away. Sure ASP has COM objects and ColdFusion has custom tags, but you can't beat the raw speed of adding your own function to the PHP source code.
Some would argue that all these server-side scripting languages are merely for displaying information from a database on a screen, and they'd largely be right. But PHP isn't just a database-centric language. It does so much more: dynamic graphics generation, IMAP, SNMP, LDAP, XML they're all there. Sure, Perl does all that, but a lot of people find Perl more difficult to learn and a little too top-heavy for most Web apps. And mod_perl can be a bit imposing. Speaking of databases, did I mention PHP can interface with Sybase, Oracle, Informix, Solid, Postgres, and even MSSQL?
PHP is a godsend for the smaller developer as well. PHP is so cross-platform, it's just silly. Again, for no cost, you can fully develop any application using PHP (and perhaps MySQL) on your Windows machine as though it was your production server. For many people, this solves a problem they face every day. Sure, some things don't work on the Win32 version, but you won't bump up against those until you're into advanced stuff, and by then you'll be thinking about Unix anyway. Additionally, PHP will run on just about any flavor of Unix you care to think of. You don't need to be tied down to one or two commercially based operating systems.
PHP has been criticized for its lack of session handling. But this was overcome previously by the use of the PHPLIB library, and now session support has been built into PHP4. And ISAPI support, which had been lacking, is also now covered by PHP4 (plus PHP contains a generalized server API library to make it easily adaptable to other Web server APIs).
As a conclusion all I can say is PHP is best due to Its open source, active and fast developing nature. Moreover, PHP is free, easy, useful, extendable, and simply the coolest one.
www.gamingcell.com
|
|
06-08-2003 02:35 |
|
|