Valhalla Legends Archive

Programming => Web Development => Topic started by: DecA on December 06, 2004, 06:40 PM

Title: ASP.NET vs PHP
Post by: DecA on December 06, 2004, 06:40 PM
ASP.NET or PHP ? what are some pros and cons of each ?

Wich is better in your opnion, and why
Title: Re: ASP.NET vs PHP
Post by: quasi-modo on December 06, 2004, 07:17 PM
Asp.net, and here is why. 
Php has the one big advantage of being fully cross platform compadable. It is of course now object oriented too, so I cannot say asp.net has that over php (but there is still that fact that php is just server parsed html). But asp.net is free to use, it can be done in any text editer. You do not even need windows to run asp.net, mono allows it to run on mac, unix, linux, and lesser versions of windows for free, but it is not 100% compete for every language yet. B8ut do not count on mono going away as if microsoft touches it novell is going to take microsoft to court on anti trust charges for this and several other things.
Title: Re: ASP.NET vs PHP
Post by: Mr. Neo on December 06, 2004, 07:29 PM
I prefer to use PHP for web development.  To me, PHP was a lot easier to learn as I come from a Perl background.  Much of the base syntax and functions were very similar to Perl, which made it a lot easier to pick up on.  Another reason I prefer to use PHP is that I do most of my developing on a Windows machine and I actually host on a Linux server.  I needed something more cross-platform compliant than ASP.NET.  

Which you use, will depend on what your more familiar with and what platform you plan to deploy on.
Title: Re: ASP.NET vs PHP
Post by: quasi-modo on December 06, 2004, 07:45 PM
The stuff about php being easier to learn though is not really provable unless you know both. I would tend to believe otherwise, as I listed above language flexibility is something that asp.net has that php cannot offer. If you know vb, you can pickup vb.net and be running with it in days. If you know java you can use j# or c#, if you know delphi, you can use that, c++, you can use that, and so on. If you have past experience Asp.net will have a syntax you are familiar with.

Also with asp.net: You will most likely be hosted on a windows server because of the lack of compadability, so a situation like yours would not arrise.
Title: Re: ASP.NET vs PHP
Post by: Mr. Neo on December 06, 2004, 08:12 PM
True, if you were to be using ASP.NET you would most likely be on a Windows server.  If he would have specified that he was planning to use a Windows host, and not even consider a Linux solution, then a situation like mine wouldn't occur.  But since he left that part open-ended, the situation had to be brought up.

I was unaware of the fact that with ASP.NET you could use vb.net and such.  I always thought that ASP.NET was just classic ASP with a layer to interact with the .NET CLR (?).  You learn something new everyday I guess :).

Im a bit confused on one point though, is the entire ASP.NET application server-side or does it require the enduser to have the .NET Framework installed on their machine?
Title: Re: ASP.NET vs PHP
Post by: Banana fanna fo fanna on December 06, 2004, 09:41 PM
ASP.NET is superior in every regard except for portability and prevalence on cheap/free web hosts.

It's easy for VB'ers.
Title: Re: ASP.NET vs PHP
Post by: hismajesty on December 07, 2004, 05:28 AM
PHP, but only because I don't know ASP.NET, though I do have a rather large book that I should read.
Title: Re: ASP.NET vs PHP
Post by: Banana fanna fo fanna on December 07, 2004, 06:07 AM
- asp.net has better performance
- asp.net has better code reuse = faster devel time
- asp.net has support from major companies, thus has superior tools/job markets
- asp.net has the power of the whole .NET library behind it
Title: Re: ASP.NET vs PHP
Post by: DecA on December 07, 2004, 06:35 AM
Quote from: hismajesty[yL] on December 07, 2004, 05:28 AM
PHP, but only because I don't know ASP.NET, though I do have a rather large book that I should read.


Hahaha, i laughed so hard when i read that, becasue i saw that book on your desk, its like 1500+ peages~
Title: Re: ASP.NET vs PHP
Post by: quasi-modo on December 07, 2004, 08:15 PM
Quote from: Banana fanna fo fanna on December 07, 2004, 06:07 AM
- asp.net has support from major companies, thus has superior tools/job markets
asp classic was always know as a buisiness server side lang. Even to this day a majority of corperate sites are using asp classic. All of these sites are going to need to upgrade in the future and are night now on the old technology. They are really starting to make the switch right now, so finding work as an asp.net developer is easier to do then if you use the other langs. Even asp classic. Thought everything helps.
Title: Re: ASP.NET vs PHP
Post by: MyndFyre on December 07, 2004, 08:50 PM
Quote from: quasi-modo on December 07, 2004, 08:15 PM
Quote from: Banana fanna fo fanna on December 07, 2004, 06:07 AM
- asp.net has support from major companies, thus has superior tools/job markets
asp classic was always know as a buisiness server side lang. Even to this day a majority of corperate sites are using asp classic. All of these sites are going to need to upgrade in the future and are night now on the old technology. They are really starting to make the switch right now, so finding work as an asp.net developer is easier to do then if you use the other langs. Even asp classic. Thought everything helps.

Ahhh the good old days of ASP classic.  I once made my clan's site out of ASP....  A good majority of the pages were only 7 lines long, which was enough to skin the site and load the static content from the database.  Then I had the one skinning processor, which was 27kb....  ;)  All JScript too!  :D
Title: Re: ASP.NET vs PHP
Post by: quasi-modo on December 08, 2004, 08:08 PM
Well now you can make a site fully skinnable for the user and even have it compiled. All you need is a css file and you are good to go. Look at www.csszengarden.com , every design on there uses the same markup.
Title: Re: ASP.NET vs PHP
Post by: Black4C6F747573 on December 09, 2004, 09:02 AM
I've heard alot of good things about asp, but I code in C, so I went with PHP.  Previous background in VB i hear is reccommended for asp.  GL
Title: Re: ASP.NET vs PHP
Post by: quasi-modo on December 09, 2004, 09:29 PM
Quote from: Black4C6F747573 on December 09, 2004, 09:02 AM
I've heard alot of good things about asp, but I code in C, so I went with PHP.  Previous background in VB i hear is reccommended for asp.  GL
Asp.net != asp classic. Just because you know c and not vb does not bar you by any means form using asp.net, whatever happened to c#, j#, c++.net, and all of the other wonderful langs to choose from when coding asp.net?