.NET VS PHP

What is the best language?

  • .NET

    Votes: 9 32.1%
  • PHP

    Votes: 11 39.3%
  • Python

    Votes: 8 28.6%

  • Total voters
    28
U aren't comparing properly,php is mainly intended for web development,while other two for desktop application, if u want to learn for knowledge use python(it has easy syntax) and will run in mac ir linux without a code change,but implementing this in .net is hard.if u want to learn for professional use go with .net.major drawback with python is that distribution is very tough.u can never crypt your code compeletely.
 
it depends on where you want to use. b/w for me php is best for web development comparing with .net.
 
U aren't comparing properly,php is mainly intended for web development,while other two for desktop application, if u want to learn for knowledge use python(it has easy syntax) and will run in mac ir linux without a code change,but implementing this in .net is hard.if u want to learn for professional use go with .net.major drawback with python is that distribution is very tough.u can never crypt your code compeletely.
.NET is not just for desktop applications. Azure is Microsoft's cloud service and it runs nicely with c#z ASP.NET & Razor, and other various languages.

As for the question as to which is best, they all have their pros and cons. I'm biased towards .net because c# has grown into a powerful language - and you can start building out a desktop app quickly, and without too much work convert it into a web app. Plus there are a lot of great libraries in .net that you can leverage to speed up dev time
 
Emm, hard to answer without more data but I program in many languages

Short story long, learn both python and php. Both are really really easy, and helpful in most situations.

My 99% of programming time goes for both of them
 
the best programming language is a language that can solve problems and logic, if I think the best in the web is php
 
What is the best language?

.net isn't a language it's a framework used by multiple languages developed by Microsoft like C# , VB.NET , F# ...., I'm familiar with php , python , C# , Vb.NET ... , i vote for C# for these reasons :

1. with C# could develop any application fast , .e.g. : desktop app using winforms or web app using asp.net , mobile app using xamarin , of course there's other frameworks and technologies to do with C# , anything could comes to your mind could develop using C# , while in other languages like php or python isn't fast as that frameworks .

2. C# was easier for me to learn comparing with php , python ...etc considering the GUI in each framework make it simpler to learn fast .

3. keep in mind most famous bot frameworks in the market like ubot and zennoposter developed using C# .

could start learning c# free from here .


important advice also , Don't try learning multiple languages at same time , just stick with one language at the beginning , when you master one could learn the other .

good luck .
 
There is no best language.

It all depends what ur trying to accomplish.

If ur trying to build a starter site php is a good start but as with any language there is only so many things it can accomplish.

You will find that you will need to use many languages to achieve what you want in the end.

So if ur looking to build a site look at HTML CSS JavaScript jquery, python, Ruby, php,chi,perl,go lang, react, json,xml,rest. For ur basic sites.

You can also may find u need to build an application for either Linux or windows that connects to the net for this I'd advise using the c language
 
I code php at work and C# in my free time.

I would choose C# any day. Writing good php is much harder, its not type safe, allows for ugly code constructs, bad compiler help, cannot even hint the type of elements inside an array.
In short you have to be a good programmer to write good php (if you want to write large applications)

Now on the other hand what c# offers:
* dozens of quality books, start here:
* http://blog.ploeh.dk/archive/
* Dependency Injection in .Net
* Agile Principles, Patterns and Practices in C#

* Azure
* Entity Framework
* Linq
* Tasks

and much more :)
 
.NET (I think you mean C# here) is a much more capable and elegant language than PHP. PHP is easier to learn and therefore ubiquitous on the web. Are you making apps or web pages? Use C# for apps and PHP for webdev is a safe bet.
 
C# is more expensive technology, just compare prices of Windows/Linux/BSD servers and programmers costs per hour.
 
Well Python and Django let's you do regular websites with a python Backend, so just another idea how to utilize.WordPress and many other still use php so as others have said depends what you want to do
 
Python is in my opinion most productive(short codes) with fairly easy syntax to understand.
First language I learned was Java, if you want to do Android dev then Java is the way to go, otherwise It isn't really my first choice.
 
Back
Top