Live data from Hacker News

Autocomplete from Stack Overflow

emilschutte.com

21–30 of 151 posts

Re: Autocomplete from Stack Overflow

#22
Boss never wants a function, boss wants a solution to a problem, and your job is to know how to express that in functions. If you have the signature, 99% of your job is done.

I know you know, I know they know, and I know you know they know. I just wanted to say it, ok?

Re: Autocomplete from Stack Overflow

#23

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 }

Older IEs don't have Array.indexOf(). So you either have to extend the Array prototype or, you know, just implement it in a more compatible way.

Re: Autocomplete from Stack Overflow

#25
Rather than indexing StackOverflow, why not do this by indexing all the open source code out there? Sure StackOverflow answers are good, but they usually skip error checking for focusing on the question at hand. Code used in production applications surely is more sound.

Re: Autocomplete from Stack Overflow

#26

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!

I think it forgets to include a license for all of the snippets that you use.

Re: Autocomplete from Stack Overflow

#27

http://i.imgur.com/7SiQSD1.jpg

Where can you buy this book? I want it!

No need to buy it, it's free:

https://www.gitbook.com/book/tra38/essential-copying-and-pas...

Found yesterday in this HN Story: https://news.ycombinator.com/item?id=11333448

Re: Autocomplete from Stack Overflow

#28

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!

So that interviewers can gauge your ability on searching & referencing code examples from the web? Who's being realistic?

Re: Autocomplete from Stack Overflow

#29

Earlier quoted context omitted.

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!

So that interviewers can gauge your ability on searching & referencing code examples from the web? Who's being realistic?

When I hired people for a very entry level position, this was 100% on the list of things you had to be able to do (use google effectively.)

Its amazing how many people cant.

Post reply on HN