I don't see what "I'm sticking to this way even if you all tell me it's a mistake" gets you.
Members took time to tell you better and you blew them off then play victim when they try to wise you up.
But hey, you waste all of your own time you want, I bet you don't get upset over that.
I'm a few years late (and a dollar short) - and not to beat a dead horse here - but I came across this thread looking for - what I thought - would be the right solution (I was wrong) to something string related, and while admittedly I don't have all the context, I've gotten the *ss end of the stick enough that I felt the need (desire?) to chime in..
I don't know what the right term is, trolling, mean-spirited, heavy handed, just being a jerk, take your pick.. What I get out of the above discussion is that the OP went looking for a solution and instead of getting helpful guidance, he got beaten with a stick and told to RTFM. Just to be clear, this is a 'community' forum, not a lecture hall. 'Quit being lazy'? Really? That was the nice - or more to the point - helpful way of wording that?
You see how you interpret.
BTW, this is a tech forum not a modern university "safe space" with cuddle toys and blankets.
Wow. Just.. wow. I see how he interprets BTW. And this is a Tech Forum, AND it's supposed to be a safe space. If you don't want to answer questions for "n00b", then don't answer. If you can't take the time to meet people where they're at, why bother replying at all? noweare is right - he may have never posted again. If I knew that these are the kind of replies I'd get, I sure as hell wouldn't. To be blunt, you're not wrong, you're just *ssholes. If people treated you guys like this when you were learning, can you honestly say you'd be receptive? Having dealt with this crap in the past, just because I hate it when people do this kind of thing, I would have dragged this out as long as humanly possible JUST to waste your time.
When you reply to people asking for help, if you're too superior to not act like a decent person, don't go kicking them in the crotch, just don't say anything - move along. You want to discourage bad habbits? Fine, I get that - I even agree with it - but there's discouraging by teaching, and then there's discouraging by shooting people in the knee caps. Which do you think is a more useful teaching tool? One way, you'll get someone grateful, who'll learn and listen and respect - and be a better programmer for it. The other way, you'll end up with someone so turned off by all this that they give up entirely, not because they're idiots or incapable, but because all you taught them as that the "community" of peers isn't really willing to help; all they're interested in is having pissing contests and showing off how much more they know than you do.
I'm not a programmer, I don't exercise best practices - not because I'm lazy, but there's a difference between not asking questions, and not knowing that you needed to ask questions. There's an opportunity here to help someone who might have ideas you never even considered - even if they're n00bs now. You don't think the Einsteins, Teslas (the guy and the car.. guy), and anyone else who became amazing at what they do (maybe Musk wasn't a great example), didn't ask some pretty stupid sounding questions at some point? Imagine where we'd be if every time Edison got the light bulb wrong, some guy came in with a golf club an broke a leg? Think he'd have invented the light bulb? (lets just use him as the inventor metaphorically since its arguable if the man himself was the "inventor") - I think Edison would have said screw it, and gone back to candles.
Now that I've wasted 45 minutes on this, back to work (and to await someone's heavy handed response about how I'm just an overly sensitive baby who doesn't belong in the tech world or on the interwebs). Seriously though, "you're wrong and you're an idiot for being wrong" is not an effective teaching tool. No, thats not a direct quote obviously, but thats most definitely what was effectively said. THIS is why the world is all about competition and not collaboration. Everyone's got this need to prove how big their junk is.. what a waste of EVERYONE's time (now including my own..) Civil. Thats the word I've been looking for. Civil. Be civil. Be kind, be humble, don't be cruel, don't be judgmental or presumptuous; these things lead to hate and only bread more hate. Call me hippy dippy all you want, but this is as bad as cops abusing authority because they can. Shame on you - and you'll know who you are because you're most likely to be the first ones to reply to this with more pettiness. Feel free to kick me off my soap box and put me in whatever place you think I belong; you'll only be proving my point. (This is my only reply to this btw, yeah, I have a pretty good idea what the response to that is going to be - something along the lines of walking away from a fight, or being too pansy or chicken to stick around, or maybe *I'm* the petty one. Whatever the case may be, I've said my piece.) Hopefully this gets taken as a helpful calling out and not a way of picking a fight. I just don't like seeing the little people getting pissed on.