Every time this subject comes up for any language I praise Go for making it very straightforward to start a web server.
Do you also praise Python for having http.server?
Actually, I do for a different reason. I can go into any directory and type python -m http.server and now I have an improtu web server for a folder, so I can download files over my LAN.
That's a nice feature. You can also import it and it's a lot like the Go http server.
Except it's not meant to be used in production, where you must use shenanigans like WSGI and 3rd-party servers.
Do you also praise Python for having http.server?
Actually, I do for a different reason. I can go into any directory and type python -m http.server and now I have an improtu web server for a folder, so I can download files over my LAN.
That's a nice feature. You can also import it and it's a lot like the Go http server.
Except it's not meant to be used in production, where you must use shenanigans like WSGI and 3rd-party servers.