Live data from Hacker News

StackOverflow Importer – Import code from Stack Overflow as Python modules

github.com

11–20 of 87 posts

Re: StackOverflow Importer – Import code from Stack Overflow as Python modules

#12
post #8

Earlier quoted context omitted.

It's all arbitrary and unknown unless you verify the whole thing yourself down to the kernel. And then you better hope that the processor dies are as advertised.

Also, this is a joke.

Am I dumb? How is this a joke?

Re: StackOverflow Importer – Import code from Stack Overflow as Python modules

#14
This is a pretty cool idea! Concerns for running unknown code aside, it seems like the results of this type of thing would be prone to potentially frequent change.

I wonder if there'd be a way to maintain consistency, something like a requirements.txt file that got spit out to describe what the results of the search terms mapped to when the code was run.

It could just contain the search term and link to the chosen question. Although you'd still run the risk of the answer itself being edited. The code itself would have to be cached in whatever this file was.

Re: StackOverflow Importer – Import code from Stack Overflow as Python modules

#17
post #12
post #8

Earlier quoted context omitted.

Also, this is a joke.

Am I dumb? How is this a joke?

> Do you ever feel like all you're doing is copy/pasting from Stack Overflow?

I don't really feel like anyone is taking this very seriously.

Re: StackOverflow Importer – Import code from Stack Overflow as Python modules

#18
post #12
post #8

Earlier quoted context omitted.

Also, this is a joke.

Am I dumb? How is this a joke?

It seems pretty apparent from the readme that it's a joke along the lines of "If you're going to just copy and paste the first thing you find on Stack Overflow, you may as well do this."

Re: StackOverflow Importer – Import code from Stack Overflow as Python modules

#20
post #10

What a fascinating concept! I think that with some kind of review built in, this kind of dynamic loading would be really useful. I think if you do this, you'd want external tests, or some way to pull the code in and "freeze" it so that you wouldn't be at risk of external compromises. (For example, a high ranked SO user might be able to change a highly ranked answer . They might not do it, but someone suborning their…

I was thinking the same thing about the freeze.

Something like the equivalent of `pip freeze`

Post reply on HN