Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: comp.programming Subject: Re: Two object oriented methods, which is better? Date: Thu, 18 Sep 2014 19:26:38 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 20 Message-ID: <20140918122609.553@kylheku.com> References: <20140918204616.7a953d26@maxa-pc> <20140918115849.501@kylheku.com> <20140918210821.2442a52a@maxa-pc> NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming:4798 On 2014-09-18, Melzzzzz wrote: > On Thu, 18 Sep 2014 18:59:34 +0000 (UTC) > Kaz Kylheku wrote: > >> On 2014-09-18, Melzzzzz wrote: >> > On Thu, 18 Sep 2014 21:40:19 +0300 >> > Victor Porton wrote: >> >> What is more object oriented? Which is better? >> > >> > First can do whatever with array, while second shows clear >> > intent. >> > I'll go with second since it is clearer what function does. >> >> It's probably also clear what modify_array does, if you have its >> definition. > > Problem is that modify_array is "dynamic method", what I guess means > that one probably don;t know what it does ;) Yes; --- but "I don't know WTF this does" is the essence of object-oriented! :)