Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses


by Callum (Chaplain)
on Mar 03, 2006 at 10:00 UTC ( #534181=note: print w/replies, xml ) Need Help??

in reply to

I keep a module around which contains a variety of personal subs, and obviously this has never been intended to appear on CPAN or anywhere else public.

However it does feature in scripts I've written at work, and which may be seen or even adopted by others. In these cases the value of "" over "" becomes great -- at the very least providing a warning to adopters that it's a personal script.

Obviously things vary according to how public a script is, if it's something that only I will ever use then structure & conventions are essentially just for my benefit and names like, even (ugggh!) abound; if "real" people are going to see or use the code then most modules will be standard cpan or corporate ones, those that aren't have sensible names, are structured, commented, and maybe even have some error handling ;)

In the middle lie the potential problems; like I suspect many of you, I have a variety of (for wont of a better term) utility scripts that a few others use or copy, and it's helpful in these cases to have a middle ground -- scripts I've thrown together, and that have grown organically (as in -- like mold) over a few years, and which are used by a variety of random techies, who hopefully understand the nature of the code, and who will in general tweak it to suit themselves better anyway.

Obviously this isn't best practice in any sense, but I see it as a reasonable middle ground between "proper" behaviour and the random-script-thrown-together reality.

Replies are listed 'Best First'.
by exussum0 (Vicar) on Mar 03, 2006 at 16:07 UTC
    I agree, it's a perfectly reasonable middle ground etc etc solution on one condition. Only one. It never gets distributed and if it does, it gets refactored.

    Otherwise, yeah, it's reasonable to have a stack of paper (so to speak) that are just paper to be sorted out. But becareful, you know what happens to a small stack of paper. :)

    Rabbits.. I swear!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://534181]
[Corion]: I hope you had a good weekend!
[marto]: jetlag has really done a number on the kids, it's been a tough week
choroba played with the band on Saturday, so Sunday was very sleepy
[choroba]: managed to release Syntax::Construct with 5.28 support in the night, though
[Corion]: choroba: Whee ;)
[Corion]: marto: Ouch - I would've thought that kids adapt much better, but that's obviously not the case...
[marto]: well, their mother let them sleep till 15:00 & 12:00 last week, which didn't help them adjust :P
[Corion]: I was "productive" over the weekend in the sense that I revived my old "Perlmonks on SQLite" code, which likely means I can get a test instance back up running on my webhost. Small steps :)
[Corion]: marto: Ow, no, that doesn't help at all :)
[choroba]: Related to the new release, anyone could explain this or this tester report?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2018-06-25 08:37 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.