Re:Autocomplete from Stack Overflow
by ThinkCritically on Tuesday March 22, 2016 @09:42AM
(#11336462)
What they really need is a way to rank github code by quality - so that a tool like this pulls in the good code (as opposed to code of lesser quality)
[ Parent
| on HN ]
Re:Autocomplete from Stack Overflow
by TheOtherHobbes on Tuesday March 22, 2016 @02:01PM
(#11338503)
Then you build a helper tool that analyses the differences between good code and bad code.
Then you set it loose on its own source - and you have an AI that takes over the world. (Or at least github, which is more or less the same thing.)
Perhaps instead of using StackOverflow "correct" answers, someone could create a site that has example of anti-patterns and code smells, which you could then use to analyze the code on Github and link to possible alternatives.
That's basically what linters do.
Re:Autocomplete from Stack Overflow
by lincolnbryant on Tuesday March 22, 2016 @11:22AM
(#11337225)
ESLint catches many
Re:Autocomplete from Stack Overflow
by jonnycowboy on Wednesday March 23, 2016 @02:52PM
(#11347180)
Have the code editor report back to the cloud the amount of times a certain snippet was "selected"/used. And just rank the drop-down box/autocomplete options accordingly.