× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> From: Hans Boldt
>
> Regarding Python's method of data hiding, sure you can get around
> it. Just like you can get around the data hiding in C++ by coding
> "#define private public". Any good programmer can get around the
> data hiding features of any language, and so honoring the data
> hiding wishes of the class programmer is always a matter of
> programming protocol, and not a matter of OO programming language
> design. That is, enforcing data hiding is a project management
> problem, not a programming language design problem.

Finally, a concrete statement.  And patently false.  In Java, you call a
method from a factory that returns an object that implements an interface.
Only the interface is known to you.  You have the source to neither the
factory nor the final class, nor to the interface which it implements.
Please show me (without using the debugger, or some hokey
serialize/unserialize boogums) how to access a private variable in that
object.

In Python, it's simply an assignment.

In any event, this is a collosal waste of time.  But still I feel compelled
to argue these points with you because you are, whether you like it or not,
an authority figure here, and you might want to take the time to distinguish
between agreed technology and your opinion when making statements, because
frankly you're at odds with the rest of the world in many areas.

At least when I spout my scatter-brained opinions, I clearly delineate them
as such.  You declaim your opinions, even when they are diametrically
opposed to conventional wisdom, and state them as if they were fact.  This
is very dangerous for anybody who listens to you and doesn't know better.

One more time: information hiding is an OO concept.  Period.  I didn't say
it.  The guys who invented this stuff did.  Read their works.

Joe




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.