4 ms·
Easy to get started.. nightmare to maintain aftewards.
by shash7 6y ago
Easy to get started.. nightmare to maintain aftewards.
- raspasov 6y agoI don't use PHP anymore, but I used it for years in production. Was pretty easy to maintain (via Apache's mod_php).
- hermanradtke 6y agoIt is a problem to maintain. Simple example: how do you remove sessions in a multi server environment? Well, you can set a config to do that at random which imposes a cost for that particular request. Or you can run a corn job. This is not a decision in most other scripting languages. Don’t get me started on concurrency either...
- bawolff 6y agoWhy is this not an issue in other scripting languages? You either delete at runtime or delete in a separate process. What other options are there?
- bouncycastle 6y agoThis is a decision in all scripting languages. PHP solves concurrency very well - it just passes the problem to the web server. If you need multithreading to service a http request then you are either doing something wrong, or over-engineering the problem. Other language platforms also service requests in a single thread, including Node.
- ec109685 6y agoNode though multiplexes more than one request at a time to a single thread / process and no built in ability to clean up after itself.
- cdmckay 6y agoIt’s easy to maintain if you don’t change versions. If you upgrade, have fun finding all the pages throwing new warnings. Contrast that with going up one major version in Scala where all I need to do is fix the compile errors and then I’m confident it won’t surprise me with runtime errors.