Saturday, May 9, 2009

C# .NET vs PHP?

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?

C# .NET vs PHP?
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.
Reply: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.
Reply: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.


No comments:

Post a Comment