|
Charles said: > I'd be interested in hear what your "few lines of RPG" and "appropriate > place" are. > > This seems to imply to me that you're adding an "if custnbr = 'XYZ' then > <...>" in your pricing program. > > SAY IT AIN'T SO JOE! IT IS SO, CHARLES! REALLY! I WRITE CODE WITH IF STATEMENTS! > Perhaps the world doesn't have time for OO. But surely it doesn't have > time to maintain such code either. How elitist! Sorry, but that line of perfectly acceptable procedural code is just as maintainable as anything else. If it turns out it's a permanent issue or requires generalization, I'll persist it in my database, but if it's a one-off temporary change this is EXACTLY how I'd address the issue. It's certainly more maintainable than adding another class that overrides the pricing method, and then changing the factory class to create an instance of the new class based on the customer number. In any event, if you don't like the IF statement, Charles, then we have completely different ideas of what programming is all about. Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.