Php & Asp.net , Anybody?
-
John Simmons / outlaw programmer wrote:
On the other hand, it's much harder to code in because (while I was doing it) I couldn't "debug" it in the normal sense of the word.
I myself dislike weak-typed languages, they are just more error-prone. That said, I used to do some PHP a few years ago, and I always thought it was "OK" (but I did not know ASP.NET at the time). The problems come when you have to build big applications, and you end up having extremely convoluted code (just take a look at WordPress or phpBB) which is, as you said, very hard to debug. The whole mess just doesn't "feel" right. You bend the architecture to a great extent in order to fit into the language's limits. On a side note, ASP.NET application tend to "feel" faster than PHP ones, at least without optimizers of some sort. On the other hand, in PHP you can dynamically load code files, achieving a great flexibility...
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki
Dario Solera wrote:
I myself dislike weak-typed languages, they are just more error-prone.
Why? I use both and make no more errors in one than the other. The errors are just different.
Dario Solera wrote:
The problems come when you have to build big applications, and you end up having extremely convoluted code (just take a look at WordPress or phpBB) which is, as you said, very hard to debug
Nonsense. As with any programming language you can shoot yourself in the foot if you try (or don't try). I'm sure there are many ASP.NET projects that are convoluted and messy.
Dario Solera wrote:
On a side note, ASP.NET application tend to "feel" faster than PHP ones
Subjective. My subjective opinion is that ASP.NET sites tend to be sluggish and bloated (sorry, CodeProject)
-
Anybody has good experience with both PHP & Asp.net? Can you share your experience? I was having a conversation :rolleyes: with my friend. I looked at PHP and read few lines and I could take that as I-hate-php. I'm not a full time web-developer. In fact, I've not done any big projects in Asp.net. But with my little experience with it, I could say, it could really be the fastest way to build a web application. C# & Visual studio just rock. The problem is he has not worked in Asp.net and me not in Php. It doesn't makes much sense to talk much. If someone can say few words may be like- The biggest advantages and disadvantages from both the sides, It'll be nice. Please take up the mic :). *Leaves the stage*
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
-
Anybody has good experience with both PHP & Asp.net? Can you share your experience? I was having a conversation :rolleyes: with my friend. I looked at PHP and read few lines and I could take that as I-hate-php. I'm not a full time web-developer. In fact, I've not done any big projects in Asp.net. But with my little experience with it, I could say, it could really be the fastest way to build a web application. C# & Visual studio just rock. The problem is he has not worked in Asp.net and me not in Php. It doesn't makes much sense to talk much. If someone can say few words may be like- The biggest advantages and disadvantages from both the sides, It'll be nice. Please take up the mic :). *Leaves the stage*
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
Very important factor: I find that in general the community of users surrounding asp.net--c# specifically, is much more 'intelligent' with regard to programming where it is treated more as a science or engineering venture rather than a coding exhibition. (i use quotes because this will be a point of contention among readers). This suggested phenomenon would yield more fruitful a resource when it comes to discussion forums and coding example articles. I'm NOT saying good PHP resources don't exist, it's just that there is a lot of noise or static out there in the PHP world IMHO from my experience that gets in the way.
-
Dario Solera wrote:
I myself dislike weak-typed languages, they are just more error-prone.
Why? I use both and make no more errors in one than the other. The errors are just different.
Dario Solera wrote:
The problems come when you have to build big applications, and you end up having extremely convoluted code (just take a look at WordPress or phpBB) which is, as you said, very hard to debug
Nonsense. As with any programming language you can shoot yourself in the foot if you try (or don't try). I'm sure there are many ASP.NET projects that are convoluted and messy.
Dario Solera wrote:
On a side note, ASP.NET application tend to "feel" faster than PHP ones
Subjective. My subjective opinion is that ASP.NET sites tend to be sluggish and bloated (sorry, CodeProject)
Johnny ² wrote:
I'm sure there are many ASP.NET projects that are convoluted and messy.
A'm also pretty sure. But it really depends on the average quality of the ASP.NET developer, I suppose. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Anybody has good experience with both PHP & Asp.net? Can you share your experience? I was having a conversation :rolleyes: with my friend. I looked at PHP and read few lines and I could take that as I-hate-php. I'm not a full time web-developer. In fact, I've not done any big projects in Asp.net. But with my little experience with it, I could say, it could really be the fastest way to build a web application. C# & Visual studio just rock. The problem is he has not worked in Asp.net and me not in Php. It doesn't makes much sense to talk much. If someone can say few words may be like- The biggest advantages and disadvantages from both the sides, It'll be nice. Please take up the mic :). *Leaves the stage*
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
VuNic wrote:
C# & Visual studio just rock.
That's because you are used to it. There is no right or wrong answer to which is better? The question generally need ti be phrased as "Which is better given the circumstances?". One of the decisions that was made by my team here 10 years back was to develop a client with VB and server with C++. Now nobody did any VB programming before so the developer had to learn VB and then write the code. It is still easier to build UI in VB6 compared with MFC/C++. But whatever benefit you got from the speed got wasted in learning VB6. The same applies to PHP/ASP.NET. If someone is already familiar with PHP he can develop interfaces faster in PHP.
-
Dario Solera wrote:
I myself dislike weak-typed languages, they are just more error-prone.
Why? I use both and make no more errors in one than the other. The errors are just different.
Dario Solera wrote:
The problems come when you have to build big applications, and you end up having extremely convoluted code (just take a look at WordPress or phpBB) which is, as you said, very hard to debug
Nonsense. As with any programming language you can shoot yourself in the foot if you try (or don't try). I'm sure there are many ASP.NET projects that are convoluted and messy.
Dario Solera wrote:
On a side note, ASP.NET application tend to "feel" faster than PHP ones
Subjective. My subjective opinion is that ASP.NET sites tend to be sluggish and bloated (sorry, CodeProject)
Johnny ² wrote:
Dario Solera wrote: I myself dislike weak-typed languages, they are just more error-prone. Why?
Because in a weak type language you can reference an object as if it is of another type. If you try to do this in a strong type language it will not compile thus preventing errors. Back in the day, I used to code VB.Net and when we turned on option strict and option explicit the number of errors went down.
Johnny ² wrote:
Subjective. My subjective opinion is that ASP.NET sites tend to be sluggish and bloated (sorry, CodeProject)
If I am not mistaken codeproject was done in classic ASP and ported to .net. While I love codeproject. I agree it is bloated. But that has nothing to do with .net V PHP but rather the amount of content, scripts and links on each page.
As with any programming language you can shoot yourself in the foot if you try (or don't try). I'm sure there are many ASP.NET projects that are convoluted and messy.
I agree with you on this. As a matter of fact, I have found ASP.Net makes it extremely easy to shoot yourself in the foot. Because you can get very far with ASP.Net even with little knowledge. You could make an ASP.Net application without even knowing javascript, html, css or how the page life cycle works. But if you don't learn these things you will get burned eventually.
I didn't get any requirements for the signature
-
VuNic wrote:
C# & Visual studio just rock.
That's because you are used to it. There is no right or wrong answer to which is better? The question generally need ti be phrased as "Which is better given the circumstances?". One of the decisions that was made by my team here 10 years back was to develop a client with VB and server with C++. Now nobody did any VB programming before so the developer had to learn VB and then write the code. It is still easier to build UI in VB6 compared with MFC/C++. But whatever benefit you got from the speed got wasted in learning VB6. The same applies to PHP/ASP.NET. If someone is already familiar with PHP he can develop interfaces faster in PHP.
-
Rama! You must be loyal to WPF & LINQ thing. Shouldn't you be? :rolleyes:
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
VuNic wrote:
Rama! You must be loyal to WPF & LINQ thing.
Rama has not been particularly impressed with WPF.
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
VuNic wrote:
Rama! You must be loyal to WPF & LINQ thing.
Rama has not been particularly impressed with WPF.
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
Anybody has good experience with both PHP & Asp.net? Can you share your experience? I was having a conversation :rolleyes: with my friend. I looked at PHP and read few lines and I could take that as I-hate-php. I'm not a full time web-developer. In fact, I've not done any big projects in Asp.net. But with my little experience with it, I could say, it could really be the fastest way to build a web application. C# & Visual studio just rock. The problem is he has not worked in Asp.net and me not in Php. It doesn't makes much sense to talk much. If someone can say few words may be like- The biggest advantages and disadvantages from both the sides, It'll be nice. Please take up the mic :). *Leaves the stage*
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
It has been a few years since I touched PHP, but at that time, I used it for a few sites. It really seemed like more of a hacked together language, but then you could write routines in C and add them to the platform. It's resources could not be compared to the massive .NET frameworks class library. Most of the time it appeared that developers would blend PHP with the HTML causing it hard to track out code and of course, leaves presentation and code tied together. While in the ASP.NET world, that can still be done or one many pages, may be done at some level, the new Code Behind model of ASP.NET really helped. Now, on the ASP.NET side, you have the ability to use the same programming language for both web and libraries not to mention most of the .NET frameworks at your finger tips. If you are a .NET developer it should be a fairly simply thing to build out web applications along with share code with desktop version. I have custom libraries I use on both Desktop apps and Web apps without any changes. Great time saver. Add to this the new ASP.NET MVC which allow for even greater separation of presentation from code, that can help to keep things even cleaner. There is also now Sivlerlight which allows for most of .NET to be run in the client. So now, you can take you .NET langauge of choice and your knowledge and build out desktop, web apps and client side rich apps without missing a beat. I think the biggest thing that pushes PHP is that it is not by Microsoft. If someone else would have come up with ASP.NET, no one would probably be using PHP today :)
Rocky <>< Recent Blog Post: Silverlight Domain Names up for grabs! Thinking about Silverlight? www.SilverlightCity.com
-
It has been a few years since I touched PHP, but at that time, I used it for a few sites. It really seemed like more of a hacked together language, but then you could write routines in C and add them to the platform. It's resources could not be compared to the massive .NET frameworks class library. Most of the time it appeared that developers would blend PHP with the HTML causing it hard to track out code and of course, leaves presentation and code tied together. While in the ASP.NET world, that can still be done or one many pages, may be done at some level, the new Code Behind model of ASP.NET really helped. Now, on the ASP.NET side, you have the ability to use the same programming language for both web and libraries not to mention most of the .NET frameworks at your finger tips. If you are a .NET developer it should be a fairly simply thing to build out web applications along with share code with desktop version. I have custom libraries I use on both Desktop apps and Web apps without any changes. Great time saver. Add to this the new ASP.NET MVC which allow for even greater separation of presentation from code, that can help to keep things even cleaner. There is also now Sivlerlight which allows for most of .NET to be run in the client. So now, you can take you .NET langauge of choice and your knowledge and build out desktop, web apps and client side rich apps without missing a beat. I think the biggest thing that pushes PHP is that it is not by Microsoft. If someone else would have come up with ASP.NET, no one would probably be using PHP today :)
Rocky <>< Recent Blog Post: Silverlight Domain Names up for grabs! Thinking about Silverlight? www.SilverlightCity.com
Rocky Moore wrote:
I think the biggest thing that pushes PHP is that it is not by Microsoft
Exactly.
Rocky Moore wrote:
t's resources could not be compared to the massive .NET frameworks class library.
That's exactly my argument. There's a HUGE stock pile of ammunitions with Asp.net already. And MS keeps adding one everyday. Just like it's gone past 12,000 tested warheads already. People keep saying, "This one?, I can code the same in PHP". "A datagrid? I can do the same in PHP". But why one needs to do it? When there's already tested/Proven components available with the Dotnet framework. I really feel PHP to be pre-historic when compared to Asp.net. I heard there are few frameworks available for PHP too. But I'm sure it can never be compared to Asp.net. I would agree if it had evolved to the levels of J2EE. Where it looks meaningful to say "Dot.net vs J2EE". (Jps sucks btw). But Php Vs Dotnet looks like comparing an elephant to a dinosaur. [php-ers,Be proud I've called php - an elephant! :P]
Rocky Moore wrote:
you have the ability to use the same programming language for both web and libraries not to mention most of the .NET frameworks at your finger tips.
Well said. That's one big point!
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.