Re: [Boston.pm] Put similarities in code and differences in data
TS == Tolkin, Steve [EMAIL PROTECTED] writes: TS I am looking for the best and/or original wording of this programming TS maxim: Put similarities in code and differences in data and i have also heard it the other way around, put similarities in data and differences in code. you can actually argue from either side as they both make sense in some ways. similarity could be sharing common code or using data structure to hold similar data. and code could be used to handle differences in the data and data could hold differences of each instance. so IMO the saying (in either form) is about recognizing similarities and differences and expressing them in code and/or data. this is a general analysis concept and is a fundamental skill that isn't taught enough. most newbie coders are so lost in basic syntax that they can't see how to even use a hash in ways that will reflect the design needs. this is where experience comes in too. uri -- Uri Guttman -- [EMAIL PROTECTED] http://www.stemsystems.com --Perl Consulting, Stem Development, Systems Architecture, Design and Coding- Search or Offer Perl Jobs http://jobs.perl.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm
Re: [Boston.pm] Put similarities in code and differences in data
On Mon, 2006-04-03 at 14:02 -0400, Tolkin, Steve wrote: I am looking for the best and/or original wording of this programming maxim: Put similarities in code and differences in data data-driven programming ? -- Jeremy ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm
Re: [Boston.pm] Put similarities in code and differences in data
one of my favorite maxims: Always... no, no... never... forget to check your references. From: [EMAIL PROTECTED] on behalf of Jeremy Muhlich Sent: Mon 4/3/2006 5:05 PM To: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Put similarities in code and differences in data On Mon, 2006-04-03 at 14:02 -0400, Tolkin, Steve wrote: I am looking for the best and/or original wording of this programming maxim: Put similarities in code and differences in data data-driven programming ? -- Jeremy ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm
Re: [Boston.pm] Put similarities in code and differences in data
Greg London wrote: one of my favorite maxims: Always... no, no... never... forget to check your references. Or another classic from the same source: You're not supposed to park your car on campus... -- John Abreau / Executive Director, Boston Linux Unix ICQ 28611923 / AIM abreauj / JABBER [EMAIL PROTECTED] / YAHOO abreauj Email [EMAIL PROTECTED] / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9 PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99 ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm
Re: [Boston.pm] Put similarities in code and differences in data
As long as everyone else is being silly #!/usr/bin/perl -w print _DATA; put data in code _DATA -or- #!/usr/bin/perl -w sub put_code { eval $_[0]; } while (my $in_data = ) { put_code($in_data); } Tolkin, Steve wrote: I am looking for the best and/or original wording of this programming maxim: Put similarities in code and differences in data Google found this in a perl discussion capture similarities in code, differences in data http://blog.gmane.org/gmane.comp.lang.perl.fun/month=20031001 So I am posting to this list. Here is a hit on a similar quote putting invariants in code and differences in data. http://groups.google.com/group/comp.object/browse_thread/thread/1dc6f6dd db34dc18/cdfb5eae936861f2?lnk=stq=%22differences+in+data%22+%22in+code% 22rnum=3hl=en#cdfb5eae936861f2 This mentions Mellor is passing -- Is he the original person behind this? Hopefully helpfully yours, Steve -- Sincerely *Duane Bronson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.nerdlogic.com/ 453 Washington St. #4A, Boston, MA 02111 617.515.2909 ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm