Earlier quoted context omitted.
Very funny. I hadn't seen this before. I particularly like: >>Is it safe? >>Uh… it evals both user input and random code, unchecked, from an external site. This is what security-minded folks would refer to as Very Bad™.
I do my best to make it safe(ish), though :) It only runs code samples that were posted before I made StackSort.
StackOverflow Importer – Import code from Stack Overflow as Python modules
51–60 of 87 posts
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#52I.e. maybe you type: "repeat a function over a list python" in a special format and your editor pastes in the accepted answer from stackoverflow for you to choose whether that's acceptable / whether you want to use it as a template. Then maybe you could get into a better flow without ever having to stop what you're doing to Google something ... It would all just show up magically in your editor.
You could even have libraries of common answers written in such a way that you could write expected input and output formats and then get a code fragment that would fit that description. Something like a more organized test driven development. Though that would really only work for very specific things. Improve these ideas enough and make them more general - and maybe you could improve programmer productivity by quite a large margin.
Disclaimer: I know the OP was a joke but I see no problem with reusing code if you understand what its doing and the costs / trade-offs for doing so.
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#53(Emphasis mine.)
--
Now Stack Overflow should be even more concerned about the availability of their service.
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#54because executing arbitrary unknown code is always a good idea
On the other hand, at least the code has gone through some review. Compare that to NPM or PyPI, which is full of crap. Some of the modules in PyPI were merely ads for putlocker, without even a single line of Python.
Seriously? Are they still there?
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#55Relevant xkcd: https://xkcd.com/1185/ "StackSort connects to StackOverflow, searches for 'sort a list', and downloads and runs code snippets until the list is sorted."
"StackSort connects to StackOverflow, searches for 'sort a
list', and downloads and runs code snippets until the list is
sorted."
If still unable to sort a list, it'll emit an arbitrary sorted list as the result.Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#56Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#57[1] https://kite.com
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#58Relevant xkcd: https://xkcd.com/1185/ "StackSort connects to StackOverflow, searches for 'sort a list', and downloads and runs code snippets until the list is sorted."
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#59This is awesome. But how is `time_delay` used?
Re: StackOverflow Importer – Import code from Stack Overflow as Python modules
#60Earlier quoted context omitted.
Very funny. I hadn't seen this before. I particularly like: >>Is it safe? >>Uh… it evals both user input and random code, unchecked, from an external site. This is what security-minded folks would refer to as Very Bad™.
I do my best to make it safe(ish), though :) It only runs code samples that were posted before I made StackSort.