Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jonasbn (1153)

  reversethis-{gro.napc} {ta} {nbsanoj}
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Wednesday May 07, 2003
03:51 AM

Is Perl ugly and unstructured?

[ #12056 ]

One of my colleagues does not want to touch Perl. He finds it ugly and weird. A few weeks back I got an assignment of delivering a script to the system he is maintaining. I wrote it and now I have to integrate it with the existing Perl modules and scripts used by his group/system.

Now I understand...

The modules are messy and unstructured, I need to call methods in one of the modules and it needs another module meaning that the PERL5LIB environment variable is getting longer and longer the more I dig into the structure.

I am thinking about asking my boss for the assignment of refactoring (rewriting) all of the existing modules used by this system.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Egads! (Score:3, Funny)

    by WebDragon (1204) on 2003.05.07 21:30 (#19909) Homepage Journal
    Now you know what I felt like the moment I took a look at the code for webmin. :/

    I wanted to shred it upon the instant, whip out and HTML::Template and my Vorpal Keyboard and HAVE AT THEE!! {hack, slash}

    I mean really. REALLY. If someone was willing to pay me to do it I'd drop everything and just go DO it. I might just do it anyway and hold it for ransom :D
  • You can write ugly and unstructured code in any language. Since Perl is so easy to write in, it makes it easy to write ugly and unstructured code. But on the other hand, it is also easy to write beautiful and structured code in Perl - it just needs more effort on behalf of the programmer.

    Hm. Thinking about it, since Laziness and Impatience are two of the great virtues, maybe this pulls the balance towards ugly and unstructured 'write-only' code (get the job done, and get on). On the other hand, Hubris defi