4 ms·
This actually reminds me a bit of CGI ( https://en.wikipedia.org/wiki/Common_Gateway_Interface https://en.wikipedia.org/wiki/Common_Gateway_Interface ) or its l
by KronisLV 5y ago
This actually reminds me a bit of CGI ( https://en.wikipedia.org/wiki/Common_Gateway_Interface https://en.wikipedia.org/wiki/Common_Gateway_Interface ) or its later variants.
Personally, i think that PHP's request-response workflow is infinitely easier to deal with than that of servlets in Java or whatever abstractions other technologies out there have, even if only when scaling isn't a concern (which is perfectly passable for some systems out there).
My ideal language for getting things out the door would be something a bit like PHP, but with the standard library of .NET/Java (LINQ or Streams in particular), the wider ecosystem of Python, simplicity of Go and a decent type system on the top of it all, that'd process requests much like PHP does (or at least would only make you think it does, though abstractions that are leaky are arguably worse than none at all).
- sbierwagen 5y agoPHP's programming model definitely should remind you of CGI, because it was a CGI module: https://en.wikipedia.org/wiki/PHP#Early_history https://en.wikipedia.org/wiki/PHP#Early_history
- mayli 5y agoUntil you need to talk to db, where you may want to have a persistent connection, so hacks required in php-fpm to support it.
- nick__m 5y agoPHP with Java std lib is called JSP, with .NET it's called ASP; the request model is similar and the packaging can be quite minimal, even if the good practice favor complexity. Also I don't think that you can have a simple language like Go and a decent type system like Typescript, to me those properties are in opposition.
- tasogare 5y ago> would be something a bit like PHP, but with the standard library of .NET Try the PeachPie compiler then ;)