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

Sultan X
Sultan X
530 Points

Guys, would you choose PHP or ASP.NET and C# in 2024 for web development?

I just want to see others opinion in this.

Which one would you choose in 2024 and why? or which one would you recommend to others?

1 Answer

Steven Parker
Steven Parker
231,275 Points

The TIOBE Index ranks language popularity (in general, not just for web development) and updates it every month. This month (April 2024), PHP hit it's lowest position since they've been keeping score. So that might not be a great choice going forward.

I'm surprised that you didn't mention either JavaScript or Python, which rank #1 and #3 respectively in the current (2024) LAMBDATEST Best Languages For Web Development in 2024 ratings. And Python is #1 in the TIOBE Index.

There are several resources like this online, you might want to peruse a few of them before making your decision. Ultimately, the best language for web development depends on several factors, including your goals, the type of projects you want to work on, and the job market in your area.

Sultan X
Sultan X
530 Points

Hi Steven,

Because I know JavaScript started for client side and it should vebe for that. I don't like Node and lots of packages.

Python is nice but is not popular in web development and it is slower than php and asp.net in performance :). It is more popular for data science I guess.

Steven Parker
Steven Parker
231,275 Points

I guess the determination of popularity might vary with the source. That LAMBDATEST ranking I mentioned says that Python is the #3 most popular language specifically for web development. Frameworks like Django and Flask (both taught here) make it easy to build web applications quickly.

But if you're planning to work in efficiency-critical applications it might be hard to beat C#, which is the language I've used the most for web development even though it's less popular industry-wide than the others we've mentioned.