Live data from Hacker News

Autocomplete from Stack Overflow

emilschutte.com

1–10 of 151 posts

Re: Autocomplete from Stack Overflow

#3
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.

Re: Autocomplete from Stack Overflow

#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.

Re: Autocomplete from Stack Overflow

#9
Cool idea, but kind of ironic that the example you used produces unnecessarily complicated stack overflow solutions. A JavaScript "contains" function is as simple as:

var contains = function (needle, haystack) { return haystack.indexOf(needle) !== -1 }

Post reply on HN