hi there,

I'm working as sysadmin at the moment (not as programmer :"( ) .. and what I see I'm doing from a long time is that instead of making a OO oriented tools for doing my work I mostly do a small and quick scripts to do this and that (which is not bad of course)...
I look now and see many small ones... at the start of my work i started common framework but after a while i got in situation that I can't cope with supporting this effort, 'cause more thinking is needed before u start changing OO stuff, rather than just write some lines of code...
Now I know for most of the handy sysadmin tasks small simple tools are better..
But !! I was thinking may be if there is some way to do both things simultaneously it would be much much better ...
So I'm asking here for your ideas !
How to combine writing small simple scripts and in the same way be able to call these tools with smallest possible overhead as object/methods of some bigger OO framework that can have a decent API and so on... u know code reuse..:")
The main problems as I see them are :

1. Scripts can be on different machines
2. Syncronizing the framework between machines i.e. /lib /scripts /etc ..directories consistent is harder
3. Isolation of the classes/methods of each other can be a tricky thing. Changing of a script, module must preserve the whole system working, but just this small portion u are working in flux
4. Keep call/fork overhead small

Preserve easy adhoc programming with the GRAND DESIGN(tm) :")
How u DO this ?

In reply to OO + command line tools by bugsbunny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.