karim wrote:
> If you're interested in a comparison between php and asp.net, this page is
> a good one:
>
<font color=purple> > <a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/htm</font" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp...tm</</a>>
> l/phpvsaspnet.asp
Interesting read to say the least. It's interesting to see how apples
and oranges really are compared...
For instance... error handling is said to be used much less in PHP than
ASP.NET by developers because of the absence of try and catch methods...
Is this to say that it is the language's fault? Of course not, that's
like saying all asp.net programmers use it all the time.
Statements about the non-strict typing are made. Of course, PHP
developers know that there are strict operators to facilitate this like
=== and !==. I guess Microsoft missed that one in the docs
Event driven methods... Gee, I thought the whole point of using a
technology like perl or php was so you didn't have to rely on the
client's software capeabilities...
I agree that not being able to hide class components, no inheritance is
a bit of a drag, so chalk that one up for Microsoft. However "ASP.NET
forces developers to use a truly object-oriented approach to application
design." - not all situations call for this, and that could just make
the code harder to read.
Oops... "such as the set of msql_ functions that work with MySQL"
Interesting:
Table 1. Microsoft .NET Languages
APL COBOL
Eiffel Forth
FORTRAN Haskell
Standard Machine Language Mercury
Mondrian Oberon
Pascal Perl
RPG Scheme
SmallScript
No PHP in the list? I guess you don't want the world to know that you
can use the "inferior" product with yours huh? Afterall, you can use PHP
syntax for ASP just like you can with the others...
Point and case: "We then look at the opportunities created by each
platform for code reuse." - OK, here's one against you... I can't reuse
ASP code on my linux box, but can use my PHP code on both platforms.
That's gotta count for someone.
"Finally, we examine the amount of quality of documentation available
for both PHP and ASP.NET." Define "quality documentation." Personally, I
think that PHP is one of the best documentated languages I've ever used
- especially when you take into consideration the user comments in the
online manual. (Although, I've never looked as ASP docs.)
"There are a few very important differences between data access methods
in PHP and in ASP.NET. First, ASP.NET performs all data access through a
standardized set of objects named ADO.NET. By forcing all data access
through this common set of objects, regardless of the data source,
ASP.NET breeds data-access familiarity amongst developers. In other
words, once you've learned how to connect to and send queries to a
Microsoft SQL Server, you're going to understand how to perform the same
actions with almost any data source. No such comparison can be made with
PHP since PHP uses a completely different set of data access functions
for each data source." ....
Loosely translated: "Don't bother worrying about which database
abstraction utility performs better because you have to use ours in ASP
anyway." or "Why would you want to have that RDMS's specific features if
you can make all databases be the same?"
I also notice that all the database-specific things deal with MS SQL or
MySQL. They state that "...with ASP.NET, you have the additional option
of using a managed provider for Microsoft SQL Server versions 7.0 ...
which provide[s] more efficient and robust access to data than ODBC."
OK, it works for one RDMS. However, PHP has how many natively-supported
databases? Just off the top of my head: MySQL, MS SQL, Postresql,
Oracle, DB++, FrontBase, FilePro, mSQL, SyBase and Dbase (don't forget
the mysqli extensions). Plus both ASP and PHP can use any datbase
through the proper ODBC drivers.
As I said, interesting read. Also, if you look at the bottom of the
page, the average rating is 2 of 9...
--
Justin Koivisto - spam DeleteThis @koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: PHP vs ASP.NET info