<br><font size=2 face="sans-serif">[Sorry if this is a dupe....our IT organization
cannot keep our domain name straight so some posts have been bouncing]</font>
<br>
<br><font size=2 face="sans-serif">To me, this is a &quot;normalization&quot;
question, akin to relational database normalization. &nbsp;The ultimate
goal of any database design is to be as normalized as possible, reducing
duplication and segmenting data into tightly focused groupings.</font>
<br>
<br><font size=2 face="sans-serif">However, there are certainly patterns
in relational design where over-normalization leads to poor performance
or unwieldly complex code (queries). &nbsp;To that end, there are definitely
times where denormalization makes complete sense (reality vs. purism).</font>
<br>
<br><font size=2 face="sans-serif">greg.fenton<br>
----<br>
Greg Fenton<br>
Consultant, Solution Services<br>
iAnywhere Solutions</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Robert P. J. Day&quot;
&lt;rpjday@mindspring.com&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: kw-pm-bounces@pm.org</font>
<p><font size=1 face="sans-serif">06/15/2005 07:30 PM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">Christopher Calzonetti &lt;elbie@trig.net&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">KW Perl list &lt;kw-pm@mail.pm.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [kw-pm] a philosophical
question about hashes</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Wed, 15 Jun 2005, Christopher Calzonetti wrote:<br>
<br>
&gt; On Wed, Jun 15, 2005 at 04:33:39PM -0400, Robert P. J. Day wrote:<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; not so much a perl question as a software design question
that just<br>
&gt; &gt; happens to be associated with perl -- is it considered bad form
to<br>
&gt; &gt; create a hash in which each element's key is also one of its
fields in<br>
&gt; &gt; the corresponding value?<br>
&gt;<br>
&gt; I can see at least one reason for doing this:<br>
&gt;<br>
&gt; Say there are a bunch of different unique identifiers for a record,<br>
&gt; and you point to a reference that contains the full record.<br>
&gt;<br>
&gt; In your example, you might also have a hash based on driver's<br>
&gt; license number, and you want to use the same records. &nbsp;Well then,<br>
&gt; the record would need the SSN/SIN, as it wouldn't be the index.<br>
<br>
i'd thought of that as well. &nbsp;i *can* see the value in the<br>
duplication, i was just wondering if anyone had strong opinions on<br>
this either way.<br>
<br>
rday<br>
_______________________________________________<br>
kw-pm mailing list<br>
kw-pm@pm.org<br>
http://mail.pm.org/mailman/listinfo/kw-pm<br>
<br>
</tt></font>
<br>