Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: brian's Guide to Answering Questions

by shmem (Chancellor)
on Mar 01, 2007 at 09:26 UTC ( #602662=note: print w/replies, xml ) Need Help??

in reply to brian's Guide to Answering Questions

Great post, brian_d_foy++

Some points on What do you get out of it?

As a Perl trainer, I have to answer the questions from students. It's my job.
If you're like me when I was very active in usenet, you use the questions as challenges to learn more about Perl.

Perhaps you are using the questions not only to work out almost forgotten corners of your skill, but also improve in the art of expressing yourself. I guess some of us may be labelled as "consultant", which is as unspecific as "system engineer", but involves more guessing at needs, expressing yourself, discovering XY problems, keep an eye on appearently unrelated things an so forth.

If you are like me, you don't think about "what do I get out of it", you simply have the urge, being long time overpaid and helped by others - specially by all those that made perl into what it is today -, to give back. There's little you could give to them, so you give to others. You let the universe draw the sums; it's not your job to keep track.

Then there are those with a socialist inclination, and they would ask your question as what do WE get out of it? since they rather live up to "first we, then I". I would like to count myself among them more often than not.


_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: brian's Guide to Answering Questions

Replies are listed 'Best First'.
Re^2: brian's Guide to Answering Questions
by Anonymous Monk on Mar 01, 2007 at 17:09 UTC
    You have some urge to answer, so you're satisfying some personal motivation. That might be to advance a political agenda or a desire to shape the world in the way that you want it to be. Those with a socialist inclination usually have it because alone they have nothing but with the group they get something. That's the root of why socialism doesn't work. No matter how much you think it makes sense, human nature involves self-interest, even if you deny that you have it.
      That might be to advance a political agenda or a desire to shape the world in the way that you want it to be.
      Might, but isn't. Trying to advance a political agenda at perlmonks? heh..!

      The only world I can shape to my liking is my own; shaping our world is something that we do, no matter whether humanity is perceived as a integrated we or a disasociated I and them.

      I would be a fool if I denied self-interest; but putting self-interest over social concerns wouldn't be less foolish.


      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602662]
[Corion]: And performance linear to the number of registered one-shots doesn't feel that bad. Maybe I should collect statistics on how many callbacks are outstanding ;)
[Corion]: choroba: Yes, but the longer I thought about efficient hashes mapping the event type back to their callbacks, and how to keep them in sync, the more I thought that all that optimization might just not be worth it, even if it's horribly inelegant
[Lady_Aleena]: My biggest problem with hashes at the moment is one with 2,501 keys.
[choroba]: how many event types are there?
[Corion]: Also I found that I can't conveniently weaken an array slot, which also is inconvenient, as I want my one-shots to disappear if the caller discards them
[Corion]: choroba: Currently two or three that my program handles (WWW::Mechanize:: Chrome), but there might be more that become interesting
[Corion]: But I don't expect more than 100 to be active at the same time, so I'm not really sure if there is a not-too-fancy data structure that is maintained with few lines of code where the performance is better than the linear scan ;)
[Corion]: But I should do a mock-up program so that others can see what I'm talking about ;)
[robby_dobby]: Corion: I hope you know all too well that passing around "fancy" datastructures is a recipe for disaster :-)
[robby_dobby]: As in, it's-too-fancy- that-it-will-be- messy-to-handle

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-05-29 07:58 GMT
Find Nodes?
    Voting Booth?