>such as reference counted smart pointers
There's no such thing. That's why they are smart, they handle it for you.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $19.99
-------------------------------------------------------
"Tamas Demjen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> cj wrote:
>> I don't want to start a war but why would I choose one over the other?
>
> In my opinion C# can't be completely overlooked. If you take a look at
> craigslist, you'll notice that there are a huge number of C# jobs out
> there. Of course there's still a market for C++ programmers, but that
> tends to be the Linux/server side/embedded segment. But even as a C++
> programmer, chances are that you'll have to work with C# or Java at one
> point in your life.
>
> It's an order of magnitude more difficult to master C++ than C#. In C#
> it's easier to write perfectly clean code with a lot less experience. I've
> seen programmers who struggle with proper C++ programming practices and
> implementation details, which results in difficult to maintain code.
> However, the very same people do a fantastic job when they get a chance to
> program in C#, and their code quality tends to be much higher.
>
> Dealing with existing C++ code can be a disaster when you have lots of
> inexperienced programmers on your team. To program well in C++ you have to
> learn disciplined modern C++ practices, such as reference counted smart
> pointers, RAII, exception safety, etc. Picking up a good style is
> impossible when you learn from old C++ books. Companies who hire C++
> programmers tend to have lots of legacy code that I wouldn't consider
> modern or easy to maintain.
>
> When practices right, I love modern C++ a lot, but even I tend to admit
> that programming in C# or Java is more relaxed.
>
> The decision is up to you, because there's a market for good C++
> programmers. For example, device drivers or game engines can't be written
> in C# yet. But you have to work a lot harder to achieve success in C++
> than in C#.
>
> If your question is related to C++/CLI (programming .NET in C++), then I
> don't recommend it. You should know that Microsoft has poor Windows Forms
> and Web Services development support for C++/CLI. C++/CLI currently is a
> lot lower class citizen language in .NET than C#.
>
> Tom