Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Perl to VB.NET

by Anonymous Monk
on Aug 01, 2007 at 16:58 UTC ( [id://630118]=perlmeditation: print w/replies, xml ) Need Help??

Hi
I have now few years of Perl experience with me and feel comfortable. It's also coupled with my degree in computer science. I am at a point in my career that I am happy with what I am doing. Now, I am transferred to a group where VB and .Net gets priority over anything else, especially Perl. I have mastered Perl so that I can implement any thing that is easily possible for the language. In order to gain proficiency like this in .Net and leave Perl, it would take few months as I believe. Should I go about it or stick to Perl? If at all I have to go with .Net what are the starting tips, that you would mention?
Thanks for your wisdom.

Replies are listed 'Best First'.
Re: Perl to VB.NET
by nicholasrperez (Monk) on Aug 01, 2007 at 18:30 UTC
    From someone who knows multiple languages (and also started off learning Perl first): take the core ideas in Perl and use them as a foundation or spring board to learning other languages.

    At first, it will be hard. Consider hashes and arrays. Perl's built-in data structures are, I think, probably the most important part of the language. Not so in other languages. So take the time to find out where those tools reside. In the .NET world, Hashtable and ArrayList are off in the System.Collections namespace.

    And there are other examples that are similar. Don't throw away all of your knowledge gained from learning Perl first. Just map the ideas from one to the other and you will be successful.
Re: Perl to VB.NET
by derby (Abbot) on Aug 01, 2007 at 17:15 UTC

    Your job may see perl and .net as mutually exclusive but you don't have to view it that way. Learning multiple languages is not a zero sum gain game.

    -derby

    Updated: As grinder pointed out to me ... it's zero sum game not gain.

Re: Perl to VB.NET
by dogz007 (Scribe) on Aug 01, 2007 at 19:35 UTC
    nicholasrperez has a good idea above when he says to "map" your ideas from Perl to .Net. Perhaps you could ease the transition by constructing tools in .Net to help you manipulate arrays and hashes just as you would in Perl (i.e. functions such as map, grep, push, pop, shift, unshift, splice, reverse, join, keys, delete, sort, etc.). This would not only give you excellent practice in .Net programming, but would also allow you to directly carry over many of your Perl techniques into your new .Net environment.
      Some of those are already available as methods of the various container classes.


      holli, /regexed monk/
Re: Perl to VB.NET
by CountZero (Bishop) on Aug 02, 2007 at 15:58 UTC
    As someone who has switched from VBA and VBA to Perl, I would say to be very careful to map your Perl knowledge to VB or you will be writing Perl in VB and you will never learn to write proper VB.Net.

    I do not mean to say that you have to start from scratch. As an experienced programmer you have a lot of meta-knowledge on programming and solving programming problems, only apply this experience the VB.Net way and not the Perl-way.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Perl to VB.NET
by Aim9b (Monk) on Aug 09, 2007 at 15:17 UTC
    You needn't "switch" to .Net, just 'include' it in your problem solving toolkit. Multiple languages (& more importantly, when to use each) is what distinguishes great programmers from the merely good ones. You also may need to hone your salesmanship skills, in order to convince mgmnt "when" perl is a better tool for some task, than C++ or VB.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://630118]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-06-17 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.