Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34495

Re: Object oriented programming

Path csiph.com!news.fcku.it!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: Object oriented programming
Date Sun, 7 Jan 2018 12:40:28 +0100
Organization solani.org
Lines 37
Message-ID <p2t0v8$ceh$1@solani.org> (permalink)
References <3c2333ff-00fe-4087-ab49-f52d0546b29b@googlegroups.com> <f535eff4-a2cd-40f9-aa54-5cf02864e2fa@googlegroups.com> <f2ed9b14-66d5-46be-ac65-a7f8cea1a46d@googlegroups.com> <41aa51ac-693c-44ab-9bae-db0b661ba9df@googlegroups.com> <ee45a970-0349-404d-a6e4-45fdbd16bf53@googlegroups.com> <431c000b-abb7-4dc1-a692-35d29b6f9456@googlegroups.com> <e5acf83e-7a90-428c-9867-8815a2cf657d@googlegroups.com> <409a0b82-3074-4c3e-96a3-5c03c25037f9@googlegroups.com> <87a7xq6g01.fsf@bsb.me.uk> <e230aa18-34df-46ab-8266-4db1f81667b5@googlegroups.com> <p2re1g$d0l$1@solani.org> <15e4e78b-a7fa-42b9-bee4-f8a869c11b24@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1515325224 12753 eJwFwQkBACAIBLBKCPLFETj6R3BTsWPt19Surm4rzIjzLZwYMTgWdplzT9SLbB6YLJR0S1Nmbh9/MjVBvKiuQiRf1naB9BTUk2eE4tEHrzsfIA== (7 Jan 2018 11:40:24 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 7 Jan 2018 11:40:24 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
In-Reply-To <15e4e78b-a7fa-42b9-bee4-f8a869c11b24@googlegroups.com>
Content-Language de-DE
X-User-ID eJwFwQkBACAIBLBKIHBKHN7+EdxMwKirMKitLS83Rpqwhpc+ceaAunSf02aEouVO+0nh0g8oVBGR
X-NNTP-Posting-Host eJwNykkBwDAIBEBLkMAS5HD6l9DOe/SCUSZQiK7umyetKA7BIeX12qGk1OggeCV8rQszvhcno2xOqKfs1TvENO7FFfw3WL+9tvTynaPT+wHCZR9V
Cancel-Lock sha1:kAr/hoROqix5XkR1kcSa0d+Nm1g=
Xref csiph.com comp.lang.javascript:34495

Show key headers only | View raw


On 06.01.2018 at 22:28, Julio Di Egidio wrote:

> On Saturday, January 6, 2018 at 10:11:22 PM UTC+1, Christoph M. Becker wrote:
>
>> | Note: As of ES2015, JavaScript arguably got methods
> 
> Was that the point?  Should I find another "third-party" blog entry about
> how the new standard is even worse than what we had?  Indeed, instead of
> fixing it, they have been making it worse, and just in order to please "the
> community" and the very bias towards object orientation.  Marketers.  JS the
> most abused and misunderstood language ever.  And it's a shame, as, besides
> the ubiquity, it's fundamentally a wonderful language...

I agree that functional programming in ECMAScript implementations is
still underrated, and I understand why some prefer and advocate
functional programming over object oriented programming.  However, that
does not mean that these languages are not object-oriented, even though
it is possible to program non-trivial and even complex algorithms
without applying the object-oriented paradigm (most notably, mutation of
object state).  One may even argue that ECMAScript has no first-class
functions, since functions are nothing more than callable objects.

With regard to function vs. method: as I see it, this distinction is
useful in these languages, but not so much as specified by Ecma ("A
function that is associated with an object via a property is called a
method."), but rather when referring to the possibility that the
function/method uses the implicit `this` reference.  Along these lines,
`Array.prototype.map` would be a method, but `R.map`[1] would be a function.

BTW: I would suggest to avoid explicit language, at least in public
discussions. :)

[1] <http://ramdajs.com/docs/#map>

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-05 10:25 -0800
  Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-05 11:51 -0800
    Re: Object oriented programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-05 23:47 +0100
      Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-05 15:15 -0800
        Re: Object oriented programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-08 03:08 +0100
    Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-05 15:09 -0800
      Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-05 15:21 -0800
        Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-05 15:27 -0800
  Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-05 12:09 -0800
    Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-05 13:01 -0800
      Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-05 14:38 -0800
        Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-05 15:29 -0800
          Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-05 15:49 -0800
            Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 02:23 -0800
              Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-06 03:25 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 03:39 -0800
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-06 04:24 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 05:26 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 05:28 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 05:34 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 06:08 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 06:27 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 06:36 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 07:34 -0800
                Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-06 09:56 -0800
                Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-06 14:21 +0000
                Re: Object oriented programming Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-01-06 17:42 +0000
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-06 11:47 -0800
                Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-06 22:11 +0100
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-06 13:28 -0800
                Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-07 12:40 +0100
                Re: Object oriented programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-07 13:01 +0100
                Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-07 19:43 +0100
                Re: Object oriented programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-07 20:33 +0100
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-07 08:30 -0800
                Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-07 14:05 +0000
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-07 08:33 -0800
                Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-08 09:46 +0000
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-08 03:45 -0800
              Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-06 03:39 -0800
                Re: Object oriented programming Julio Di Egidio <julio@diegidio.name> - 2018-01-06 04:24 -0800
              Re: Object oriented programming bit-naughty@hotmail.com - 2018-01-12 22:57 -0800
                Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-13 13:27 +0000
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-13 08:24 -0800
      Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-06 14:10 +0000
        Re: Object oriented programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-06 23:54 -0800
          Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-07 14:13 +0000
            Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-07 15:26 +0100
              Re: Object oriented programming John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-08 09:39 +0000
                Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-09 00:12 +0100
                Re: Object oriented programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 02:45 +0100
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-08 21:34 -0800
                Re: Object oriented programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 12:52 +0100
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-09 04:41 -0800
                Re: Object oriented programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 15:50 +0100
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-09 07:31 -0800
                Re: Object oriented programming "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2018-01-10 15:03 -0800
                Re: Object oriented programming "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2018-01-10 15:04 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-11 02:06 -0800
                Re: Object oriented programming Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-09 09:50 -0800
                Re: Object oriented programming "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-09 13:19 +0100

csiph-web