in reply to Explaining a Perl project to a VB-bound audience

Hi. My name is Jeff Anderson. I am a VB-aholic, but i have been *sober* for 2 years now.

Jesting aside, i really am a 'converted' ex-VB programmer. I agree with tilly about avoiding such analagies, but i will do so anyway.

First, do NOT compare Perl modules to COM! Visual Basic uses COM to achieve object embedding in MicroSoft applications. COM is MicroSoft specific, just as CORBA is to Sun. Perl has the cabability to speak COM and OLE thanks to some recent CPAN modules, but unless you are writing a Perl script that specifically needs to do such, then COM is a non-issue. Perl modules can't be compared to ActiveX controls either ... those are more like Java Beans. I have heard rumors of Perl 'Beads', however...

Instead, compare Perl modules to VB Class Modules. With Visual Basic, Classes are a bit magical. You have to have name your methods to get,set, and let accordingly - that's why it is desirable to use the Wizard to create VB Classes.

With Perl, well, you don't have to follow any such rules. As a matter of fact, i LOVE to show VB heads Perl's AUTOLOAD subroutine - that crosses their eyes! Sometimes they see the beauty and power, most of the time not.

GTK+ vs. VB? On just about any given day, VB wins. Why? Because that is one of VB's greatest strengths. GUI creation. You just can't beat being able to drag a control onto a window and double clicking it to get to the code section. Maybe there is a tool avaible that gives GTK+ this same power, if there is, please let me know!

DBI vs. ADO? Well, personally i think ADO is very 'one way of doing things' whereas DBI is very flexible. For the most part though, the basic concepts are the same: connect, store, fetch and iterate a 'cursor' over the results.

So, in conclusion i say that comparing VB to Perl on a generic basis is like comparing apples and oranges. I would focus on why VB CANNOT do what your Perl script does, at least not as easily.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on (jeffa) Re: Explaining a Perl project to a VB-bound audience

Replies are listed 'Best First'.
Re: (jeffa) Re: Explaining a Perl project to a VB-bound audience
by maverick (Curate) on Jan 19, 2002 at 23:27 UTC
    GTK does have a GUI interface builder called Glade, you may have not been in the office when I was playing with it. :)

    I only tinkered with it breifly, but it made UI creation very easy. It is geared toward building C/C++ applications, but it does have a Perl binding...how well it really works, I don't know.

    /\/\averick
    perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"

      ...how well it really works, I don't know.

      All of the hardcore gnome hackers that I've spoken with seem to come to the same concensus: use the .glade file, but not the code.

      Personally, I don't mind the C code glade generates, but most seem to disagree. The Perl code that can be generated via glade is done with glade2perl, which is a Perl program that makes heavy use of Glade::PerlGenerate. IMO, the code that it generates is absolutely hideous! I generally hand-write my own, but have been meaning to try libglade (see below).. and'll be glad to let you know how it is if/when i do.

      As far as peoples' distaste towards glade generated code... it seems preferable to just use libglade to dynamically generate the UI from the .glade xml file.
      I believe (but am not sure) the Perl binding for this lib is Glade::PerlRun, though I've never used it.
Re: (jeffa) Re: Explaining a Perl project to a VB-bound audience
by theguvnor (Chaplain) on Jan 20, 2002 at 07:54 UTC
    I don't know if any one factor is going to convince the brass that Perl is a winner. In my case, we started out working with MS ASP on an NT/IIS server. Every time we wanted to do anything new, we'd realize that ASP just didn't cut it, and so early on we started to switch to Perl. Now it's pretty much all we use. The "ASP guy" had to go find somewhere else to occupy his time ;)

    -Guv