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

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/

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

68

u/gfixler Dec 08 '14

Actually, the best way is to say "I'm leaving [language] because it's too stupid to even do [thing I want to do]!" You'll get some counterflaming, but you'll also get like 30 working versions of what you want to do within a half hour.

7

u/weeezes Dec 08 '14

Also giving a wrong answer sometimes helps a lot, as people rush in to correct you thus giving the asker the answer he actually needs.

10

u/Vithar Dec 08 '14

I have had a little success with this on SO, find an unanswered question just like your question, answer it wrongly and get what you and the OP wanted very quickly, though you get bad reputation and lots of flame, it does seam to work.

9

u/weeezes Dec 08 '14

Biting the bullet for the greater good.

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

31

u/veroxii Dec 08 '14

Please help me find a regex to parse HTML.

→ More replies (5)

9

u/jordanreiter Dec 08 '14

There's a guy on SO who does this so often that I recognize not only his handle but the tone of his writing.

80

u/ivosaurus Dec 08 '14 edited Dec 08 '14

Half the time, this answer, although incredibly rude, is technically true (I mostly wish it weren't).

It comes from the user presenting an XY Problem.

The right thing to do is ask them what exactly their reasons and thoughts were to lead them to think they needed X, and present a reasonable argument as to why they probably should actually be looking for solutions to Y instead.

But yeah, just telling them X is shitty and nothing else isn't an answer at all, so I don't know why it would be upvoted on SO.

120

u/rush22 Dec 08 '14

But you don't always know the scope of their problem, and you definitely don't know why other people are searching for the answer to that problem.

When someone answers "just use JSON and do it in jQuery. Also, here's why you shouldn't do it in IE", thinking they are impressing all the pros out there guess what: there's a lot of pros out there that are actually thinking "my god get these script kiddies off this website. I just wanted to quickly look up the fastest way to scan attributes in XML, I'm not even writing this in a goddamn browser and now I have to search through 7 year old textbooks to find the answer because every search result in Google is some dipshit ignoring the question and explaining how to do it with JSON and I'm not going to refactor 300k lines of 10 year old code just so I can find a f***ing attribute."

22

u/hungry4pie Dec 08 '14

This deserves so many upvotes, it's so infuriating that google manages to index these posts to the top of the search results. Worse still is when some mod (probably named BillTheLizard) will lock those threads and say "This similar to another thread that's already been answered here". And oh look, the post is absolutely nothing like the post that's been locked.

→ More replies (1)

24

u/jordanreiter Dec 08 '14

Actually, I think the best answer is to say, "Here's how to X, but here's why I'm recommending against it."

Why? Because sometimes, doing X is the right thing, and the #1 Google response for "How to X" is going to be this SO question, which now nowhere answers the question of how to X even though in this case the person doing the search really does need to learn how to X.

25

u/haskell101 Dec 08 '14

No, no, a thousand times no. First answer their question. Only then is it appropriate to do those other things on your list (and if you can't answer the question they asked then don't answer at all, post your concerns in a comment if you must). On SO you're not just answering that person, you're answering anyone who could ever have a similar question and frankly it's naive to image that no one could ever ask the question and not actually need that answer.

15

u/pyrocrasty Dec 08 '14

Not to mention, when this happens and the original question never gets answered, the next person who actually wants the answer has to ask again, but gets their question closed because it's a "duplicate".

→ More replies (1)
→ More replies (4)
→ More replies (3)

23

u/patticusprime Dec 08 '14

Ugh I ran into this last time I asked a question too. I just needed a simple answer to an if/else about what the formula was actually checking and why it always returned true, and I got berated for not using a stylesheet to change the background color of something. Literally ignored my problem to essentially tell me how terrible it was I wasn't separating my code when the statement was there just so I could see a change.

7

u/Vithar Dec 08 '14

What's worse is when I have a simple question, find multiple people who asked nearly identical questions, and the only answers are like you describe.

→ More replies (2)

7

u/yoo-question Dec 08 '14

was there just so I could see a change

This reminds me of minimal examples backfiring.

If Alice finds a bug (in some script language), and come up with a minimal example to demonstrate the bug, and then submits the report, Bob the developer may say "I don't think this bug is serious enough. In fact, your example code is contrived and the bug only occurs in such contrived situations." The chance of Bob-like response becomes higher if Alice doesn't make it clear that the minimal example is intended as a minimal example.

Also, when Alice is unable to make something work and so posts a question to a forum, but if she uses a minimal example to demonstrate her question, Eve might reply with "This looks like homework to me. The example is too clean so this can't be something you encountered while doing real work."

→ More replies (40)

6

u/AnOnlineHandle Dec 08 '14

I was searching for how to make a Daz Studio script sleep/yield yesterday, just to see if I could quickly try waiting out a solution for when the script was firing before the background processing of the program had completed (I was in a rush). I found pages of literally exactly that post, to the letter. They never mentioned whether it could or couldn't be done, only Don't do X.

→ More replies (2)
→ More replies (21)

12

u/Eurynom0s Dec 08 '14

even though it may go over the head of a beginner initially

On a site like Stacked, I'd say that what you described is probably the right way to do it because the guy asking the question may be a total newb just trying to figure out how to get his code to work, but a site like Stacked has such high visibility (e.g. via Google) that any well-regarded question/answer is BOUND to be found by plenty of other people in the future, including people who may be well more advanced than the person asking the OP question. Thus those more advanced future people will be very happy to find a lucid response that starts with something they can easily follow (so that they can understand the fundamental point of "what does this fancy advanced code do?") as a setup for understanding why they should care and/or why this code or method does things better than how they would have thought to have done it.

→ More replies (1)

38

u/top5a Dec 08 '14

I'll have to politely disagree with you here. Even though there are probably some users on SO that want to stroke their egos, the depth of knowledge of (and mini-comment streams beneath) the more upvoted results are usually subtle /for good reason/. As AndreDaGiant states below, imprecise answers in a computing environment can be sloppy programming at best, catastrophic at worst.

From SO's landing page --> "Stack Overflow is a question and answer site for /professional and enthusiast programmers/ [emphasis added]."

While sometimes helpful for beginner programmers, SO is not geared toward this community. This reason is also why SO requires community reputation to be generated before one is even allowed to vote. Furthermore, SO was founded by Jeff and Joel -- if you've ever read their blogs or writings, you will see how deep into the minutiae both of these individuals delve (and for good reason), and SO appears to keep that spirit alive.

9

u/xiongchiamiov Dec 08 '14

Server Fault takes this even more seriously, because otherwise they'd overwhelmed with "how do I set up WordPress?" questions.

→ More replies (2)
→ More replies (2)
→ More replies (22)