How does ASP.NET compare with PHP?

It seems to me that everyone on the Internet is talking about PHP / ROR / Python, but few people mention ASP.NET. Oddly enough, here in China, most books on shelf-based web development in bookstores deal with ASP.NET. I just want to know what is β€œwrong” with ASP.NET in these web forums. I'm really new to web development, and I just learned a little PHP and haven't touched ASP.NET yet. I would like to know the pros and cons of PHP and ASP.NET. Thank you very much!

+4
source share
3 answers

There is nothing wrong with ASP.NET. In addition, it is Microsoft technology, so some communities avoid mentioning it or mention it only to say it is evil, without giving a real explanation.

It all depends on the community. Here at StackOverflow, I see more questions about ASP.NET than about PHP. There are other ASP.NET-oriented websites.

If you want to choose what to use, try both . This is the only way to make a real choice without influencing the opinion of a person who believes that PHP sucks and is used only by beginners who do not know anything about programming, or a person who believes that everything related to Microsoft is bad.

+4
source

I assume you mean ASP.NET, since ASP is deprecated and deprecated in a sense.

It is very difficult to compare PHP / Python / Ruby with ASP.NET. It would be wiser to compare the framework. PHP has some popular structures called Zend and CakePHP. Python has Django. Rubin received, of course, Ruby on Rails. ASP.NET has MVC.

There is nothing wrong with ASP.NET. Actually ASP.NET MVC2 is very neat. If you use it with Visual Studio, you basically don't need anything, since you can debug your application from the visual studio web server that comes with the IDE. MSDN has a lot of documentation on the MVC framework, and many people at stackoverflow are experts.

The only drawback is that you need to host your site on Microsoft Server, which is usually more expensive than Linux. If you are used to Linux, you will also need to consider some rise time and training costs, because Windows Server is completely different. You can also use SQL Server 2008 because Microsoft technologies usually work well together.

There are many things you need to consider when you want to create a website with something you are not familiar with. I recommend you just get started. If you are learning to acquire skills that can help you get some job offers, find out what skills you need. If ASP.NET is used a lot in China, I would recommend that you pick up ASP.NET MVC and start development, although it will cost you some money. Otherwise, switch to PHP / Python / Ruby, because thousands of sites that use these languages ​​and frameworks are used in these languages.

For ASP.NET MVC2, this is a good starting point.

By the way, stackoverflow is built on ASP.NET MVC + SQL Server 2008 + C #

+2
source

You have an integrated IDE and access to the entire .NET infrastructure if you use asp.net compared to php.

0
source

Source: https://habr.com/ru/post/1340405/


All Articles