this post was submitted on 30 Oct 2023
1010 points (96.2% liked)

Programmer Humor

32453 readers
713 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] -2 points 1 year ago (1 children)

Poor performance, execution model limitations, lack of static typing (although they seem to be working on that), and general legacy cruft.

Don't compare PHP to Node, Ruby or Python, they also have problems. I think Go is currently the best choice for a web backend; an objective evaluation of PHP and Go would certainly put Go ahead. If you know PHP, you can pick up Go in a day or two, so I don't think that's a great reason to keep using PHP either.

Usage statistics are a highly misleading, software projects take several years to develop and a majority will fail. Looking at current usage tells you the most popular choice from 5 years ago, not today. Over 90% of video games published in the last 5-10 years use Unity or UE4, but these probably aren't the best choices today.

[โ€“] [email protected] 1 points 1 year ago

I think Go is currently the best choice for a web backend; an objective evaluation of PHP and Go would certainly put Go ahead. If

Yes for performance running code, for performance as in "developer time" PHP is way faster. Go is solid but developer take more time implementing stuff with it. Use PHP for everything business related except for that one or two cases where you really need the performance that Go provides and where it is worth the extra dev time.