Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 2:18 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Migration to VB.NET
PostPosted: Fri Feb 18, 2011 1:49 pm 
Offline

Joined: Wed Sep 09, 2009 2:23 am
Posts: 30
Location: Vittel - France
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 C#.net 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.

Sylvain


Last edited by elsylve on Sat Feb 19, 2011 10:13 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Migration to VB.NET
PostPosted: Fri Feb 18, 2011 2:28 pm 
Offline
User avatar

Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2353
Location: England
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 VB.net 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 VB.net 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?
;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Migration to VB.NET
PostPosted: Fri Feb 18, 2011 3:45 pm 
Offline

Joined: Wed Aug 05, 2009 6:32 am
Posts: 174
Location: Arkansas - USA
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.

_________________
Windows 7 (RB Pro 2012R2.1) / Ubuntu 12.10 (RB Pro 2012R2)


Top
 Profile  
Reply with quote  
 Post subject: Re: Migration to VB.NET
PostPosted: Tue Feb 22, 2011 6:06 pm 
Offline
Site Admin
User avatar

Joined: Fri Sep 30, 2005 9:35 am
Posts: 987
Location: South Portland, Maine
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

_________________
Paul Lefebvre
Developer Evangelist
Xojo, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: Migration to VB.NET
PostPosted: Thu Mar 03, 2011 3:25 am 
Offline

Joined: Wed Sep 09, 2009 2:23 am
Posts: 30
Location: Vittel - France
Thank you all for your helpfull advices !
Now, I think I'll choose VB.
Best regards.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group