Live data from Hacker News

Autocomplete from Stack Overflow

emilschutte.com

11–20 of 151 posts

Re: Autocomplete from Stack Overflow

#13
post #6

This isn't working at all for me...Either I don't get what it's supposed to do, or the common functions I'm typing aren't common enough. On a related note, 50 StackOverflow points seems like a high number for something like this, and may reduce the results significantly enough that the example doesn't work for most common problems.

I only have 50 stack overflow points /total/ (although I only very rarely post) so I would absolutely agree that it's way too high.

Accepted answers are also included.

Re: Autocomplete from Stack Overflow

#15
post #6

Earlier quoted context omitted.

I only have 50 stack overflow points /total/ (although I only very rarely post) so I would absolutely agree that it's way too high.

Accepted answers are also included.

My understanding is that it's only using code from accepted answers with 50+ points tagged JS.

So an accepted JS answer with 49 points would not be included, nor would a JS answer with 500 points that was not marked accepted.

Re: Autocomplete from Stack Overflow

#16
post #10

Haha, I love this. We're getting closer and closer to the ultimate conclusion of our industry: where we'll just type in a few keywords and generate full applications from StackOverflow code examples!

Siri, make me a facebook clone.

  ... but for cats!

Re: Autocomplete from Stack Overflow

#17

If it's a joke "Ahah", if not it's just depressing. SO is a valuable resource to confront and understand concepts. Let's not encourage this copy/paste culture

Why not? If it gets the job done (probably faster too). I would even suggest that be realistic and allow copy/paste during interviews too!

Re: Autocomplete from Stack Overflow

#18
Can't really see this being useful if I'm honest. Here you are simply showing the code suggestions based on what the user is writing. You are completely ignoring both the context of the code being written by the user and of the code being suggested.

These are key functionalities in order to actually be usable. With this you simply get hundreds/thousands of suggestions that are not related to what you are coding. And if by chance the suggested code is exactly what you want, then the variable names wouldn't even match. This is assuming that the suggested code is complete and functional.

Re: Autocomplete from Stack Overflow

#19
post #18

Can't really see this being useful if I'm honest. Here you are simply showing the code suggestions based on what the user is writing. You are completely ignoring both the context of the code being written by the user and of the code being suggested. These are key functionalities in order to actually be usable. With this you simply get hundreds/thousands of suggestions that are not related to what you are coding. And…

I don't think the point was to for it to be useful, it was something fun to do.
Post reply on HN