Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

TrAdEz meets with God

by tradez (Pilgrim)
on Oct 21, 2004 at 23:00 UTC ( [id://401327]=perlquestion: print w/replies, xml ) Need Help??

tradez has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks, I have been graced by the evil empire, my employer, with a chance at some training that I am actually enjoying. As I type this, Tom Christiansen (GOD) is typing code to explain and example in his training course for 5 of us at TCPC. Very amazing stuff. My question for you all, is that he claims to be able to answer ANY question, and I would like to see what the worst you can come up with is. He covers all the way up through 5.8 and works with Wall on all future revisions as well as back to the 0th day of Perl 1. So how's that for a scope. Hit me up and tomorrow ill unleash what PerlMonk fury we have.

UPDATE, check out my info page, new pic of me and god, and I am goofy



Tradez
"Every official that come in
Cripples us leaves us maimed
Silent and tamed
And with our flesh and bones
He builds his homes"

- Zach de la Rocha

Replies are listed 'Best First'.
Re: TrAdEz meets with God
by demerphq (Chancellor) on Oct 22, 2004 at 11:55 UTC

    Q: What is your current position on my $class=ref($self) || $self;

    Q: What is your current position on type checking in subroutines? Ie, is ref($obj) eq 'TYPE' correct or not? What about Scalar::Util::reftype() and or UNIVERSAL::isa() or UNIVERSAL::can()?

    Q: Is Inheritance really useful in perl or is containment an easier strategy?

    Q: Do you think AUTOLOAD is a viable strategy for dynamic accessor generation in production enviornments?


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi

      Flux8


      Well real quick, AUTOLOAD is a brief section in his live presentation that you can view from typing perldoc perltoot and perltooc. The way he uses it, it definately enhances efficiency.


      Tradez
      "Every official that come in
      Cripples us leaves us maimed
      Silent and tamed
      And with our flesh and bones
      He builds his homes"

      - Zach de la Rocha
        If you're eventually going to install all of the autoloaded methods anyways, it is better to install all of them up front when you load your module (by assigning to the typeglob if need be) rather than lazily installing them later (throwing away the method cache every time you do it).

        Furthermore using AUTOLOAD does not play well with UNIVERSAL::can or multiple inheritance.

Re: TrAdEz meets with God
by diotalevi (Canon) on Oct 21, 2004 at 23:04 UTC
    You should be asking questions useful to your employer, not the hardest trivia perlmonks can produce. This is your employer's dime. Don't waste it.

      You have obviously never heard of Mitd's famous formula for Employer paid training, conferences, retreats, parties and beer drinking contests. Well here it is proven inside and outside the lab.

      1. Employer sends Employee to training.
      2. Employee gets answers to questions with no regard to Employers wants or needs.
      3. Employee returns to work full of new knowledge.
      4. Employee finds ways to sneak new knowledge into his daily work creating huge jumps in productivity.
      5. Employer reaps the benifits of his hugly profitable business and hires big name Management Consulting Firm who suggest outsorcing all work to Bangalore.
      BTW, Tradez. Ask Tom if it is true that it is Randal that leaves in a pineapple under the sea?

      mitd-Made in the Dark
      I've always been astonished by the absurd turns
      rivers have to make to flow under every bridge.
Re: TrAdEz meets with God
by tye (Sage) on Oct 22, 2004 at 06:30 UTC

    Q: If you want to find the directory that this script ($0) is in, is there ever any point in searching $ENV{PATH} ?

    A: No.

    Q: So why does FindBin *still* do that?

    A: Because avoiding that would make the module seem almost silly and render the entire "Bugs" section invalid ?

    No, I'm not sure why I offered these questions here. (:

    - tye        

Re: Please please *please* ask him ....
by dimar (Curate) on Oct 22, 2004 at 12:50 UTC

    Please, I beg you, I beseech you, I adjure most earnestly with suppliant provestation, Please ask him why his article on prototypes at o'reilly has been *invisible* for at least a year or more with no one able to explain why.

    If that doesn't stump him, then it must be me, in need of knowing the secret handshake or something. ... but I betcha a dollar he won't know.

      Age. O'Reilly most likely has decided it is too old to matter any more. It used to be available on CPAN also, but if it is even there any more, you'll have to dig really deep. (Unfortunately it's not the time now to check it out, with the current status search.cpan.org is in.)

      Anyway, with a little of Googling around, you can find plenty of mirrors, like here.

      I do share your sentiments, though, IMO it is a classic. I'm actually planning on building a site with a collection of such perl related classic articles, before they drop off the next completely. Like this one virtually has.

        Even better would be to ask him if he minds if PerlMonks would host it as well.... Not to mention any of his other papers that O'Reilly has taken down.


        ---
        demerphq

          First they ignore you, then they laugh at you, then they fight you, then you win.
          -- Gandhi

          Flux8


Re: TrAdEz meets with God
by Limbic~Region (Chancellor) on Oct 21, 2004 at 23:42 UTC
    tradez,
    He will likely know the answer, but ask him what the dog had in its mouth.

    Cheers - L~R

    In case anyone does know where this reference comes from - Larry mentions this in the source code - see stab.c
      Is it a "|"?


      ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
      =~y~b-v~a-z~s; print
Re: TrAdEz meets with God
by Eyck (Priest) on Oct 22, 2004 at 07:30 UTC
    I don't get it, there are tons of unanswerable questions ( well, besides "I don't know" answer..)

    You can even scan through SoPW and you'll find lots of questions without answers

    Things like - how to pack Gtk-based perl script with PAR ( doesn't work, nobody works on it, there are few known bugs left to be fixed )

    or maybe how to connect to TLS-enabled ftp servers with perl ( you've got to roll your own client (or get one from me;), or use c/c++ library like ftplibpp )

    or how to expose your SOAP-based service to C#/Delphi/ other static langs ( requires lot's of knowledge of WSDL and manual tweaking and writing your own WSDL description )

Re: TrAdEz meets with God
by BUU (Prior) on Oct 22, 2004 at 05:44 UTC
    Ask him how the hell do you capture the STDOUT from the ->run() method in Perl.pm. Damn it.
Re: TrAdEz meets with God
by Spidy (Chaplain) on Oct 23, 2004 at 02:41 UTC
      Well he actually says there is a module Perl::Stork that is due out in Perl 6. So now perl will officially be able to do everything on earth, in a one liner ;).


      Tradez
      "Every official that come in
      Cripples us leaves us maimed
      Silent and tamed
      And with our flesh and bones
      He builds his homes"

      - Zach de la Rocha
Re: TrAdEz meets with God
by SpanishInquisition (Pilgrim) on Oct 22, 2004 at 17:15 UTC
    Ask him how Perl6 is going to implement veeblefritzers! :)
Re: TrAdEz meets with God
by sfink (Deacon) on Oct 24, 2004 at 03:52 UTC
    Ask him how to make perldoc output unformatted POD. Or ask him what the best command-line options would be if you wanted to alias man to perldoc.

    More generally, ask him any question about how to use perldoc.

    Just don't tell him who put you up to it, please.

      [perldoc --help] says the -u option will display unformatted POD. A quick spot check (with [perldoc -u fields] and [perldoc -u -f glob]) seems to work.
Re: TrAdEz meets with God
by MTOakey (Initiate) on Oct 24, 2004 at 02:55 UTC
    Lowly peasent here, I've got one for you all -> get nms-Formmail to also append an already existing .csv file allowing for any order of my choosing for the data fields and also the possibility of a 'comma' and/or 'carriage return' or '!',@,#,$,%,&,(,),or newline in the fields erasing any trailing space or 'comma' associated with the LAST field and set the .csv up for a newline or 'row' of data after each 'form' submission, so when opened up in a spreadsheet all is nice rows of useful data nicely seperated in all the nice cells. Nice? I am not worthy, Matthew@i-zoe.com
Re: TrAdEz meets with God
by Ytrew (Pilgrim) on Oct 25, 2004 at 20:32 UTC
    Ask him what it's like to be an A.I. :-)

    --
    Ytrew

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://401327]
Approved by jfroebe
Front-paged by jfroebe
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found