r/cpp • • Sep 25 '11

Asking for programming help

I have been coding now for around 20 years, and in all that time I have basically never asked for help with any programming issue that I've ever had. That includes forums, mailing lists, IRC and coworkers.

The issue I have is that it has always been possible, with a little effort, to work out the problem myself. I feel like this will make me a much stronger coder in the long run, as I am forced to understand many different areas of coding.

Another not-insignificant issue I find is that I really hate just asking for a solution while I haven't exhausted all my own options. I know that when I read forums and the like, seeing people who (in my opinion) just want someone else to solve their problem without them having to do any work, it really pisses me off!

The only downside I can see is that sometimes I can struggle with thorny issues for a long time, which is obviously not ideal if I'm working to a deadline. It's also a little weird seeing just so many forum posts and the like asking for help, when I just don't ever do it.

How and when do you ask for help? Do you prefer to work out problems yourself, or are you ok with posting on forums? What criteria does a problem have to meet first?

0 Upvotes

30 comments sorted by

View all comments

10

u/chengiz Sep 25 '11

If you've been coding for 20 years without asking for help, you are either a genius or a bad programmer. Your metric should not be "becoming a stronger coder in the long run" but "how quickly you can solve the problem well". When people ask others for help, it's because they struggled on the problem for a while and understood it'd be quicker to ask for help. And frankly, the idea that you'll be a stronger coder if you figure it out for yourself is just bullshit. In fact your entire post is kinda WTF. If you said this in an interview, you'd be out on your ear.

2

u/Ayjayz Sep 25 '11

Your metric should not be "becoming a stronger coder in the long run" but "how quickly you can solve the problem well"

That completely depends on the context. When I'm coding stuff for fun, why should that be my metric? If I am employed in a long-term position as a coder and my boss would prefer me to invest some time learning how to be a stronger coder so that I can save more time in future, why should that be my metric?

Your position is ridiculous anyway. Even something like reading the documentation on a library you need to use is trading off "quickly ... solv[ing] the problem well" for "becoming a stronger coder in the long run". I highly doubt you would oppose reading the documentation for a new library.

3

u/Fabien4 Sep 25 '11

I highly doubt you would oppose reading the documentation for a new library.

True. But documentation isn't always perfect. And sometimes you misread.

Last week a colleague called me because his code (calling a function of mine) didn't work. Turned out he tried to access foo->bar while he should have written foo->baz->bar instead. He could have wasted a couple hours identifying the typo, and that wouldn't have made him a better programmer.

2

u/vindvaki Sep 25 '11

He could have wasted a couple hours identifying the typo, and that wouldn't have made him a better programmer.

Well, it depends: Spending a lot of time debugging a stupid mistake should in principle make you more careful when coding (and reading).

Of course, in your example, I think he was better off asking you, but when you are still learning, you need to make sure not to deprive yourself of some key learning experiences.