Blog du Tristank

So terrific that 3 of 4 readers rated it "soporific"

C#: The Good Life

So I decided one day that my rudimentary knowledge of C++ isn’t really up to par (after several half-hearted book purchases and first-three-chapter reads, as is my M.O.), and that I should really spend some time improving my skills. I’m fairly fluent in (safe) C# and VB.Net, and I’ve a reasonable background in VBScript and ASP. Developer persona wise, I’m somewhere on the Elvis side of Mort.

 

To cut a long story short, I’ve just spent the best part of two hours fighting with string manipulation.

 

Freaking string manipulation. For what? Why is it so necessary to have horribly crippled operators like cin be the basis of all user interaction?

 

I’ll shout it right now – I love C#. I was pretty fond of her before, but after flirting with the sexy-but-infinitely-complex C++, I’m ready to take her back, marry her, and one day bear her intentional programming children.

 

I love not needing to worry whether a character’s a “basic string” or a char* because of some weird standard library template, or whether it might contain tokens. Ooh. Tokens. I feel like I’m trapped somewhere in the world of Tron. (the 1982 version, not the (excellent) PC sequel)

 

More seriously, I’m resigned to the idea that as with so many things you learn in the technology business, the first time it’s lengthy and difficult, but the second time it’s cached (but the cache lifetime may vary). Sigh.

 

I know it’s not particularly 1337 to admit to not being a rocket scientist, but as a programmer that’s focused on producing working code that actually does more or less what it’s intended to do without spending hours fighting over a )(&% semantic difference between the same type (!?), I love the .Net Framework. I totally dig C# as a c-like language. And I hope never to have to prod my digits near a C++ CLI text entry program again. Well, until the next lesson.