[Tutor] Volunteer teacher
Alan Gauld
alan.gauld at yahoo.co.uk
Sun Jul 24 09:15:25 EDT 2022
On 24/07/2022 02:23, avi.e.gross at gmail.com wrote:
> Dumb Question.
>
> Every damn language I have done so-called object-oriented programming in
> DOES IT DIFFERENT.
Of course, because OOP is not a language feature. Languages implement
tools to facilitate OOP. And each language designer will have different
ideas about which features of OOP need support and how best to provide
that. In some it will be by classes, in others actors, in others
prototyping. Some will try to make OOP look like existing procedural
code where others will create a special syntax specifically for objects.
> If you had a book on generic object-oriented techniques and then saw Python
> or R or JAVA and others, what would their experience be?
That's what happens every time I meet a new language. I look
to see how that language implements the concepts of OOP.
> And I thing things do not always exist in a vacuum. Even when writing a
> program that uses OO I also use functional methods, recursion and anything
> else I feel like. Just learning OO may leave them stranded in Python!
OOP doesn't preclude these other programming techniques.
OOP is a design idiom that allows for any style of lower
level coding. (What is more difficult is taking a high level
functional design and introducing OOP into that - those
two things don't blend well at all!)
I've also never succeeded in doing OOP in Prolog.
Maybe somebody has done it, but it beats me! I've also
never felt quite comfortable shoe-horning objects into SQL
despite the alleged support for the OOP concepts of some
database systems/vendors...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list