On Thu, Nov 19, 2015 at 2:36 PM, Gene Wirchenko <[email protected]> wrote: > At 04:22 2015-11-18, Ted Roche <[email protected]> wrote: >> >> I also think the "do the simplest" rule would say: when you first run >> into the situation, write and IF statement. When there are three >> cases, update to a CASE. When there are too many to handle easily, >> promote it to a Strategy Pattern. Solve the problem in front of you. >> YAGNI: You Ain't Gonna Need It. > > > Not quite. Let me coin "YMWNNI" (You Might Well Not Need It). >
This is the classical test of a journeyman programmer, balancing their understanding of the situation (the math problem, the way the world works, what their class of customers has done in the past) to balance "doing the simplest thing" with "building an extensible framework for the next change." We also support a large order processing system. There's an "industry standard" commission calculation. One customer has their own proprietary, double-super-secret incentive program that required some custom work. Of course, everyone else in the business knew what they did; the sales guys share a beer after work and sometimes after lunch The next customer who wanted to pay for a commission system used different inputs, so there's a balance between a generic framework everyone can use and custom work. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cacw6n4vcdzkxf9ryadclenvfjs8qcv+q-gdpyw1hbonf1op...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

