|
When reviewing resumes, I find certificates a negative (along with PhDs.) This is based on a lifetime of experience where most (not all, most) people tout certificates as a substitute for actual knowledge.
|
|
|
|
|
Speaking as someone who's given more than several technical interviews, I can say they don't have a negative impact IMO to have them. But, they don't certainly mean I'd hire someone just because they're there. So if you really want to pay for them go for it. Can't hurt. Just don't expect them to be a magic bullet to convince you to be hired, if the person hiring has any experience at all they'll use other means to gauge how good you are.
Jeremy Falcon
|
|
|
|
|
|
True.
|
|
|
|
|
|
|
8 years and 9 months in the making. Can't wait for the next installment.
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
|
|
|
|
|
He found his lost password in the cab so he was thanking.
___ ___ ___
|__ |_| |\ | | |_| \ /
__| | | | \| |__| | | /
|
|
|
|
|
Curse you, C#!
cheers
Chris Maunder
|
|
|
|
|
We (C# devs who've programmed in C/C++) have all felt that at some time or other.
But think of all the pointer arithmetic you've been able to forget about and that should make you happy...right?
|
|
|
|
|
and if you fancy doing some pointer arithmetic in C# then string[i] = 'x' is possible - but crazy
|
|
|
|
|
StringBuilder will do that.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
TheGreatAndPowerfulOz wrote: StringBuilder will do that.
Great catch!
StringBuilder s = new StringBuilder("tool");
s[0] = 'c';
Console.WriteLine(s.ToString());
|
|
|
|
|
It's too bad you can't do it in one line of code though...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
StringBuilder is not string.
cheers
Chris Maunder
|
|
|
|
|
Picky, picky.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Are you sure?
StringBuilder
|
|
|
|
|
If that were possible in C#, wouldn't that "weaken" the (what I perceive as) intention of the language designers to enforce string immutability ?
Sure, you can do a work-around using Extension Methods. Visual Basic allows you pass the 'this parameter of an Extension Method by reference, while C# does not, so something like this will do:
public static string SetChar(this string str, int ndx, char ch)
{
if(ndx >= str.Length) throw new ArgumentOutOfRangeException();
charAry = str.ToCharArray();
charAry.SetValue(ch,ndx);
return new string(charAry);
} I used a 'CharArray here simply because TheGreatAndPowerfulOz already mentioned using StringBuilder.
However, you could write an Extension Method on 'Char, and pass the string by reference, but that syntax would look kind of weird: string somesubstitution = 'x'.SetCharInto(ref mystringVar, 3);
Gosh, I wish I CodeProject had a Forum where a lot of people really discussed C# language issues ! In case that statement is not clear to some of you: I am indirectly lamenting the fact that the C# language forum is now not what it was many years ago in terms of real interchanges about language features, often, imho, full of questions that should have been posted on the QA forums.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
Shouldn't the sanity check be this:
if(ndx >= str.Length-1) throw new ArgumentOutOfRangeException();
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Hi John, nope the test I show allows you to change the last character, but the test you show would only let you change up-to the character before the last character.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
You're right, of course.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
It's so rare that I'm "right" that I can make a meal out of even a crumb ... like this.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
You can write unsafe code that will allow you to access individual characters.
BillWoodruff wrote: C# language forum is now not what it was many years ago in terms of real interchanges about language features, often, imho, full of questions that should have been posted on the QA forums.
So how do we fix that?
A couple of options
1. We allow members to move questions from the forums to QA.
2. We combine all forums into one, and call it "Programming Discussions". Not for questions, but for discussions. The Lounge for Programers.
3. ?
cheers
Chris Maunder
|
|
|
|
|
Hi Chris, I wish I had a really specific constructive suggestion to make ! As I perceive it, it is not the tao of CP to have moderated forums, and I wonder if you'd be willing to move in such a direction, if the membership would accept that.
I think every MVP and Mentor should be willing to do some "jury duty" for some period of time ... if you enable these folks to move questions from the C# language forum to QA.
Then there's the question: is there really an "appetite" for discussion of language issues and quirks, and work-arounds, and such ? Is it the case of "build it and they will come" ?
I've long felt that valuable programming content ... that would be useful to members in the future ... appears here on the Lounge, and then kind of gets submerged in the spate of the usual frivolities.
But, who's going to somehow curate/tag that content, or copy it to a place where it persists and is indexed in a valuable way ?
But, just because I see a few pimples on the angels, does not mean I do not see CP, as it is now, as paradise
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
Switch to VB.NET and she'll be right:
Dim s As String = "Cool"
Mid$(s, 1) = "F"
Console.WriteLine(s)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|