>>Your Opinion?? PHP or ASP.net for Overall Profitability

PHP or ASP.net - Which is Most Profitable for Your Online Business Needs

  • PHP

    Votes: 62 84.9%
  • Asp.net

    Votes: 11 15.1%

  • Total voters
    73
Definitely php if only for the huge amount of support, documentation, sample code and libraries available.
 


This is one of the dumber questions I've seen in a while.

Programming lanuages are nothing more than tools. Which is better for building a house - a hammer or a saw? Neither one, it depends on the job at hand.

Hammers and saws don't become part of the house/building. Concrete for the foundation and wood for the framing do; the ductwork and electrical wiring also become part of the structure.

Programming languages = Building materials(concrete, wood, metal, etc)

Programmers = hammers and saws
 
  • Like
Reactions: guerilla
It's hard to ask something like that because most people ussualy pick one language and stick to it for a majority of their projects, not using the other enough to make a bias opinion. I personally have coded in PHP daily for about 10 years, and ASP.net daily for about 5 (but have over 12 years experience in VB.net).

That being sad, ASP.net is the better option in my opinion due to the fact that it offers you so much stuff from one platform, where in PHP your extremely limited. To list just a few:

- Knowing either VB.net or C# allows you to not only developed advanced websites, extremely fast, but also extremely robust desktop applications too, all from the same language. This is especially handy if they go side by side (Example, you web site handles all of the front end work, yet you have a back end bot that uses all the data. You can easily develop one DAL/BLL DLL that will work in both instances... Even more so you have several sites all working with the same database and classes, you can compile 1 DLL and use for all. I commonly do this when I have a front end site, such as a social network, and a separate administration site.

- Knowing VB.net or C# also allows you to make extremely nice games, which can even be compiled into platforms such as WII using mono

- Knowing C# or VB.net also allows you to develop full apple store compliant iPhone apps using MONO

- Using C# or VB.net you can make extremely interactive web based applications such as Flash offers by using the Microsoft alternative, Silverlight... Free at that (My license to Adobe Creative was almost 1.6k).

- ASP.net offers something PHP can't even come close to offering right now, and thats the ability to use other languages with it. Do you have a huge site that you developed in PHP and want to use a ASP.net control or plugin you found? Sucks to be you, you have to port it all over to PHP. In .net however, you can easily compile PHP right to a DLL that works with every other .net language... But wait, you can also compile Ruby, Python, and as time goes on probably almost any other language into a DLL you can access right through your coding! EVEN JAVASCRIPT! (i'm sure you can see where compiling someones JS, as apposed to porting it all could be very useful)

Other reasons I suggest ASP.net would include, but are surely not limited to:

- PHP is open source... Most people find that as a plus, I sure the hell do not... The reason being PHP is funded by grants, not people who are paid to make a great product and get bonuses when the product does good. Since 2003, Microsoft has release a new version of their software pretty much every 2.5 years, and each time has added dramatic features. To name a few: LINQ, MVC, ASP.net Ajax, Silverlight, azure. PHP is currently about at the spot that ASP.net was back in ASP.net 2005 (.net 2.0).

- Compiling... I own a business of developing software for companies. I sell them my PHP coding, they will take that and have other, cheaper, developers make small mods to it. Sure you can comress PHP.net, but there is no easy, out of the box, way to compile. ASP.net however compiles all to a DLL. You distribute this DLL, and not your source, so all updates they have to do through you. It's a obvious if your selling your coding to clients which is the ideal choice.

- Ease of coding... In vb.net you simply add the following function to your class to have actions take place... which u can easily auto generate by clicking on the button in a visual environment! PHP on the other hand, u have to build the whole <form> with inputs and detect specific types of posts... Development time is dramatically less for me in ASP.net!
Private Sub btnClick_Clicked() handles btnclick.Click()
'dowork
end sub

-Cache... How easy is Cache in ASP.net? Simply put in the page header Cache=20 to cache the page 20 minutes... What does that do? Makes your page only load once every 20 minutes and in turn saves you tons of resources and makes your coding 10000 times faster! Now PHP offers this too, but no where near as simple as ASP.net

- Learning! PHP has tons of places to learn but nothing that comes close to ASP.net, for free, that I have found to date. Head on over to Learn : The Official Microsoft ASP.NET Site and you will find dozens upon dozens of free, step by step videos teaching for EVERYTHING from downloading Visual Web Developer, to making a full website. They even have tons of starter kits for many different things you would want to develop, all for *FREE*

- Did I mention *FREE*? Despite popular believe, Microsoft offers almost anything you would need to get started all for *FREE*! Visual Web Developer has everything you would ever need in a IDE and is 100% free. SQL Server express edition is free for databases 5 gigs and below, and if your DB is bigger than that, you better be able to spend the 15 bucks a month it is for a web license to the full version. But wait, do you have less than 10 employees in your company? Microsoft will over you licenses to everything you would ever need (few will need more than the free stuff anyways) for up to 3 years, 100% free of charge to help you grow! This includes professional versions of VS, unlimited SQL databases, Server 2008, Expression studio, and more! Sign up here: WebsiteSpark - Home

---------------------

As my list can go on for ever, keep in mind I develop both daily so my opinion here is extremely unbiased! But at the same time, it is an opinion.
 
I posted a pretty detailed break down of both for the original poster and it said will show up once approved, on Saturday I believe. Any suggestion on how to get it approved =/
 
@LogicFlux - both are correct. Programming lanuages are the tools and the finished product. Programmers are not the tools (well, some may be ;) ) - they are the builder.
 
It really depends what you like - I've been a M$ hater for a few years and used mostly opensource stuff - but when I switched to .NET and C#/VB I realized that M$ platform IS THE SHIT - in my opinion, the comfortability of Visual Studio/Web Developer, ease of use, developer-friendliness beats PHP and Java by far.
 
It's hard to ask something like that because most people ussualy pick one language and stick to it for a majority of their projects, not using the other enough to make a bias opinion. I personally have coded in PHP daily for about 10 years, and ASP.net daily for about 5 (but have over 12 years experience in VB.net).

That being sad, ASP.net is the better option in my opinion due to the fact that it offers you so much stuff from one platform, where in PHP your extremely limited. To list just a few:

- Knowing either VB.net or C# allows you to not only developed advanced websites, extremely fast, but also extremely robust desktop applications too, all from the same language. This is especially handy if they go side by side (Example, you web site handles all of the front end work, yet you have a back end bot that uses all the data. You can easily develop one DAL/BLL DLL that will work in both instances... Even more so you have several sites all working with the same database and classes, you can compile 1 DLL and use for all. I commonly do this when I have a front end site, such as a social network, and a separate administration site.

- Knowing VB.net or C# also allows you to make extremely nice games, which can even be compiled into platforms such as WII using mono

- Knowing C# or VB.net also allows you to develop full apple store compliant iPhone apps using MONO

- Using C# or VB.net you can make extremely interactive web based applications such as Flash offers by using the Microsoft alternative, Silverlight... Free at that (My license to Adobe Creative was almost 1.6k).

- ASP.net offers something PHP can't even come close to offering right now, and thats the ability to use other languages with it. Do you have a huge site that you developed in PHP and want to use a ASP.net control or plugin you found? Sucks to be you, you have to port it all over to PHP. In .net however, you can easily compile PHP right to a DLL that works with every other .net language... But wait, you can also compile Ruby, Python, and as time goes on probably almost any other language into a DLL you can access right through your coding! EVEN JAVASCRIPT! (i'm sure you can see where compiling someones JS, as apposed to porting it all could be very useful)

Other reasons I suggest ASP.net would include, but are surely not limited to:

- PHP is open source... Most people find that as a plus, I sure the hell do not... The reason being PHP is funded by grants, not people who are paid to make a great product and get bonuses when the product does good. Since 2003, Microsoft has release a new version of their software pretty much every 2.5 years, and each time has added dramatic features. To name a few: LINQ, MVC, ASP.net Ajax, Silverlight, azure. PHP is currently about at the spot that ASP.net was back in ASP.net 2005 (.net 2.0).

- Compiling... I own a business of developing software for companies. I sell them my PHP coding, they will take that and have other, cheaper, developers make small mods to it. Sure you can comress PHP.net, but there is no easy, out of the box, way to compile. ASP.net however compiles all to a DLL. You distribute this DLL, and not your source, so all updates they have to do through you. It's a obvious if your selling your coding to clients which is the ideal choice.

- Ease of coding... In vb.net you simply add the following function to your class to have actions take place... which u can easily auto generate by clicking on the button in a visual environment! PHP on the other hand, u have to build the whole <form> with inputs and detect specific types of posts... Development time is dramatically less for me in ASP.net!
Private Sub btnClick_Clicked() handles btnclick.Click()
'dowork
end sub

-Cache... How easy is Cache in ASP.net? Simply put in the page header Cache=20 to cache the page 20 minutes... What does that do? Makes your page only load once every 20 minutes and in turn saves you tons of resources and makes your coding 10000 times faster! Now PHP offers this too, but no where near as simple as ASP.net

- Learning! PHP has tons of places to learn but nothing that comes close to ASP.net, for free, that I have found to date. Head on over to Learn : The Official Microsoft ASP.NET Site and you will find dozens upon dozens of free, step by step videos teaching for EVERYTHING from downloading Visual Web Developer, to making a full website. They even have tons of starter kits for many different things you would want to develop, all for *FREE*

- Did I mention *FREE*? Despite popular believe, Microsoft offers almost anything you would need to get started all for *FREE*! Visual Web Developer has everything you would ever need in a IDE and is 100% free. SQL Server express edition is free for databases 5 gigs and below, and if your DB is bigger than that, you better be able to spend the 15 bucks a month it is for a web license to the full version. But wait, do you have less than 10 employees in your company? Microsoft will over you licenses to everything you would ever need (few will need more than the free stuff anyways) for up to 3 years, 100% free of charge to help you grow! This includes professional versions of VS, unlimited SQL databases, Server 2008, Expression studio, and more! Sign up here: WebsiteSpark - Home

---------------------

As my list can go on for ever, keep in mind I develop both daily so my opinion here is extremely unbiased! But at the same time, it is an opinion.

thanks for writing it in detail.
 
Okay, so - I have this EXACT conversation with my consulting customers ALL THE TIME.

They always want to know "Which one is better? X or Y?"

The answer is simple. There is no correct answer. At least not objectively.

The deeper answer is less simple. It simply depends on the situation. Any project involving coding - from writing Windows batch files 15 years ago to writing PHP today - depends on one thing specifically in order to answer the question:

WHAT ARE THE SPECIFIC REQUIREMENTS FOR THE JOB?

I could go one for DAYS about that. Most of the projects I work on for IT are 1-3 yeas and the requirements documentation alone takes 6 months and is in the hundreds of pages -but that doesn't matter. The process is always the same:

1.) Document requirements
2.) Document tool fulfillment and deficiencies of requirements
3.) Choose tool based on which sales person has managed to hire a hooker to blow the Senior Executive Procurement rep
 
Shark: Also should look at it from a business stand point. You code a $20,000 PHP project for a company and launch it on their own web host, then you have a potential of them taking what you coding and hiring a college student to make the small mods they need over the years. Now you code that same $20,000 program in ASP.net, only released the compiled DLL's protected so they can not be reflected, and now any time they need a change they have to come to you for paid changes.

Now realistically most small customers will just go to you anyways for changes, but I have had many people over the years try to change stuff themselves or hire someone to mess with my coding. You know what is worse then having someone mess with my work, which legally they are not allowed to because I never sign copyright over? Having to go and fix shit that they f'd up. And you can bet your ass I charge double per hour when that happens.

From a developer's intellectual standpoint, compiled languages offer a lot more of a guarantee of return work =]
 
PHP hands down.

Not only for the functionality, and ease of use. But more importantly the long term maintanence.

One thing I have found in over a decade online, developing many sites, is that you need to think of sites as if you need a new programmer each time you upgrade, or fix something. Some programmers disappear, and it's not always easy to find a programmer for certain languages.

Others will always want to scrap a site and start completely over if the code is complete crap or in a language they do not know. When you develop sites, you need to thing of not just the short term. But the long term pieces.