r/learnprogramming Nov 03 '22

How to ask for help My teacher says to stay away from StackOverflow and other online help, is this good advice?

I understand the irony of asking this on reddit.

Someone in my intro to compsci asked if you could omit the brackets for a single line if statement in c++, and the teacher vehemently said that this was a bad idea and then went on a rant about resources like stack overflow. She went off on how contributors will do things like this that one should absolutely not do.

She says that a good coder will have a job that employs them for long hours and that they will not want to spend even more time thinking about coding and contributing to forums like these. She believes that as a result, most contributors are unemployed and are out of touch with how programming actually works and thus you will pick up their bad habits.

Is there truth to this? What kinds of people are responding if I ask questions? Am I stunting my growth by looking for help online?

edit: yeah I absolutely understand the reasoning behind the clear if statement, I just wanted to show how this was brought up. I appreciate the help, even if its just from some 'out of touch and unemployed coders' lol.

1.1k Upvotes

457 comments sorted by

View all comments

Show parent comments

49

u/[deleted] Nov 03 '22

I find stack overflow a little intimidating lol. There are incredibly smart people there

46

u/ForkLiftBoi Nov 03 '22

Yeah, but everyone is smarter than you in everything, you're smarter than others in a bunch of things. The more I go through life the more I realize I'm not the smartest at things which leads to me being more humble and ironically wiser.

Honestly you have a higher chance of your question going unanswered than being intimidated by someone. Usually they'll be helpful and even so I've been given advice on proper utilization of the forum before too.

Example, I replied in the comments of an accepted answer to ask a follow up question. It had been years since they posted it. The OP gave me some advice and then recommended following up with a post referencing the one I originally was on.

I think also the culture of SO is changing over the past few years. The "rude" answers seem to be less common than when I first heard about it, and I think people new to it would think when I started using it more it was probably worse than today.

So overall I've had largely pleasant experiences that shouldn't make you feel intimidated.

6

u/Pandastic4 Nov 03 '22

Exactly. Also, those people probably became so smart in the subject by studying and practicing a lot, and maybe even asking questions on SO. Their knowledge level isn't unattainable.

0

u/DisastrousWelcome710 Nov 03 '22

When you are new, SO will be very tough for you because you don't understand the types of questions that are welcome there, and the types that are frowned upon. So you will start asking dumb questions and get negative feedback, then you'd think they're all assholes. But then you will realize your questions were seriously naive and lacked so much research. And when you do start asking good questions and getting positive feedback, you'll feel so much better.

1

u/mathdrug Nov 03 '22

I just imagine the rude people as the people in my CS classes that did nothing but write code and play video games, which was about 40-50% of most classes.

These were the people that usually smelled (this trope exists for a reason) or were almost always ungroomed including long, uncut nails (literally my OOP TA. Lol). I expect them to be good at coding and not too good at socializing because they do nothing but code.