• Welcome to Valhalla Legends Archive.
 

ASP.NET vs PHP

Started by DecA, December 06, 2004, 06:40 PM

Previous topic - Next topic

DecA

ASP.NET or PHP ? what are some pros and cons of each ?

Wich is better in your opnion, and why

quasi-modo

Asp.net, and here is why. 
  • Asp.net is just as fast as php if not faster because of the fact that it is compiled on application start, similar to jsp.
  • Asp.net can offer better language flexibility then php as php can only be done in one language and asp.net can be done in a great many (vb.net, c#, j#, c++.net, and several others).
  • Asp.net also has the advantages of asp classic, one of such is application wide variables.
  • Asp.net now has lots of integrated controls which can make coding much easier, such as the repeater. The repeater control will loop and print data with the developer only having to set which data set to get it from, this saves you between 5 and 10 lines of code depending on what you are trying to do. There are other controls that do things like this too, which makes life easier.
  • Asp.net is now quasi event oriented with its controls, it leaves the developer not having to deal with form actions anymore, which saves more code. A developer of course can always go back to that classic style of conding if he or she wants to in order to regain some control

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.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Mr. Neo

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.

quasi-modo

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.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Mr. Neo

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?

Banana fanna fo fanna

ASP.NET is superior in every regard except for portability and prevalence on cheap/free web hosts.

It's easy for VB'ers.

hismajesty

PHP, but only because I don't know ASP.NET, though I do have a rather large book that I should read.

Banana fanna fo fanna

- 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

DecA

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~

quasi-modo

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.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

MyndFyre

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
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

quasi-modo

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.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Black4C6F747573

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

quasi-modo

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?
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle