Well the whole node part, or am I mistaken? As far as I understand it, you’re just selecting a random file (image) from a directory to server for each HTTP request, no? It’s been a while since I used perl, but I suspect that this could be trivially done with a simple CGI script. Python and Go could even use their standard library, requiring no library dependencies, codes of conduct, contribution guidelines, package managment settings, etc.
Oh I see. I mean, I suppose. I’m not familiar with writing CGI scripts, which is why I didn’t go that route. This could pretty easily be rewritten to not depend on Express, but I chose to use Express anyway just because it saved a little typing and because I’m used to it. The code of conduct I just copied from another project of mine and the contributing guidelines don’t really have a lot to do with the specifics of the code. I think you’d still want both those things regardless of language or whether you were using the standard library.
Isn’t this quite a lot of boiler-plate code for something rather simple?
Whoops, forgot about this comment. I mean, there’s some boilerplate… but I’m not really sure what I could get rid of. I’ve seen worse.
Well the whole node part, or am I mistaken? As far as I understand it, you’re just selecting a random file (image) from a directory to server for each HTTP request, no? It’s been a while since I used perl, but I suspect that this could be trivially done with a simple CGI script. Python and Go could even use their standard library, requiring no library dependencies, codes of conduct, contribution guidelines, package managment settings, etc.
Oh I see. I mean, I suppose. I’m not familiar with writing CGI scripts, which is why I didn’t go that route. This could pretty easily be rewritten to not depend on Express, but I chose to use Express anyway just because it saved a little typing and because I’m used to it. The code of conduct I just copied from another project of mine and the contributing guidelines don’t really have a lot to do with the specifics of the code. I think you’d still want both those things regardless of language or whether you were using the standard library.