Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

nkuitse (193)

nkuitse
  (email not shown publicly)
http://www.nkuitse.com/

Journal of nkuitse (193)

Thursday February 13, 2003
01:40 PM

Hammers and nails

[ #10569 ]

When all you have is a hammer, everything looks like a nail.

Evidently, this can be generalized:

When you get a nice shiny new hammer, everything looks like a nail. Even the things you pounded on with the last shiny new hammer you got. And the one before that. And the one before that. And so on. Hammers and nails everywhere, and all so shiny and new!

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

My most recently acquired shiny new hammer is YAML . Earlier, it was XML. Now, entries in the lexicon for my invented language are going from something like this:

<e>
<l>sempe</l>
<d>
   <sg cat="noun">
      <s>gold</s>
   </sg>
   <sg cat="adj">
      <sg label="a">
         <xp>similar to gold in appearance</xp>
         <s>gold</s>
      </sg>
      <sg label="b">
         <xp>made of gold</xp>
         <s>golden</s>
      </sg>
   </sg>
</d>
</e>

...to something like this:

---
sempe:
   - noun: gold
   - adj:
      - a:
         - xp: similar to gold in appearance
         - gold
      - b:
         - xp: made of gold
         - golden

That's a mighty nice, shiny new hammer. And look! -- nails!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.