There is a famous proverb in programming : KISS = > Keep IT Simple Stupid !
Object Oriented has many benefit at some point, but in pratical programming
getting too deep using OOP also bringging much issue than benefit. I
used to keep
my object only 3 level deep. The deeper make, the harder to maintain especially
when the boss changing their mind or come with new mind set that almost totally
different in term of logic and then ask you to do that changes in very
limited time.
It would screw all you have done.

On 6/21/09, Cerebrus <[email protected]> wrote:
>
> I think this should be pretty straightforward... Show us your efforts
> in this direction... what code have you written so far ?
>
> On Jun 21, 12:01 am, thread <[email protected]> wrote:
>> hi,
>> I'm trying to implement some exercise but its not going that easy:
>> I need to define interface called IF00 that includes a method called
>> foo that gets 2 ints and returning their function.
>> I need to implement 4 implementation of the
>> interface:multiplier,divider,plus and minus.
>> I need to create a class called Factory that returning randomly Ifoo
>> type.
>> the Main method should be using only the Factory class and the Ifoo
>> interface for randomizing the function 10 times and activate it on the
>> couple 1,1,2,2,3,3...10,10
>>
>> any idea?

Reply via email to