Real Software Forums

Migration to VB.NET
Page 1 of 1

Author:  elsylve [ Fri Feb 18, 2011 1:49 pm ]
Post subject:  Migration to VB.NET

Hello dear collegues

I have developped (alone) a professionnal application for nearly 1 year.
Now, my company wants to invests more in the project, but wants this project to be compatible with other internal ressources.
So, I' ll have to migrate the project to .NET (company choice)
... " Let's say, I am desappointed to start again from the beginning (I don't know about .NET at the moment) "

1/ question :

Do you know a 'guideline' or something about VB.NET, REALbasic migration
(Usualy, migration seems to be more this way : VB -> REALbasic)
where are traps about migration to VB.NET?


My company decision : migration could be VB.NET or C#.NET.
And : It's me that will make this desision.

VB seems to be very close to REALbasic
But on an other hand, I know C and Java ( syntaxicaly close to C#)

2/ question :

Would it be a realy a gain of time to choose VB.Net than C# (faster because same syntaxe ?, faster because copy -> paste ?)

Or do you think could be a good choice as well
(more modern approch, more object oriented ..... and may be as fast as VB to complete migratation )


Thanks to have read this post.
Thanks a lot if you can share your experience.


Author:  jefftullin [ Fri Feb 18, 2011 2:28 pm ]
Post subject:  Re: Migration to VB.NET

Its interesting about 'compatible with internal resources'
Thats surely only relevant if they want to take the code from you and develop it again using another developer later.
(And why not)

You wont get much from your RB project by copy and paste, but if you paste it in, comment it, then convert it line by line, you may recover some work.
The business logic is re-usable.
The User Interface (ui classes) are very different, and you may need a rethink unless you used simple text boxes and listboxes.

The .NET framework means that the objects you work with in VB.NET and C# are much the same.
Given a choice, I still find it faster to work in than the C# version, but if you are familiar with the syntax of both, the time diff is small.

That said, a C# programmer demands more money than a programmer. If your employer will pay you to do it in C#, use the opportunity to develop skills there and add to your CV
It may be painful, but if they wanted to save money, maybe they shouldn't refactor the code, eh?

Author:  jharris [ Fri Feb 18, 2011 3:45 pm ]
Post subject:  Re: Migration to VB.NET

I have projects for my employer and for personal clients in both VB and C#. I find VB faster to work with also. I do apps in C# just to learn and stay up on the language. You never know when someone will want an app in C#. Any apps that I feel there will be lots of maintenance involved, I will choose VB first. I don't find the C# apps being any better than the VB apps. Visual Studio 2010 is a very productive IDE for developing.

Author:  Paul Lefebvre [ Tue Feb 22, 2011 6:06 pm ]
Post subject:  Re: Migration to VB.NET

1. I don't know of any guidelines for moving to .NET from RB. I suspect most of your non-UI code would translate nicely. UI components and events are not the same between RB and .NET, but I would say that RB is mostly a subset so you'll likely be able to find a home for everything.

2. I prefer VB over C#, mostly because I find VB to be more readable. I am not aware of any functional difference between VB and C#. C# is quite similar to Java so if you're familiar with Java it might be a good choice. I don't particularly think C# has much in common with C beyond some basic keywords. You will find many more C# examples on the internet than equivalent VB samples.

Moving between completely different languages, no matter how similar they may appear, is always tedious and time consuming. I don't think you'l find a way around that.

If it were me and I had to use .NET, I'd still pick VB, though :D

Author:  elsylve [ Thu Mar 03, 2011 3:25 am ]
Post subject:  Re: Migration to VB.NET

Thank you all for your helpfull advices !
Now, I think I'll choose VB.
Best regards.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group