Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

11,343 Points

C# vs PHP

In what case using C# is better than PHP for web development?

2 Answers

But on a serious note. Really it doesn't matter. It's all a product of what stack you or the company you work for is invested in. Are you a mostly Windows shop that is already developing C#? or already heavily invested in running IIS and Windows servers? It probably makes sense to just develop your site/web app/whatever in C#.

On the flip side if I'm a company that is mostly unix/Linux and all my employees are working on Macs or Ubuntu workstations I would be hard pressed to start developing my site/app/whatever on a Windows platform. No point investing that money when I have a completely free stack (PHP/MySQL) sitting right there.

And finally...what language do you like better? If I have been coding in ASP.Net/C#/MSSQL for the past 5 years I would be hard pressed to flip to PHP/MySQL and vice-versa.

Hope that make sense!


11,343 Points

thanks for clarifying.

When your boss pays you to code in C# :)