tag:blogger.com,1999:blog-5430866.post131874030182529617..comments2024-01-02T08:54:14.406-05:00Comments on Peter Bromberg's UnBlog: ASP.NET 2.0 vs PHP -- or PHP.NET?peterbromberghttp://www.blogger.com/profile/18173639411723574123noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5430866.post-14219284367891919152008-04-24T20:08:00.000-05:002008-04-24T20:08:00.000-05:00Philip, you obviously have not coded with Asp.net,...Philip, you obviously have not coded with Asp.net, or have a php biased opinion The .Net framework <B>IS</B> a codebase of methods etc.to help you get up and running faster. If you look at the direction php/mysql is heading, they are copying Microsoft and Asp.net.... Stored procedures, Frameworks(cake, drupal etc). Microsoft has had these features implemented for years. Php wasn't really object oriented until release 5. I have been coding with PHP since version 3, so I am no stranger to it. As far as Peter bringing up Myspace and Asp.net, it's with good reason. Don't you think Myspace could/would use the best technology available?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5430866.post-50629302989333465592007-11-11T19:54:00.000-05:002007-11-11T19:54:00.000-05:00I always find this comparison quite interesting. I...I always find this comparison quite interesting. I have worked in both technologies long enough to compare the two. And being honest ASP.net can get a job done but I would not recommend it to a serious and disciplined programmer over PHP. The things you can do with an untyped language and the many other freedoms found in PHP can either get you in a serious tangled mess or can allow you to write far less code than a language like C#. I'm not knocking C# I'm simply saying that if you take away all the safeguards against bad programming the results are amazing.<BR/><BR/>And on this whole code seperation thing. Codebehind is nothing that could not have been done in PHP in the first place and in fact it HAS been done all along. Most GOOD programmers wrote their php in a modular form with code for the page at the top and display code at the bottom. You create your dynamic elements at the top and hold them in strings that are echoed in the display code. This is FAR more efficient performance wise than building the dynamic stuff inline with the display markup. Through the use of php's flexible include function you could then move that entire code block to a seperate file and replace it with one line of code and voila....codebehind. You still have access to all variables classes etc. in you new found code behind. And putting a simple php shorthand echo statement within your html is no different that putting all those asp control tags in. The only difference is that while asp.net will dictate the html coming out of those controls (unless overridden) php allows you to dictate your own html or use some of the free classes to get asp style controls.<BR/><BR/>Everytime I see these same pro asp.net arguments I believe most people either have not really used php or have no clue what they are doing if the language doesn't tell them what to do. I mean wake up people... ASP.net is a framework. PHP is a language... you can actually build the ASP.net framework in PHP (if you actually know what you are doing).....see PradoAnonymoushttps://www.blogger.com/profile/00849400429503038501noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-58768245639608025772007-06-08T15:41:00.000-05:002007-06-08T15:41:00.000-05:00I'm not sure I agree with all that. You are saying...I'm not sure I agree with all that. You are saying this because you are used to developing with PHP. <BR/>I can throw together an ASP.NET app just as fast as any PHP developer can do the same in classic PHP. The point of the article is that Phalanger now allows you to do your PHP thing and gain the advantage of compiled code.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-69777597524702485572007-06-08T14:31:00.000-05:002007-06-08T14:31:00.000-05:00The thing about PHP is it is nice when developing ...The thing about PHP is it is nice when developing lower-level, "quick and dirty" applications.<BR/><BR/>Unless you're working for a pretty big company, chances are you're not creating another myspace.com or Yahoo!. You're probably just making a comment form or a database driven web page.<BR/><BR/>For that, .NET requires way too much overhead in setting permissions, setting up the form, etc. etc. You can do the same thing, for a small project, in PHP, by hand, much faster.<BR/><BR/>There is no reason to use .NET if you're versed in the ways of PHP unless you're working for a large enough company to warrant using it.<BR/><BR/>Just my humble opinion.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5430866.post-76201520798351736112007-03-13T23:31:00.000-05:002007-03-13T23:31:00.000-05:00Why do you keep referring to MySpace? MySpace is s...Why do you keep referring to MySpace? MySpace is slow and has the worst HTML code I have ever seen, so I wouldn't doubt that the programmers behind it aren't any better. And just because MySpace runs on IIS and APS doesn't mean it's great. MySpace got popular for the idea, NOT because it runs on ASP!<BR/><BR/>"MySpace.com's average server CPU utilization went from 85% to 27% after moving (from another technology) to ASP.NET 2.0"<BR/>That <I>technology</I> was ColdFusion, which is SLOW. You can't compare PHP and ASP and then talk about how ASP is better than <B>ColdFusion</B>. You really had no valid arguments against <B>PHP</B>.<BR/><BR/>Also, IIS is a pretty good server, but it's nowhere near Apache's level.xmusicfreakxhttps://www.blogger.com/profile/09723452170030352418noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-88796325941634368692007-01-24T10:21:00.000-05:002007-01-24T10:21:00.000-05:00Re "Hi There". Sorry but you have some incomplete ...Re "Hi There". Sorry but you have some incomplete info or you are just very opinionated. IIS is an excellent web server, its in broad use by major sites all over the world (in fact, MySpace the most visited site in the world, runs on IIS). You can run ASP.NET on either IIS or Apache, and even on Linux with the MONO runtime.<br />Moreover, your contention that you cannot control the output with ASP.NET as with PHP is just dead wrong. If you look at the statistics on performance, it is very easy to see why a compiled language platform is superior to one running an interpreted language.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-26245693061989369542007-01-24T09:57:00.000-05:002007-01-24T09:57:00.000-05:00Hi there. Funny enough, I didn´t knew that you cou...Hi there. Funny enough, I didn´t knew that you could build windows aplications with Php...<br /><br />I'm a great Php fan, and not so much an ASP.NET fan, although I like windows and it's framework in general.<br /><br />There is something else that you should discuss, instead and comparing ASP.NET vs Php, which is, where they work on.<br />Don't forget that ASP.NET isn't actually a programming language, it uses code behind that can be in any MSIL converted language.<br />The biggest problem with ASP.NET, is it's platform, and Php wins greatly when it works under Apache. Apache is a very strong, and relieble web server, which can't be said by IIS.<br /><br />Another downside of ASP.NET, is the fact that you don't control the output (you can do it, but no one does). With Php (for example), you control every single space or 'new line' that goes to the client. That gives you a lot of control on the final aplication.<br /><br />There is a final fact that makes Php a bit better than ASP.NET.<br />ASP.NET enables you to change the layout (with limits) without the need to recompile the application, but Php enables you to change not only the layout, but the application's functionality without compiling anything (it's interpreted)...<br /><br />Cheers.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5430866.post-37166701527114670472006-12-17T18:45:00.000-05:002006-12-17T18:45:00.000-05:00No, Prado is strictly PHP and has nothing to do wi...No, Prado is strictly PHP and has nothing to do with .NET. Here, I am focusing on compiled PHP under the Microsoft .NET Framework only.peterbromberghttps://www.blogger.com/profile/18173639411723574123noreply@blogger.comtag:blogger.com,1999:blog-5430866.post-3621983198809972832006-12-17T09:54:00.000-05:002006-12-17T09:54:00.000-05:00From your article, I learn that there are at least...From your article, I learn that there are at least two PHP.NET framework.:) have a look at http://www.pradosoft.com/, you will find another php framework which simulate .NET framework.Anonymousnoreply@blogger.com