| Exactly, I used to be much more productive when using PHP because I could simply write some code, put it in a folder and refresh the browser and it would work. How do you go into production? You put the file in a folder on the Web server. It works everywhere the same. The code writing part itself is very straightforward and there's nothing counterintuitive as long as you don't try to do something that it's not designed for. >there's nothing counterintuitive as long as you don't try to do something that it's not designed for. Maybe that's the key. Instead of trying to write programs with tools that are not made for this but are somehow bullied into doing it, just use the right tools. For generating HTML based on a request and data in the database, PHP it is. Don't try to make a language made for DOM manipulation process data and generate HTML. For Web UI, DOM + JS it is. Learn how browser works and write the JS that will modify the DOM as needed which will result in interactive UI. Don't stack abstraction. |
Well, not really because you have this massive php.ini file with tons of settings and whatnot, and scripts not working due to that was always a common point of failure back when I was using PHP. Also: not having some extension, which are almost always in C and require server installation (which is quite different from many other languages, where the user can usually specify most or all of their dependencies).
Maybe all of this changed? I don't know. But PHP in general has been the most fickle and unreliable environments I've dealt with. Give me any random servers, and I find it very hard to tell if my PHP script will run.