Re:Sherver: Bash lightweight web server
by tjoff on Wednesday December 22, 2021 @11:36AM
(#29651576)
Manual instructions and dev time doesn't necessarily pollute the state of the machine though and are harder to replicate, which is how I would interpret it.
Re:Sherver: Bash lightweight web server
by laumars on Wednesday December 22, 2021 @11:59AM
(#29651949)
Not having your application packaged up for quick removal strikes me as more polluting. And I don’t really see how an independent solution with almost no documentation and zero configuration management support (eg Ansible) is easier to replicate than a battle tested industry standard with widespread support.
Don’t get me wrong, I have nothing against building things for fun. But the technical arguments made for why this is preferable over an established solution doesn’t stack up.
Re:Sherver: Bash lightweight web server
by tjoff on Wednesday December 22, 2021 @12:13PM
(#29652183)
I do.
Just as I would use this (would look into it more first though), the netcat trick mentioned here or python3 -m http.server over ever considering installing Ansible and/or nginx/apache.
Totally different use case though.
Re:Sherver: Bash lightweight web server
by laumars on Wednesday December 22, 2021 @12:25PM
(#29652351)
If I was rolling my own and concerned about polluting, I’d favour a language like Rust or Go because I then don’t need to install the Python runtime, have random undocumented dependencies for the bash etc.
Or I’d use Docker.
But as said before, there’s no wrong answer here since it’s just a hobby project running on a HTPC.
If you ignore all of the manual installation instructions and any dev time you took to create this, then sure.
I’m not going to argue that the author should have used something else instead though. It’s a personal project used purely on an internet system of his house. For those kinds it projects “because I could” is as good a reason as any. I just think more authors should be honest and say “I just did it because it seemed fun at the time”