3 ms·
"The PHP stack uses generators to deal with async requests and doesn't suffer from callback hell." This is one of the problems with the Node hype; it claims to
by jerf 13y ago
"The PHP stack uses generators to deal with async requests and doesn't suffer from callback hell."
This is one of the problems with the Node hype; it claims to be this unique and special snowflake, when in fact pretty much any similar language (Perl, Python, PHP, Lua, etc.) has just as much stuff working for it. Even the "but our libraries are 'designed' for async!" isn't as big of an advantage as is claimed, since in many cases the other languages have good libraries too. (Or in the case of something like gevent, a reasonable ability to convert libraries to async.) It's really a throwback, not the awesome step forward it claims to be.