Indeed, I've never done anything right either :)  What I don't understand is 
why 
functional and OO are seen as mutually exclusive.  One of the main things being 
touted about Scala was that it would make it easy for a traditional OO Java 
person to dip their toe in Scala's pool and proceed into more functional 
aspects 
of it in a gradual, organic way.  Similarly, we're adding functional libraries 
and features into Java's own ecosystem and the sky isn't falling.  I see them 
as 
orthogonal techniques -- both good to know and can play well with one another 
under the right circumstances.

 Alexey





________________________________
From: Carl Jokl <carl.j...@gmail.com>
To: The Java Posse <javaposse@googlegroups.com>
Sent: Mon, March 21, 2011 1:48:03 PM
Subject: [The Java Posse] Re: Object Oriented Programming is out of the CMU 
Computer Science Introductory Curriculum

It does look like a high degree of pet subject enthusiasm on the part
of the person running the course. As much as Java is mentioned in the
article, Java did not invent object orientation and there are many
other Object Oriented languages or languages which have embraced
object orientation after their initial invention. I don't see
functional programming being the silver bullet which makes all Object
Oriented systems redundant.

Is what is being suggested here that data and functionality should be
kept separate for the greater good? I can see some of what is being
suggested but I don't believe that having data in special data
structures and functions to work on the data automatically makes a
system more modular and reusable. The code in the function may expect
data in a very problem specific way or the function may perform
functionality which is so specific to a given problem that it may not
be any more reusable than code on an object where the data and code
are combined together.

Having data and functionality separate is somewhat the case with C
isn't it. C however does have some state by virtue of static variables
which can point to some other kinds of state holding structures.

I don't know. Some of these food fights and almost dogmatic talk of
the one enlightened way of doing things can make me feel fed up with
the whole programming community. I always end up doing the wrong thing
according to someone.

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


      

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

Reply via email to