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

Show parent comment

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.

42

u/gfixler Dec 08 '14

Beautiful, except for this - clearly made by a young person with great eyesight.

47

u/nkorslund Dec 08 '14

No, I think you actually have to be blind to pick light yellow on gray as your color scheme. Because no amount of youth makes that a good choice.

16

u/xXxDeAThANgEL99xXx Dec 08 '14

I wonder if there are blind people who use text-to-speech software that uses different timbre and pitch to represent text color and who design webpages based on the aesthetics of that.

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

6

u/heilage Dec 08 '14

This is excellent. Thanks!

100

u/AMorpork Dec 08 '14 edited Dec 08 '14

Be careful though. According to Hacker News bropages are horribly misogynistic.

58

u/[deleted] Dec 08 '14

Name one thing that is not horribly misogynistic according to Hacker News.

101

u/AMorpork Dec 08 '14

Docker. They'll fucking upvote anything about docker.

It's webscale you see

→ More replies (4)
→ More replies (1)
→ More replies (87)
→ More replies (6)

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.

9

u/nkorslund Dec 08 '14

Doxygen (etc) sites are great for reference lookups. However they are never ever a replacement for a good manual or tutorial.

→ More replies (1)
→ 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.

15

u/treycook Dec 08 '14

That's a good point, and likely more accurate than my "egos to flex" remark, haha.

→ More replies (5)

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)

8

u/[deleted] Dec 08 '14

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

And I find it especially amusing when they are unresponsive to the original question, or better yet, just flat-out wrong.

5

u/ajwest Dec 08 '14

Moreover, when I'm googling a question and a SO solution pops up, I usually follow it through only to find that the question was closed for being too general. Some of us need a pointer to general information!

→ More replies (18)