Or: put($data) versus $data->put();
________________________________ From: [EMAIL PROTECTED] on behalf of Duane Bronson Sent: Mon 4/3/2006 11:16 PM To: Tolkin, Steve Cc: [email protected] Subject: 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=st&q=%22differences+in+data%22+%22in+code% > 22&rnum=3&hl=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 [email protected] http://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

