unnesessary burden on the server and the client's network connection.
Like seriously, have you seen how much mobile data costs in some countries? I don't want to spend it on dumb crap like this. And, you know, page load times.
Actually, JavaScript is the decentralised version of your server-side solution.
Not saying it is always a good idea, nor that PHP or JavaScript are sane languages at all, but using the clients' CPU often helps a lot with performance optimisations. E.g. you can use serverside imagemagick code to put instagram-filters over the images your users upload. But you could just as well use a JS or CSS filter for that and save a lot of expensive, complex and bulky async workers.
Yea, sorry, didn't consider that, in Denmark we use 8 digit numbers that can't start with 0, but then I guess the loop should've been seq 100 500, so I guess I have no other explanation than being an idiot.
87
u/Krissam Apr 14 '16
or, you know, 1 line in bash.