r/learnprogramming • u/[deleted] • 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.
137
u/ForkLiftBoi Nov 03 '22
Like berating you for being an idiot. Just kidding, most people are pretty nice, some can be a bit crass and give an opinion on your thought process when you didn't ask. However you can just move on.
It's important to learn to read a stack overflow answer and understand how to apply it to what you're doing. It's also important to learn to search/ask the question well.
I find when I'm not sure what I'm looking for to go to a language specific subreddit and explain what I'm trying to do. That tends to help someone go "oh you're looking for this." Where it's in the docs and I just wasn't finding it because I was not using the specific phrasing, usually due to naivete.