On Thu, Jul 15, 2010 at 16:09, Nick <[email protected]> wrote:
> OO
> does mimic the way we view the world in its focus on objects or
> nouns.  Think about how you would describe a scene to someone, you
> would focus on the objects and then describe attributes or things they
> are doing.  "There is a road, its full of cars", "There is a
> pedestrian, he is walking on the sidewalk",
> [...]
> To put it
> in a programming form, I'm not thinking gasPedal.pushDown(), I'm
> thinking pushDown(gasPedal).

On Fri, Jul 16, 2010 at 01:18, Oscar Hsieh <[email protected]> wrote:
> No, in real world, you dont say Push Down Gas Pedal, Who push down the gas
> pedal?
> If I say Call me, I am talking to someone, or I would be crazy.  So in your
> example,
> really it should be Nick.pushDown(Pedal), then you see that is very
> objective.
> Now in function language, you have to say something like pushDown(Nick,
> Pedal) ...

I agree with Oscar - you would put the nick in front and here we are at OO.


On Fri, Jul 16, 2010 at 00:15, SchemaCzar <[email protected]> wrote:
> Nick, are you sure you're not thinking
> getFoot(RIGHT).pushDown(car.getGasPedal())

ROTFL! - Yes, and this is not very readable.


On Fri, Jul 16, 2010 at 03:04, Oscar Hsieh <[email protected]> wrote:
> There is nothing wrong to say (+, a, b) or
> plus(a, b), but inreal world we say a plus b.

Yes, maybe if we would have ever learned it the functional way in
school, maybe we would prefer the functional way just because we are
more familiar with it.


> YOU calling ME - the subject, not the action, is the key.  FP is good for
> many things but it is just more nature for people to think
> and learn in OO.   Just look around, and the fact is that people know OO is
> way out number FP and I dont need to write a thesis to prove that.


> Again, I like Scala.  OO + FP rocks.

I am not sure if I like the idea of really mixing both worlds. I think
it could be
more obfuscating of the code. But on the other hand, where it fits,
why not introduce a little FP in my program. But as I meantioned
earlier (or maybe in another thread) - there are really more important
issues in software development than introducing a little FP in code.
Anyway, the customer gives a sh... on OO or functional, the customer
wants results - and at this point I notice that I lost far enough time
re-thinking and re-thinking if I should finally introduce a little FP
style in my code. - I decided right now not to bother any more.

-- 
Martin Wildam

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to