Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Reinventing the wheel: Dumper Difficulties

by clintp (Curate)
on Apr 11, 2002 at 02:56 UTC ( #158201=note: print w/replies, xml ) Need Help??

in reply to Reinventing the wheel: Dumper Difficulties

7 years in the auto industry has taught me that to re-invent a wheel is not enough. To be widely adopted that wheel has to fit existing axles, fenders, and suspensions as well as be familiar enough to mechanics -- with their tools -- who are ultimately the best salespeople of aftermarket equipment.

Do you have switch and output compatability modes to plug into code that already uses DD or DD? *hint* *hint*


Oh and if anyone is wondering what the RT means in the variable names, it stands for root.
Then waste the two bytes and call it root. :)
  • Comment on Re: Reinventing the wheel: Dumper Difficulties

Replies are listed 'Best First'.
Re: Re: Reinventing the wheel: Dumper Difficulties
by demerphq (Chancellor) on Apr 11, 2002 at 08:54 UTC
    Do you have switch and output compatability modes to plug into code that already uses DD or DD? *hint* *hint*

    Well, as you can see from my current example I support the Data::Dump style interface and not the Data::Dumper interface. However Im sure I can include a wrapper that emulates Data::Dumper functionality.

    Although I have to say that my intention is not so much to create a drop in replacement for either (although it should be up to job) but rather a development tool for trying to visualize and analyze data structures. Part of the reason that I take this perspective is that many trade-off decisions have been made in favor of analytical and presentational flexibility and utility and not to speed or memory overhead type concerns.

    So if you have to serialize a few million data structures then Data::BFDump is probably not the place to go (unless of course you are dumping structures that would be affected by the bugs I mentioned earlier.) OTOH if you are trying to figure out what data structure is being used by a new module, or why you keep getting weird results with that funky data structure you are developing then my tool will probably be exactly what you want to use.

    Then waste the two bytes and call it root. :)

    Honest I tried it. Trouble is that there are two prefixes used "BF" and "RT", and then the vars can be numbered as well so if I use ROOT explicitly in some situations the variable names get quite long indeed...

    Maybe Ill make it an option though. Compromise eh? :-)

    Yves / DeMerphq
    Writing a good benchmark isnt as easy as it might look.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://158201]
[karlgoethebier]: They took Unix from some aliens
[marioroy]: Perl is so powerful that it can poll 40 metrics from 20 million devices in 40 minutes using 4 nodes only.
[karlgoethebier]: http://www. aliens.htm
[Lady_Aleena]: marioroy, I can't decide whether or not to move my RolePlaying:: Random:: modules to just Random::. I'm not as sophisticated as most here.
[marioroy]: Naming things can be difficult, sometimes more so that the actual code :)
[karlgoethebier]: Lady_Aleena: You need to jump to some conclusion
[Lady_Aleena]: And what would I rename RolePlaying/Random .pm to if I move all the RolePlaying/Random modules to just Random? Random/ Random/, maybe lowercase the file name to indicate it is a bit different? I don't know yet.
[marioroy]: What does Random do?
[karlgoethebier]: https://www. v=42WNHGr1jGI
[Lady_Aleena]: karlgoethebeir, I finished another project tonight, making a module which printed stop printing. It was a headache and a half.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-05-29 08:56 GMT
Find Nodes?
    Voting Booth?