|
|
|
|
|
by alvis
2038 days ago
|
|
Same as many web languages, PHP's heyday has a reason as many toolkits at that time were far less powerful and complicated for even simple things. Perl+CGI + all the server setup for a simple dynamic page? It's just unimaginable to many today's developer. I started off with PHP3 and have a very great and hated time with it till v5. PHP for sure is difficult to maintain and very painful to debug, but it's not my reason leaving it. It's because JS began to pick up and started to do many tasks that requires no server rendering. The server sides started to become just API server, which no longer generate html on the fly. It's much scalable and easy to maintain. Time flies, now I see the release of PHP 8 and I realise I have ditched it for a decade. Do I miss you? No. |
|
TBH, I'm still not aware of any truly simple/easy way to get a dynamic HTML page.
Recently, I had to make a dumb utility app to render some dynamic data, and I wound up writing a Golang server with the HTML specified as a Go Template. But making it accessible on the publc internet still required spinning up a server, installing nginx, configuring SSL with Let's Encrypt (at least it was free) and futzing around with nginx `proxypass` directives for several hours.
It works, and I guess it's conceptually simple, but it was still an all-day ordeal to get it up and running from scratch.