News for hackers. Stuff that matters.
Re:Taking PHP Seriously by bkanber on Thursday October 13, 2016 @06:47PM (#12704785)
PHP is perhaps one of the easiest technologies to scale horizontally, because of its statelessness.
Re:Taking PHP Seriously by aikah on Thursday October 13, 2016 @07:55PM (#12705188)
> PHP is perhaps one of the easiest technologies to scale horizontally, because of its statelessness.

PHP is no more stateless than any other language out there. Statelessness is a design choice, not something PHP gives you for free. If your app write things on the local disk or use the default PHP session handler then it is not scalable by default. In order to write code that scales you need to make it scalable, it's not something automatic and certainly not special to PHP.

Re:Taking PHP Seriously by bkanber on Thursday October 13, 2016 @08:08PM (#12705269)
I would argue that PHP is more stateless than Node, for instance. Things that happen in previous requests do not affect following requests in PHP, unless you're explicitly using shared state. That's not the case in node, it isn't the case with most Java HTTP server implementations, and it wasn't the case in Rails back in the day (don't know how it is now).
Re:Taking PHP Seriously by minitech on Thursday October 13, 2016 @08:31PM (#12705357)
Any language is stateless until you explicitly share state; the other languages just make it easier to share state. It’s not a bad design decision – makes them more versatile, or at least more cleanly usable outside of serving webpages – but is something to avoid in similar applications for sure.
Re:Taking PHP Seriously by wtetzner on Friday October 14, 2016 @08:14PM (#12711988)
I'm pretty sure PHP supports sessions. I am missing something?
Re:Taking PHP Seriously by egh5oon on Thursday October 13, 2016 @07:04PM (#12704898)
HA!
Re:Taking PHP Seriously by bkanber on Thursday October 13, 2016 @07:05PM (#12704908)
You should add substance to your comment. If you disagree, say why.