SA Developer .NET

Welcome to SA Developer .NET Sign in | Join | Help
in Search

Rewrite VB.NET App in C#

Last post 09-05-2008, 15:46 by horatio. 3 replies.
Sort Posts: Previous Next
  •  09-05-2008, 12:50 14586

    Rewrite VB.NET App in C#

    I've done lots of this kind of work, and in fact I really enjoy doing it. It's so much better than just refactoring the little bits of code I touch when doing maintenance.However, it's been a while since I did a complete rewrite, and was hoping for some insights from my fellow experts here on the higher levels of the process. I'm thinking of documenting classes and process in a UML'ish manner, then optimising, the coding the new design. What I used to do was replicate functionality with little initial redesign, and while coding I would recognise duplication and bad practices, and remove them on the fly. How do you guys handle projects like these? I would also like to include a TDD foundation on this project, so any advice on that would be welcome as well.
    Unscrambling Eggs: Decompiling ASP.NET
  •  09-05-2008, 13:12 14588 in reply to 14586

    Re: Rewrite VB.NET App in C#

    Hi Prof,

    Have done this before, but not as it should have been done.

    But to answer your question, yes, if you are going to rewrite an application, do it the right way from the get-go. Rather do it the way you suggested, doing things in a UML manner, optimising, then coding.

    I would also suggest breaking up the application into different tiers, i.e. a Data access layer, Business logic layer, and a presentation layer. When we do something like that here where I work (we are in the process of rewriting many old Java apps to .NET C# and ASP.NET), we even re-do the database as well, or else there is no point to do it. Now, I don't know if you can do that, but I highly recommend it. Once, when we had to rewrite an app at a previous place I worked, we used the same D.B structure as the old system, which resulted in a number of headaches for us developers, considering the way the application was written. We had to code around about 10 or so tables that we weren't even using, but had F.K.'s etc that linked to tables we were using (O.K. I here you all say "JUST REMOVE the tables", but 1.) there was not time and 2.) The system architect was too lazy to figure it out).

    Hope this can help,


    The Question is the Answer, and the Answer is the Question!
  •  09-05-2008, 14:10 14589 in reply to 14588

    Re: Rewrite VB.NET App in C#

    Fortunately it uses our pretty sound database as it is, and I will be integrating with our very sound exiting DAL.
    Unscrambling Eggs: Decompiling ASP.NET
  •  09-05-2008, 15:46 14590 in reply to 14589

    Re: Rewrite VB.NET App in C#

    Good. Believe me, that'll shave a lot of work off of your dev.
    The Question is the Answer, and the Answer is the Question!
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems