3 ms·
PHP is currently my favorite language to work in, especially as a freelancer who needs to just get things implemented quickly. No strange docker log issues like
by rabuse 4y ago
PHP is currently my favorite language to work in, especially as a freelancer who needs to just get things implemented quickly. No strange docker log issues like I've had with python/node stacks of errors not showing in docker logs until a service restart; just reload a page and bam.
- pantulis 4y agoThis is more related to how you deploy PHP or Python to the languages themselves...
- francislavoie 4y agoWell, PHP is specifically optimized for that usecase, with opcode caching etc. Python doesn't do well when initialized on every request.
- VWWHFSfQ 4y agoisn't this what pyc's are? what's the difference?
- saila 4y agoIt sounds like they're talking about deployments where a new process is spawned to handle each request, but for the most part no one deploys Python web apps that way, so I'm not sure. PHP may have some advantages in terms of deployment, so I guess it's a question of whether those advantages outweigh the potential advantages of using Python for development, which is of course subjective/situational.
- chippiewill 4y agoIt's because PHP uses a CGI process-per-request style model, while there's no good or modern for support in Python for that execution model these days (the community is built around WSGI and ASGI instead). Opcode caching isn't actually relevant because PHP reuses the processes and in-memory structures these days as much as possible.
- Helitioo 4y agoHave you ever dropped a frame while debugging and fixing it on the fly in a debugger? I think you miss out if you feel that this is a win when doing PHP.