|
Even though I prefer Python over PHP, for web projects, I'm probably down with PHP forever. Because it so nicely supports stateless request handling without long running processes. In PHP, you can just throw a php file on a webserver and it works. To update, you just update the file. You don't have to restart anything. On the dev machine, you can just have Vim in one window and Firefox in the other, change code, hit F5, and you see what you did. I don't like having to run a code watching process which then recompiles the whole codebase every time I save a file. |
There is a very natural learning progression to: First build apps that run purely locally; then build a few static websites, maybe starting with hand-crafted HTML and eventually using something like Hugo; then build a small dynamic website with vanilla PHP; then finally build something with a more complex framework, like Laravel or Django. Going upwards in these iterations I think would help a lot ofd newer devs internalize where the tradeoffs of inital complexity vs. future ease of development lands for them.