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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Usefulness of OOP (was Is this expected behavior or not) Date: Sat, 06 Apr 2013 07:20:39 +0200 Organization: A noiseless patient Spider Message-ID: References: <2qwq2cdeuvhu$.qtnb8zyhuob9$.dlg@40tude.net> <1u72u7h5j4jg3$.wlxmaltyzqik.dlg@40tude.net> <1gnmajx2fdjju.1bo28xwmzt1nr.dlg@40tude.net> <3gv2jwc95otm.pl2aahsh9ox8.dlg@40tude.net> <1gkxiwepaxvtt$.u3ly33rbwthf.dlg@40tude.net> <1fmcdkj58brky.bjedt0pr39cd$.dlg@40tude.net> <1bj564vat3q1j$.1s4d00rlzx4ux$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 6 Apr 2013 05:18:10 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="13241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BV/89zOJcfoug3goxVfKO" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Cancel-Lock: sha1:JhOnOzAX2dpnyE2d8Ku2RodbAf0= X-Enigmail-Version: 1.5.1 X-Original-Bytes: 2756 Xref: number.nntp.dca.giganews.com comp.lang.ada:180949 Date: 2013-04-06T07:20:39+02:00 List-Id: Le 06/04/2013 03:20, Randy Brukardt a écrit : > And that suggests that the entire idea is bad. Indeed, that indicates that > all OOP is bad because it destroys type-checking. Perhaps I should forget > that I ever heard of it?? Can't resist jumping on this one... Yes, OOP increases dynamicity, which is good in some contexts, at the cost of decreasing strong typing and static checkability. Drawbacks and benefits, you have to decide depending on context. Nothing new with that... Just mentionned it to counter those who claim that OOP is the universal cure, and that other methods (like good ol' structured programming) are just remainings of the past. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr