Question:
C# .NET vs PHP?
2007-12-15 21:06:35 UTC
Ok I was wondering what are the advantages and disadvantages of each. My boss wants me to start learning .NET at work. I am excited to learn it. But it seems so much more difficult than php.

For one thing everything is done completely different. Accessing databases seems so much easier to me in PHP. I was looking at code one of our .NET programmer uses to access a database; complicated! It was impossible trying to parse through it. He mainly programs .NET with C#. And C# looked completely different than php. There is a lot of stuff in their that isn't in php.

All the layers in .NET I found confusing. I know it makes things more organized, but I prefer the way PHP globs PHP, Javascript, and html into one file, code seems so much more readable to me that way.

So what advantages are there to .NET? Why would you want to migrate from php to .NET?
Four answers:
catbertnc
2007-12-15 21:23:20 UTC
If your boss wants .NET, then you have to give him .NET. You may prefer PHP, but he's the boss, and it's his call. Those are the perks of being in charge, other people have to adapt to your style.
Zurahn
2007-12-15 22:00:36 UTC
C# is a language that can be used to write windows applications as opposed to just web. I don't really think it's a language designed to build a website around, only specific applications. I've used both, although I can't say I'm an expert.



If there was a request for you to learn C# .NET, it's probably to fulfill a role that PHP cannot.
stockett
2016-12-11 11:14:07 UTC
backside lines: Mono helps dot internet on all Unix/GNU Linux systems. GCC helps purpose C. on an identical time because it has easily been ported over to living house windows various circumstances, living house windows restricts GCC-compiled executables to 32 Megs. There are different regulations, so it could't be a good platform for it. i could say a macbook with Bootcamp. you're speaking a pair of little extra money even though it is a value through the years extremely than a good deal. one extra ingredient you have not seen. How significant is networking possibly to be to you down the line? maximum companies which do networking use some sort of *nix. Google makes use of various, regardless of what they say approximately Goobuntu. Yahoo! makes use of FreeBSD (and sponsers it). Even Microsoft contracts its internet websites out to a linux-based hosting business enterprise as a results of reliability themes. Oh, and Mac OS X is a Unix-derived OS.
Steven V
2007-12-15 21:33:38 UTC
You really need to take a class on C#. You can try New Horizons if you live near one. It's expensive, but if you need to learn a language quick and you're confused on what to do, go there.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...