Re:Combining Golang and PHP can solve real-world development...
by toast0 on Monday December 10, 2018 @07:42PM
(#18652437)
This probably works ok, but it's doubling down on the terrible that is modern php. PHP has this wonderful conceptual model of get a request, return a response, and throw everything away. The logical consequence is that everything you built up in objects or variables along the way of making your response is garbage (because you're throwing it away when you're done).
Since you're just making garbage, it doesn't need to be pretty, it just needs to be fast.
Since you're making garbage, it doesn't need to be future proof, it will only be alive for 10ms.
You can make some really fast pages with PHP if you try, but modern frameworks are going to take longer to load than a fast page will take to be finished.
Since you're just making garbage, it doesn't need to be pretty, it just needs to be fast.
Since you're making garbage, it doesn't need to be future proof, it will only be alive for 10ms.
You can make some really fast pages with PHP if you try, but modern frameworks are going to take longer to load than a fast page will take to be finished.