From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,78609accbfa860fe X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail From: Nicholas Collin Paul Gloucester Newsgroups: comp.lang.ada Subject: Re: usefulness of "data hiding" Date: Fri, 16 Jan 2009 17:21:36 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <72f07ba4-f06d-44bf-9759-0e6f0d0426d0@h20g2000yqn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX18bQLkBdWL4kjfCxIM04g5SzkzRfGnU+TavWhp+MAHwTBa46m8OYyRubUOAcx41VGDzU+eun0Pq1z6W1py5GKfiu7DnrvvoKz6zjjliAWGAv1xq9oQKKEJZm2PzcgFWRWwMGFCZmKlaKg== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Fri, 16 Jan 2009 17:21:36 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/Gs89HjVibxG9HhMC2/4Qis4SgT9lI7QRzKrlBg5stY3y8qp42p01s7rCESU+9gEY= Cancel-Lock: sha1:G6DowP0p+4IqwZ5EdJuJd8IzBr4= User-Agent: slrn/0.9.9p1 (Linux) Xref: g2news2.google.com comp.lang.ada:4361 Date: 2009-01-16T17:21:36+00:00 List-Id: On 2009-01-16, Russ P. wrote: |----------------------------------------------------------------------| |"Hello," | |----------------------------------------------------------------------| Hi, It has been a long time since I seemed to notice a post from you here. |----------------------------------------------------------------------| |"[..] | | | |I've tried to explain to them why data hiding can be useful, but I | |just get back a lot of flak. If any of you are interested and have the| |time to educate them, I'd be interested in your replies to the | |following post, which was a reply to a post of mine. The link is | | | |http://groups.google.com/[..] | | | |Here is an excerpt: | | | |[..] | | | |[..] | |*nothing* is idiot-proof." | |----------------------------------------------------------------------| He has got you there. |----------------------------------------------------------------------| |" Heck, how many Java "OO" programs with dumb | |getter/setter pairs for _each and any_ attribute ?" | |----------------------------------------------------------------------| Ditto. |----------------------------------------------------------------------| |"> As I said before, enforced encapsulation may not be appropriate for| |> every application, but it is definitely appropriate for some. | | | |No. It is appropriate for dummy managers hiring dummy programmers. The| |project's size and domain have nothing to do with it. | | | |> Not | |> every door needs a lock, but certainly some do. | | | |You only need locks when you don't trust your neighbours." | |----------------------------------------------------------------------| Russ, it may be too hard to get through that machoist Python programmer's skull. Good luck trying anyway, Colin Paul Gloster