HackerTrans
TopNewTrendsCommentsPastAskShowJobs

redsky880

no profile record

comments

redsky880
·el año pasado·discuss
Windows? didn't expect that
redsky880
·el año pasado·discuss
Hmmm this seems bad

That code is bad for several reasons including not catching+handling exceptions (and possibly retrying), and accessing the JSON properties w/o get()

The overhead of re-installing stuff and setting up a header seem very unnecessary to run a simple script

If this is about sending some Python for somebody else to run easily - the recipient should always check the code. You should never run arbitrary code. For example, there have been hacks performed using YAML loader (crypto exchange).

For dependencies, use the standard pyproject.toml
redsky880
·hace 3 años·discuss
Correct me if I'm wrong, but Django is not a web server. It's a framework used in conjunction with an app server e.g. gunicorn and a web server e.g. nginx
redsky880
·hace 3 años·discuss
Did you read the article and comments? The comments point out a lot of issues with the article. Sadly, I've seen this article referenced before on other discussions.
redsky880
·hace 3 años·discuss
Facebook transpiled it before using the HHVM.

https://en.wikipedia.org/wiki/HipHop_for_PHP
redsky880
·hace 3 años·discuss
They removed the requirement to be logged in to view Tweets