T
Tad Marshall
Hi,
I wrote some code that works with a SQL Server 2000 database, and all the
examples I was finding used VB.NET, so that's what I picked as a language.
This wasn't the right choice for me. My background is in Win32 programming
in C++, and I designed stuff that really wanted to use unions and static
casts, and VB.NET just let me down. The code works, but it's very clumsy
code and I'd rather have it in a language better suited to what I'm doing.
I'm going to rewrite the code into some version of C, which will not be that
big a deal. I have just under 2000 lines of VB.NET code and it will end up
being around 1500 lines of either C++ or C# code.
Given that I was a happy camper when I did Win32 C++ programming, is C++
still the best language for me to use when I rewrite my VB.NET code? Or
would it be worthwhile for me to take a few days to become comfortable with
C# and use that instead?
My impression so far is that C# is sort of a "cleaned up" version of C++,
with better syntax for the kinds of things that .NET does but fundamentally
fairly similar to C++. Does this seem like an accurate assessment to you?
Many of you must have switched from C++ to C#. Was it basically painless
and something you were happy to do? Or would you really have been more
happy staying with C++?
I could go either way. There is nothing especially wrong with VB.NET, but
it just isn't the best language for me given my background and the way that
I like to write things. I am quite sure that I could translate this code
into either C++ or C# given a few days to get up to speed on the .NET issues
in C++ and learn the C# syntax. I am using a small subset of .NET and have
no issues with that part of the problem. My C++ code could be managed or
unmanaged so long as I can access the ADO.NET and DateTime functions I'm
using (which I guess would all be managed code) and there is nothing that I
am doing that requires unmanaged code. But, my code would be better and I
would be more productive in working on it if it was in some flavor of C.
If you have any advice that you feel like offering, it would be very helpful
to me. Thanks!
Tad
P.S. I'm using VS.NET 2003 on Windows XP, and VB.NET is working just fine
.... I do like IntelliSense and hit the tab key quite a lot as I code. I
assume that this works about the same way in C# and probably C++, but I have
no experience to support this conjecture.
I wrote some code that works with a SQL Server 2000 database, and all the
examples I was finding used VB.NET, so that's what I picked as a language.
This wasn't the right choice for me. My background is in Win32 programming
in C++, and I designed stuff that really wanted to use unions and static
casts, and VB.NET just let me down. The code works, but it's very clumsy
code and I'd rather have it in a language better suited to what I'm doing.
I'm going to rewrite the code into some version of C, which will not be that
big a deal. I have just under 2000 lines of VB.NET code and it will end up
being around 1500 lines of either C++ or C# code.
Given that I was a happy camper when I did Win32 C++ programming, is C++
still the best language for me to use when I rewrite my VB.NET code? Or
would it be worthwhile for me to take a few days to become comfortable with
C# and use that instead?
My impression so far is that C# is sort of a "cleaned up" version of C++,
with better syntax for the kinds of things that .NET does but fundamentally
fairly similar to C++. Does this seem like an accurate assessment to you?
Many of you must have switched from C++ to C#. Was it basically painless
and something you were happy to do? Or would you really have been more
happy staying with C++?
I could go either way. There is nothing especially wrong with VB.NET, but
it just isn't the best language for me given my background and the way that
I like to write things. I am quite sure that I could translate this code
into either C++ or C# given a few days to get up to speed on the .NET issues
in C++ and learn the C# syntax. I am using a small subset of .NET and have
no issues with that part of the problem. My C++ code could be managed or
unmanaged so long as I can access the ADO.NET and DateTime functions I'm
using (which I guess would all be managed code) and there is nothing that I
am doing that requires unmanaged code. But, my code would be better and I
would be more productive in working on it if it was in some flavor of C.
If you have any advice that you feel like offering, it would be very helpful
to me. Thanks!
Tad
P.S. I'm using VS.NET 2003 on Windows XP, and VB.NET is working just fine
.... I do like IntelliSense and hit the tab key quite a lot as I code. I
assume that this works about the same way in C# and probably C++, but I have
no experience to support this conjecture.