3 ms·
Cmon man, I didn't say it is impossible to build scalable web apps with it. The php landscape's lack of an equivalent to rack is an insane situation for a 'web'
by AffableSpatula 16y ago
Cmon man, I didn't say it is impossible to build scalable web apps with it. The php landscape's lack of an equivalent to rack is an insane situation for a 'web' language, and a good example of why it's a bad choice of platform if you have the option.
Yes, you can write scalable web apps with php.. you can also walk everywhere on your hands; but it's unnecessarily painful and awkward, so most sensible people avoid doing it on a regular basis.
- xd 16y agoYou've heard of the PHP SAPI, right?
- AffableSpatula 16y agoyes, what's your point?
- xd 16y agoRack is the PHP SAPI equivalent ..
- AffableSpatula 16y agoIt's not. Rack's a framework for composing applications of middleware/intermediary components by specifying conventions for delegating requests and responses.
- xd 16y agoFrom the blog on the rack website: "Rack aims to provide a minimal API for connecting web servers and web frameworks." The PHP SAPI handles the HTTP request and dissolves it into super globals for the environment to consume. This is all you need to handle a HTTP request. It just doesn't get any more minimal than that. You can, if you want, take it a step further and add request routing, i.e. http://framework.zend.com/manual/en/zend.controller.router.html http://framework.zend.com/manual/en/zend.controller.router.h...
- AffableSpatula 16y agoRack is about composition and modularity of the request handling components, not just providing programmatic access to properties of an http request.
- deleted 16y ago[deleted]