News for hackers. Stuff that matters.
Re:Am I really a developer or just a good Googler? by sarreph on Sunday May 15, 2016 @12:06PM (#11701399)
Can anybody shed light on how Googling for programming answers is seen in the workplace?

I've always been a solo / start-up developer (for now), and sometimes I sit back and think about how my (often zealous) use of SO and Google would bode with a team of developers in an office.

Would I be considered (to use a loaded term) an impostor if I was seen to be using SO a lot, even if I produced good results?

-- I think that last point — of good results — is key, but I am curious to how co-workers perceive this kind of productivity...

Re:Am I really a developer or just a good Googler? by wahnfrieden on Sunday May 15, 2016 @12:09PM (#11701418)
Everyone at the workplaces I've been in uses SO and Google frequently. The difference comes with how resourcefully they're used - more senior devs tend to be more efficient in seeking out accurate answers, while juniors may find misleading info, info irrelevant to the version or environment they're using, info that they have trouble adapting to their specific needs; or may have more trouble finding the best search terms to use; or may simply take longer to scan through results.
Re:Am I really a developer or just a good Googler? by pessimizer on Sunday May 15, 2016 @12:11PM (#11701427)
As somebody who has worked in small and medium-sized businesses, I don't even understand the discussion. If I can find on the web some way or some better way to do something that I want to do, I literally put the link in the comments to my code.
Re:Am I really a developer or just a good Googler? by zappo2938 on Sunday May 15, 2016 @12:17PM (#11701459)
My code is littered with links to SO, GitHub, and tutorial blogs. I have no shame. I put getting a job done correctly and fast over what other people think of me. Use as many ideas from other people, but try to contribute your own.
Re:Am I really a developer or just a good Googler? by exodust on Sunday May 15, 2016 @12:26PM (#11701506)
Yikes, another one. I dunno... maybe I'm behind the times. I don't like web links in code comments myself unless it's the comment above a plugin that you wouldn't touch anyway.

I remember a fellow developer used to curse in his comments. Expletives about what he didn't like etc. Funny the first time I saw it, then got annoying.

Re:Am I really a developer or just a good Googler? by exodust on Sunday May 15, 2016 @12:19PM (#11701467)
Wow, you actually go that far? Adding links in code? I was with you on "not understanding discussion" because absolutely everyone in the workplace searches and uses SO to find cool solutions, new tricks etc.

But adding those links to code I have never ever heard of! Not judging, but if I were working in your team I'd be like "ok, what clown is putting stack overflow links in the code!!"

Re:Am I really a developer or just a good Googler? by ciaranm on Sunday May 15, 2016 @12:37PM (#11701554)
Why not? I've been known to do this as well. I'd rather put a quick link to a relevant source of information explaining why I did something the way I did than spend 2-3 lines trying to explain it.

I probably most often use it when I've hacked around a known bug in someone elses framework - linking to the respective ticket, that way if someone comes along later and the ticket is resolved, they can remove/adjust whatever I've done.

Links are everywhere else, why not in our comments?

Re:Am I really a developer or just a good Googler? by VLM on Sunday May 15, 2016 @12:29PM (#11701517)
Different workplace cultures. Just like putting in academic citations on a clickbait site would be inappropriate vs not properly citing academic papers at uni is technically plagiarism.

Its also for defense programming or documentation. "Why did you do that to that matrix to stabilize it?" "Well that is right out of Prof Higham's paper about nearest correlation matrices see this link in the comments, its not like I'm just making that stuff up as I go along".

Also comes in handy for legal review. "Wait, thanks for the flattery but you can't copyright that, that algo is copied right out of Knuth, it was invented 50 years ago."

Re:Am I really a developer or just a good Googler? by ciokan on Sunday May 15, 2016 @12:55PM (#11701627)
I often put links in the code as well and not because I'm a clown but because those discussions led to that code being there and those discussions explain the problem and solution in much detail usually. Nothing wrong with links in comments. I also place links to bug tickets waiting to be solved so I can track the progress without having to google for that bug each time I revise the code. I can go straight and see if it was fixed or not.
Re:Am I really a developer or just a good Googler? by enraged_camel on Sunday May 15, 2016 @12:46PM (#11701588)
ASP.NET scaffolds in Visual Studio contain commented links to MSDN articles and documentation, and the links are clickable. So it has to be a fairly common practice. ;)
Re:Am I really a developer or just a good Googler? by jestar_jokin on Sunday May 15, 2016 @09:36PM (#11703709)
I do it for attribution, partly out of respect to the original authors, and partly to help resolve any licensing issues that may arrive - e.g. "This code was taken from a site with no clear license on its use, so we may need to replace it at some point."
Re:Am I really a developer or just a good Googler? by exodust on Monday May 16, 2016 @12:46AM (#11704294)
Licensing issues? I'm not talking about entire plugins, and I didn't think others were talking about that either. I thought we were talking about Stack Overflow, where we learn the best way to iterate an array backwards or something that amounts to a small component of what you're doing.

In that circumstance (which is what Stack Overflow is mainly used for) links would not be necessary in your comments.

Re:Am I really a developer or just a good Googler? by JdeBP on Monday May 16, 2016 @04:03AM (#11704905)
Re:Am I really a developer or just a good Googler? by exodust on Wednesday May 18, 2016 @12:55PM (#11723367)
That's quite sad. Most of the time SO is a source of learning a new technique rather than copying code snippets letter for letter. We are shown a cool way of doing something with fewer lines of code for example, and we apply that method to our own projects.

If someone wants attribution for code, it better be something self-contained with its own home on github or at least a blog somewhere with a unique name: "my awesome plugin v1.0".

Re:Am I really a developer or just a good Googler? by TeMPOraL on Sunday May 15, 2016 @04:41PM (#11702648)
I usually put links in comments when I copy out a piece of code (e.g. an utility function) wholesale, with maybe minor tweaks. It happens rarely to me, but when it does, it feels unfair not to credit the original author.
Re:Am I really a developer or just a good Googler? by hackinthebochs on Sunday May 15, 2016 @05:25PM (#11702841)
Context in code is everything, and links provide the context far better than comments can most of the time. I find it surprising that you're so surprised at the idea of links in code!
Re:Am I really a developer or just a good Googler? by exodust on Monday May 16, 2016 @12:41AM (#11704284)
Because it's only one tiny piece of any given function usually that we need help for from SO. That's my experience anyway. Usually it's how to do something, not copying and pasting huge chunks of code. And often I would change and modify what I learn from SO anyway,so it makes little sense to include links then.
Re:Am I really a developer or just a good Googler? by hackinthebochs on Monday May 16, 2016 @11:15AM (#11706810)
Well I'm certainly not littering my code with SO links. But when there's some particularly hairy problem that SO provided a solution, or an odd looking piece of code that I got from SO, I'll throw the link in.

If the code is self explanatory or not particularly interesting, then there's no link. If its worthy of a comment, its usually worthy of a SO link.

Re:Am I really a developer or just a good Googler? by trentmb on Sunday May 15, 2016 @03:42PM (#11702387)
I usually add links too- it feels dishonest otherwise.
Re:Am I really a developer or just a good Googler? by lowmagnet on Sunday May 15, 2016 @12:33PM (#11701537)
I'm a 20 year veteran of various strata of technology organizations, and I know that I cannot hold everything I've learned in my head. If I cannot, then how should I expect anyone else to be able to do so?

I'm the early parts of any project I start with research, which means Google and stack overflow. It does little harm for others to use the same approach.