If you could have your legacy vb6 code upgraded seamlessly to another language which would you choose and why?
C#, often same target group and purpose of the application (minimal effort porting requirements).
Definitely not languages that have braces { } such as Java and C#. If you are accustomed to VB codes, switching to braces and semi-colon can be very painful.
IMHO, VB.NET will be the BEST! If you are using VS2008 and VS2005, you will find intellisense support for VB.NET much better than C#. VB .NET was designed to be a very good upgrade option with complete Object Oriented features for VB6 programmers. Also, a lot of old VB6 APIs and constructs have one-to-one mapping in VB .NET
Many people thought that VB6 and VB .NET are the same kind of animal and they prefer C#, but they are not. From an application programming (not system programming) perspective, whatever can be done in C# can be done easily in VB .NET. This is demonstrated by the fact that a lot of books on ASP .NET covers both C# and VB.NET. They are almost equivalent in the application development sense.
I was going to say Swahili ;-)
I can only anwer in retrospect, because the port has already happened.
We chose VB.Net because:
- Our code-base was Windows-specific, so there was no need for Java.
- We wanted a high-level business-oriented programming environment, so no C++ for us.
- We were looking for a big-name vendor with a large user base, so niche languages were not considered.
- Delphi was already dead :-(.
- We wanted to leverage our existing VB skills, so chose against C#.
- We had hoped to use the Wizard (but decided not to as it did such a poor job).
For the most part, I am happy with this choice. However, Java might have offered us added value - on the CV for example. It isn't easy to be expert in any one mature programming language, so I have become a VB.Net programmer through-and-through.
If you ask me, I'd definitely choose either VB.net or C#. The "porting" would be much easier. I'd also agree on the points stated by Sir Kramii above...
You mean, some fairy magically converts the whole code into a totally different language, complete with the use of the right idioms and language abstractions, and the target platform is not an issue?
Common Lisp.
Seriously, this is then just another of those "what language do you like most" polls.
Well, since this is not a realistic question, I will go with PHP. Then my VB6 app can be an online app, plus I can compile it using zend encoder, and also turn it into a cross-platform desktop app, and still access COM components natively. I can also get easy access to MySql databases (and a bunch of others). Wow!
In reality, I think closest language to VB6 is RealBasic.
I'd choose python.
Not because it's "better" than any other choice, but it's a langauge I'm enjoying messing around with lately, and being able to do the A-B comparison from working VB6 code to working python code would be very enlightening for me, I suspect.