Live data from Hacker News

Autocomplete from Stack Overflow

emilschutte.com

31–40 of 151 posts

Re: Autocomplete from Stack Overflow

#31

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

The OS/SDK/Browser/Protocol/Firmware which you used to type this comment is a compiled copy/paste of a zillion lines of code, of which you probably typed none.

If we encourage the DRY paradigm in the whole development cycle, copy/pasting a function is just a further reach of such paradigm. Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final product.

Furthermore, IDEs by design encourage copy/pasting to speed development, most offer functionality to store code snippets. In that sense SO is like a web extension of IDEs.

Re: Autocomplete from Stack Overflow

#32

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!

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

All StackOverflow "user contributions licensed under cc by-sa 3.0 with attribution required"

Re: Autocomplete from Stack Overflow

#33

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.

A good start would be for Github to host a package that contains the latest versions of each repo. However even they may not have that right (depends on TOS).

Re: Autocomplete from Stack Overflow

#34

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

The OS/SDK/Browser/Protocol/Firmware which you used to type this comment is a compiled copy/paste of a zillion lines of code, of which you probably typed none. If we encourage the DRY paradigm in the whole development cycle, copy/pasting a function is just a further reach of such paradigm. Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final…

> Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final product.

I deeply disagree with this and for such obvious reasons.

Re: Autocomplete from Stack Overflow

#35

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

I came here to post this, you're a great person.

This post fills me with dread, it's come to the point during code review that I have to be sure the shitty devs aren't coping the bad answers from stackoverflow... I hope they don't find this.

Re: Autocomplete from Stack Overflow

#36

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?

Being able to search and use online code examples is a key skill in software development. The web has become the collective knowledge base for all of us.

Re: Autocomplete from Stack Overflow

#37

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.

A good start would be for Github to host a package that contains the latest versions of each repo. However even they may not have that right (depends on TOS).

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)

Re: Autocomplete from Stack Overflow

#38

Earlier quoted context omitted.

The OS/SDK/Browser/Protocol/Firmware which you used to type this comment is a compiled copy/paste of a zillion lines of code, of which you probably typed none. If we encourage the DRY paradigm in the whole development cycle, copy/pasting a function is just a further reach of such paradigm. Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final…

> Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final product. I deeply disagree with this and for such obvious reasons.

[deleted]

Re: Autocomplete from Stack Overflow

#39

Earlier quoted context omitted.

The OS/SDK/Browser/Protocol/Firmware which you used to type this comment is a compiled copy/paste of a zillion lines of code, of which you probably typed none. If we encourage the DRY paradigm in the whole development cycle, copy/pasting a function is just a further reach of such paradigm. Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final…

> Now, if a programmer decides whether or not study and understand the pasted code has nothing to do with the quality of the final product. I deeply disagree with this and for such obvious reasons.

Why? A widely accepted answer(many points) is most likely correct/best practice/bug-free.

Re: Autocomplete from Stack Overflow

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

...12 hours of involuntary surgery later:

    There, now you're a facebook clone.
Post reply on HN