r/learnprogramming • • Mar 02 '16

The #learnprogramming IRC channel is too hostile for people to even have a chance to LEARN.

I've kept my mouth shut about this for a while now but after tonight I'm done with it. I've had my fair share of experiences coming into the chatroom and leaving on the verge of abandoning programming forever. I don't consider myself to be "new" programmer, but I'm also not yet a candidate for employment at any software development company.

Someone today just came in and asked why their program was giving them an error. Here was the offending line of code

    scanf("%d" , Choice);

Wanna know what was said to him?

"how do you expect scanf to update the int unless you give it a pointer"

Excellent response! Anyone who's ever taken an intro class in C can easily identify this issue. But guess what? The guy who was asking for help didn't know why it wasn't working. He didn't know how to interpret the error his compiler was giving him, he didn't know what an int* was or how it was different from an int, and he didn't know how to understand the C reference guide for the scanf() function.

I began walking him through picking apart the error. I began with: "Alright, so we know the error is at line 8. But we're not sure why. Let's figure that out." My next step was to direct him torwards any notes he had about his scanf() function from class to guide him towards what parameters he should be using.

Wanna know what happens next? Someone tags me with the message "wtf" and tells me to "stop helping" because I don't know what a pointer is. Just for reference, I do. Keep in mind, this particular user doesn't follow up with the explanation of a pointer, or any links/references to such. He just tells me to stop helping.

This is not an isolated incident. I often find when I ask a question, people would much rather give me partial answers and tell me how bad I am for trying to solve my problem in the way that I have. If I dare follow up their answer with a question such as "Why do it like x instead of y?" I get told things such as "Because that's how it is. If you disagree, than feel free to continue to write shitty code."

This kind of attitude is NOT OKAY for an IRC chat that claims to be a channel dedicated to learning programming. It's one thing to think a question is stupid and choose to not reply to it. It's another to make the person feel like they're stupid for asking it.

I'm not suggesting we give everyone all the answers all the time. I am merely suggesting that we realize that not everyone is coming in here to ask advanced questions. Some people are going to come in and not even know why their hello world function isn't working. And while we should not have to be their personal debuggers, we need to get rid of this attitude that somehow those types of users aren't deserving of our help because we're not at that same level anymore.

  • We should be teaching people how to interpret the esoteric compilers spit out.

  • We should be teaching people how to read and comprehend documentation about their language of choice.

  • We should be teaching people about sites like Stack Overflow and how to effectively use Google.

  • And most importantly (IMO) we should be teaching people not to be afraid to ask questions if they need help.

UPDATE Seems like today quite a few people in the #learnprogramming channel have been making fun of this post. Now sounds like a good time to get a new room up and started once and for all.

2.0k Upvotes

508 comments sorted by

View all comments

Show parent comments

33

u/insertAlias Mar 02 '16

Wow. I've been doing this for about ten years now, and SO is my favorite resource, probably because I never ask questions there. I never have to, every time I google some code-related question, SO is usually the top result, and the thread usually has a pretty detailed answer.

People are expecting the wrong thing out of SO. It's not a help forum. It's not a touchy-feely-newbie-friendly help forum that will walk you through Programming 101. That's not their stated purpose. They're trying to be a knowledge repository, a place that has specific answers to specific questions. I think more people would get more out of it if they realized that. They close duplicates because you don't need 1000 threads explaining how to print text to a console. You need one. Stuff like that.

But newbies take having their threads closed as a personal insult and then go around blaming everyone on SO for not breaking their own site rules and making an exception.

33

u/ANAL_CHAKRA Mar 02 '16 edited Mar 03 '16

To be fair, SO does not do a good job of explaining this. When you're a novice, often you don't even know what you're asking, or you're missing some key concept. You try to post to SO after googling for a bit and not finding what you wanted. Then suddenly come the downboats, people editing your post for you, people asking "are you really trying to do that?" and the inevitable closing. I didn't have any idea what was happening the first few times this happened to me, it just made me feel really stupid and SO didn't explain why everyone seemed so hostile.

Thankfully, I had at least one programmer friend who explained to me what was happening and why. I started to understand why SO works the way it does, and it makes complete sense now.

19

u/Gawd_Awful Mar 02 '16

My favorite is when someone says they are working on a school assignment but what they are trying to do is not working. There is almost always a reply of "You shouldn't do it that way, you should use X". Yes, in the real world that might be the more efficient way to do it but this is a specific situation where they need to use that other method as part of their learning in general.

8

u/insertAlias Mar 02 '16

Sure, but you have to think of it from their perspective too. Lots of professors require students to use outdated libraries or versions. Which is generally fine to teach students about specific topics, but when posted as a question to a "knowledge repository", the helpers would be remiss if they didn't explain that "this is not how you should do it in the real world".

An example: on a C# forum, sometimes someone pops in with an ArrayList question. If you're familiar with C#, that's essentially a List<Object>, added to the framework during a time when it didn't support generics.

That might be a component that their instructor has required them to use. Maybe they're stuck on .NET 1.1. Or maybe that's the extent of the professor's knowledge on that specific subject.

Unfortunately, it's also bad practices being taught. If the people answering didn't clarify and say "You should be using List<T> for type safety and simplicity of use", then others visiting that thread in the future might think that is valid, modern code.

3

u/Gawd_Awful Mar 02 '16

Frequently, from what I've seen, there little explanation as to why you'd want the other method and just "don't do X, do Y" which still doesn't contribute much to a knowledge repo. I believe classwork is supposed to be labeled as such, so answering and future use of that specific answer should be taken into consideration.

1

u/[deleted] Mar 03 '16

Well yes but there a difference between not knowing the old libraries and being unable to help, and straight up refusing to help because it's outdated.

2

u/manbearkat Mar 03 '16

Usually whenever someone mentions it's a school assignment, someone complains how OP's professor is dumb because that's something that would never happen in real life. As if this is some big secret that the professor and student both don't realize.

1

u/insertAlias Mar 02 '16

I don't know how to fix that problem. I can see what you mean, but they certainly don't want to discourage people from asking questions. That's what the whole site is built on. But by that same token, they're not interested in having dozens of different copies of the same questions. So they let people ask what they will and allow the community to moderate it into a knowledgebase. Not perfect, but the people who complain about it as a resource are typically using it wrong.

1

u/[deleted] Mar 03 '16

It's also frustrating when you're googling a question or error code and you see several SO results pop up. You then follow those links to find the newbs asking the very same questions you have in SO, only to be told to 'go google' the question. And these are often closed without a legitimate answer. So sometimes SO is not that helpful in these situations.

2

u/[deleted] Mar 03 '16

I'm not even looking for Programming 101 answers and I find Stack Overflow to be terrible for most of what I'm looking for. I have an atrocious success rate at getting anything useful out of SO - and if I'm looking there in the first place, it's because I can't find what I need in the documentation for whatever I'm using or I'm having an inordinately difficult time finding an appropriate book.

I can't understand why SO has such a great reputation, because I find it close to useless.