News for hackers. Stuff that matters.
Re:How often people copy and paste from Stack Overflow by faizshah on Thursday December 30, 2021 @10:52PM (#29744691)
I don’t copy and paste code from stackoverflow anymore. When I was a beginner I used to but now because of the complexity of things I work on the snippets don’t work as is and I just look at stackoverflow to find an approach and then look at the documentation to apply it to my problem.

The one I am guilty for copying and pasting is command line stuff. I know its dangerous and I try not to paste it directly into the terminal but some of the commands are so complicated and backspacing in the shell is annoying its just easier to copy and paste.

Re:How often people copy and paste from Stack Overflow by mrelectric on Thursday December 30, 2021 @11:00PM (#29744729)
Use address bar as temporary editor / buffer. Ctrl-C, Ctrl-L, Ctrl-V, ctrl-left or ctrl-right to edit/confirm correctness, then ctrl a and ctl c
Re:How often people copy and paste from Stack Overflow by jiggawatts on Saturday January 01, 2022 @03:00AM (#29756476)
That's a dangerous habit to get into. Everything you type in the address bar is sent to Google (or your default search engine). If you "edit" to replace placeholders with credentials, you've just sent those credentials to Google.

This happens live, character-for-character, you don't need to press enter.

Re:How often people copy and paste from Stack Overflow by Cyphase on Friday December 31, 2021 @01:28AM (#29745562)
I'm glad I'm not the only person who uses the address bar as a temporary editor.
Re:How often people copy and paste from Stack Overflow by YPPH on Friday December 31, 2021 @04:23AM (#29746306)
I use it to clear formatting before pasting into rich text editors like Word or Outlook. Wonder if I'm the only one.
Re:How often people copy and paste from Stack Overflow by addandsubtract on Friday December 31, 2021 @06:54AM (#29747188)
I do the same, unless it contains sensitive data that I don't want to leak to Google. Then I just use Sublime. I wish ctrl+shift+v was more common to paste without formatting.
Re:How often people copy and paste from Stack Overflow by mrelectric on Saturday January 01, 2022 @05:51PM (#29763722)
Same hehe
Re:How often people copy and paste from Stack Overflow by lhuser123 on Thursday December 30, 2021 @11:22PM (#29744873)
Cool
Re:How often people copy and paste from Stack Overflow by rickeydidio on Thursday December 30, 2021 @11:18PM (#29744849)
I share this sentiment minus the complexity part. I usually have documentation up as well and am looking to see what fits with what I envisioned beforehand.

It was surprising to see Pandas listed multiple times in top 10 tags since I feel like the documentation is pretty straight forward.