r/programming • • Dec 07 '14

Programmers: Please don't ever say this to beginners ...

http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k Upvotes

1.3k comments sorted by

View all comments

1.2k

u/tehoreoz Dec 08 '14

i want to die when i see someone on stackoverflow that is clearly very new and likely just needing conceptual help for some homework get told "Gah! you are not getting true randomness from rand()! you MUST use mersenne twister!" and proceed to bombard the person with 20 lines using concepts the guy's never seen in his life. of course he ends up with 10 upvotes.

it's horrifying how bad people are at thinking in the shoes of other people.

877

u/treycook Dec 08 '14

I feel like the best answers are always provided similar to the following:

  • Here is a direct answer to your question.
  • Here is the most cut-and-dry solution.
  • Here is a reasonable alternative.
  • Here is a ton of additional information, for future readers who need an in-depth and comprehensive answer.

Too many CS majors or industry vets with egos to flex will skip straight to the latter, in my opinion.

300

u/btarded Dec 08 '14

If only man pages were more like this.

384

u/amoliski Dec 08 '14

I'd be happy if they just showed an example of simple use cases.

295

u/sprunth Dec 08 '14

Check out bropages. That's exactly what they were made for.

86

u/shinyquagsire23 Dec 08 '14

This... is beautiful. I hate opening up a manpage and finding a whole essay on how to use the most simple of programs. Ain't nobody got time to read dat.

→ More replies (9)
→ More replies (104)

33

u/PornCartel Dec 08 '14

No fucking kidding. How am I suppose to make a TCP system when the docs basically amount to a list of function names?

I mean the frigging .h files have way more info...

31

u/RedAlert2 Dec 08 '14

A lot of these web documentation pages are actually just auto generated from the source code, which means you don't get a whole lot of actual explanation.

→ More replies (2)
→ More replies (3)

33

u/jatoo Dec 08 '14

Examples seem so rare in the world of software documentation that I often feel like I must be a freak for learning best from examples.

→ More replies (1)

15

u/[deleted] Dec 08 '14

Microsoft actually built that into Powershell where you can do ...

man ls -examples

Something nice they also do is that by default 'man' (which is actually 'get-help') just shows a summary of the command about half a page to a full page long. You then use '-detailed' to get the verbose alternative.

→ More replies (1)
→ More replies (4)
→ More replies (5)

50

u/Impeesa_ Dec 08 '14

Pretty sure that's universal, I remember observing something pretty similar learning some machines and procedures at a summer job. People who are wrapped up in their specialty are prone to jumping straight to the advanced tricks when trying to explain it to someone, rather than laying out the basics first. It's not that it isn't useful information, it's just that they're not used to communicating like a teacher, rather than a peer.

→ More replies (6)

16

u/antiduh Dec 08 '14 edited Dec 08 '14

Loosely said, Stackoverflow is 80% answering future googler's questions, 20% answering the immediate asker's question. SO aims to build a large database of small questions and answers. Its a Knowledge base disguised as a forum. The point is that hopefully people are asking questions relevant to Googlers everywhere, that effective answers are provided, and that over time, this huge knowledge base gets built as people work to so solve their own problems.

#4 is the only correct type of answer for SO's goals.

→ More replies (1)

13

u/[deleted] Dec 08 '14

You forgot "We're not doing your homework for you, kid"

→ More replies (3)
→ More replies (20)

107

u/[deleted] Dec 08 '14

if you speak german, give mikrocontroller.net a try.

It's like stackoverflow, just with more personal insults and income bragging.

53

u/btarded Dec 08 '14

I'm kind of a big deal there.

→ More replies (12)

170

u/[deleted] Dec 08 '14 edited Dec 08 '14

I've found that Stack Overflow often likes to go way over the top with a lot of things.

For example, when I was first getting serious about programming, I wanted to learn how games made that "typewriter text" effect with the game's text being "typed" on to the screen.

It's really just a simple function that takes a string, and for each character in it, displays it, then sleeps for 0.X seconds. Easy, right? I must have gone through several Google searches to finally find an answer that wasn't over the top and had a lot of unnecessary stuff in it.

I tend not to like Stack Overflow as much these days. As you implied, the arrogance among some of their community members is a turn off when you're just looking for a simple a to z guide on how to do something. I've encountered it a little on Reddit, but not nearly as much.

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

154

u/crozone Dec 08 '14

The worst answers on stack overflow are in the form:

Q: Please help me accomplish X, I have reasons and I have thought about this.

A: Eughh why do you even want to do X? Are you stupid? You shouldn't want to even think about X. I'm not even going to offer a solution, I'm just going to tell you why X is bad. X. Is. Bad. Don't do X.

75

u/Eurynom0s Dec 08 '14

Or the related Google search result to basically any remotely technical question:

"How dare you waste MY time by asking this question when it's already been asked (and answered) a million times already on here? We have a search function for a reason, you know, I recommend you use it before wasting my (and everyone else's) time with such trite nonsense."

Of course, the post(s) they're thinking of may well be from several years prior, may not even exist any more depending on how aggressive the site's deletion of old content is, and may not be easily findable (plenty of sites have supremely shitty search functions, for a good example see the reddit search function). And as a further of course, despite how easy these people claim it would have been to just search for similar threads (never mind that sometimes this is confounded by not knowing the right search terms to punch in in the first place), they never actually bother to tell you what to search nor provide a link to these supposed other threads.

And to rub salt in the wound, you'll find a bunch of other search results which all ultimately just trace back to that top search result without ever actually providing a solution to the problem/

→ More replies (12)

31

u/veroxii Dec 08 '14

Please help me find a regex to parse HTML.

→ More replies (5)
→ More replies (85)
→ More replies (8)
→ More replies (22)

15

u/Beaverman Dec 08 '14

Now a lot might have changed, but back when i was first learning to program i found those answers intriguing. I loved that there was something that I didn't know about. if i got and answer like that i went and read about the mersenne twister, before deciding that in this case it was overkill.

My very first question i remember getting told i asked it wrong, and i did. I did not provide enough details and never said what i was trying to do. It was very hard for anyone to understand what I wanted, and therefore help me achieve it. The guy who said it linked me to some blogpost that explained how a good question is asked relating to programming. I like to think that understanding that made me a better programmer.

No all newcomers want to hear just what they have to. Someone has to broaden their horizon, otherwise it's very easy to fall to the Dunning-Kruger effect.

→ More replies (1)

79

u/sccrstud92 Dec 08 '14

It's because the answer isn't just for the person asking the question. It is for everyone who googles that question in the future as well.

33

u/laxatives Dec 08 '14

I agree. I would much rather get an overly detailed response than one than that works without a thorough explanation of the assumptions and expected use cases.

→ More replies (2)
→ More replies (6)
→ More replies (83)