in reply to Re: Module Bloat and the Best Solution
in thread Module Bloat and the Best Solution
Do you know why it was written the way it was instead of the naive sub uniq { my %x;@x{$_} = undef for @_; keys %x }? There are at least two major problems with that code and possibly as many as four or more. And, if you don't know why, you have no business writing your own version cause you're going to screw it up.
Even though I know why it was written the way it was, I still use it because when another problem is found, I get the bugfix for free! I know how to write a hashtable, but I don't choose to because it's boring (to me) and I'll screw it up. Same thing with uniq() or any of the other 2 dozen functions that module provides.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Module Bloat and the Best Solution
by KurtSchwind (Chaplain) on Nov 12, 2007 at 16:34 UTC | |
by dragonchild (Archbishop) on Nov 12, 2007 at 18:11 UTC | |
by KurtSchwind (Chaplain) on Nov 12, 2007 at 18:30 UTC | |
by dragonchild (Archbishop) on Nov 12, 2007 at 18:36 UTC | |
by BrowserUk (Patriarch) on Nov 12, 2007 at 17:15 UTC | |
|
Re^3: Module Bloat and the Best Solution
by lodin (Hermit) on Nov 12, 2007 at 18:01 UTC | |
|
Re^3: Module Bloat and the Best Solution
by BrowserUk (Patriarch) on Nov 12, 2007 at 17:12 UTC | |
by dragonchild (Archbishop) on Nov 12, 2007 at 18:07 UTC | |
by lodin (Hermit) on Nov 12, 2007 at 18:12 UTC | |
by dragonchild (Archbishop) on Nov 12, 2007 at 18:14 UTC | |
by educated_foo (Vicar) on Nov 12, 2007 at 18:29 UTC | |
| |
by lodin (Hermit) on Nov 12, 2007 at 18:26 UTC | |
| |
by codeacrobat (Chaplain) on Nov 13, 2007 at 20:23 UTC | |
| |
by BrowserUk (Patriarch) on Nov 13, 2007 at 01:56 UTC | |
by dragonchild (Archbishop) on Nov 13, 2007 at 14:39 UTC | |
by shmem (Chancellor) on Nov 13, 2007 at 15:43 UTC | |
by BrowserUk (Patriarch) on Nov 13, 2007 at 17:08 UTC | |
| |
by chromatic (Archbishop) on Nov 12, 2007 at 17:32 UTC | |
by BrowserUk (Patriarch) on Nov 13, 2007 at 01:33 UTC |