Matthew Phillips
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Originally posted by Junilu Lacar:
Are we using an appropriate type for OOCalc.result and getResult()?
Originally posted by jason adam:
Well, I don't know if it is a doubt, but the getResult() method bothers me, but that's because I don't see the OOCalc actually doing the operation. getResult() seems like it should be coming from somewhere else, and OOCalc will call it to output the result.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Junilu Lacar:
[...]Stub out getResult() by making it return Double.NaN. Listing Compile OOCalc and OOCalcTest. Run JUnit. Test fails (Red light!)
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Michael Matola:
I'm still waiting to see why we're even storing result [...].
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Junilu just skipped this steps, I guess...![]()
Originally posted by jason adam:
I too share your sentiment on if this is really as productive as it sometimes is made out to be...
I only see this approach functional if you're working on a small system, or are organized enough to break things into logical subsystems and work those out, and then bring it all together into the larger app.
Originally posted by jason adam:
but if we are to write tests for every single behavior that we expect our design to exhibit, that would just get insane for a really large application.
Don't get me started about those stupid light bulbs. |