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


Groups > comp.lang.javascript > #34459 > unrolled thread

Object oriented programming

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2018-01-05 10:25 -0800
Last post2018-01-09 13:19 +0100
Articles 20 on this page of 61 — 10 participants

Back to article view | Back to comp.lang.javascript


Contents

  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

Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →


#34475

FromJulio Di Egidio <julio@diegidio.name>
Date2018-01-06 04:24 -0800
Message-ID<19ba8af8-006b-4172-aa32-18e123949ab3@googlegroups.com>
In reply to#34474
On Saturday, January 6, 2018 at 12:40:02 PM UTC+1, Jonas Thörnvall wrote:

> in ***A SAIN WORLD*** would be
> onMIDIMessage(input.valueonmidimessage);

That's just meaningless.  Indeed, in a sane world you'd be learning how
to program, not just spamming the Usenet.

*Plonk*

Julio

[toc] | [prev] | [next] | [standalone]


#34568

Frombit-naughty@hotmail.com
Date2018-01-12 22:57 -0800
Message-ID<e7871385-48ec-48dc-9428-7a1aff2f0efa@googlegroups.com>
In reply to#34471
> I finally find a tutorial that explain somewhat what is going on.
> 
> https://code.tutsplus.com/tutorials/introduction-to-web-midi--cms-25220
> 
> But it is very vague, for example.
> 
> In order to get the input data from our device, we first create a variable and assign it midi.inputs.values() like so.
> 
> 
> var inputs = midi.inputs.values();
> 
> Is midi.input.values(); a function or a method? How do i know the difference?
> midi is an object?
> input an attribute of that object?
> values a property of input?
> 
> I even lost on the terminology here.

OK, TLDR the Whole Thing, but...
Yes, Jonas, I agree with you - I've been grappling with the same thing, and I STILL don't get it - I don't understand what "a.b.c()" is - it kind of makes my head spin!

Btw, this "Julio" person seems to have made a career out of plonking people on this forum (including me) - bro, if you don't wanna listen to what ANYBODY else here has to say..... - not much point *being* here, isn't it??

[toc] | [prev] | [next] | [standalone]


#34569

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2018-01-13 13:27 +0000
Message-ID<n72k5dd4grjkehsel3pc1t607rh7pb8od5@4ax.com>
In reply to#34568

On Fri, 12 Jan 2018 22:57:26 -0800 (PST), bit-naughty@hotmail.com
wrote:

  <snip>
>and I STILL don't get it - I don't understand what "a.b.c()" is - it kind of makes my head spin!
  <snip>

You create a variable and name it a :
  var a;
You can now access that variable by writing :
  a
You assign a value to a, an object in this case :
  a = new Object();
You can now access that object by writing :
  a
You make that object have a property named b, 
whose value is another object in this case :
  a.b = new Object();
You can now access that second object by writing :
  a.b
You make that second object have a property named c,
whose value is a function object in this case :
  a.b.c = function () { alert("Hello World !"); };
You can now access that function by writing :
  a.b.c
And you can call that function by writing :
  a.b.c();
It now displays the world shattering message 
  Hello World !

  John

[toc] | [prev] | [next] | [standalone]


#34570

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-13 08:24 -0800
Message-ID<3f7e4bcd-f5bc-44eb-88c8-47b4cede852d@googlegroups.com>
In reply to#34569
Den lördag 13 januari 2018 kl. 14:27:33 UTC+1 skrev John G Harris:
> On Fri, 12 Jan 2018 22:57:26 -0800 (PST), bit-naughty@hotmail.com
> wrote:
> 
>   <snip>
> >and I STILL don't get it - I don't understand what "a.b.c()" is - it kind of makes my head spin!
>   <snip>
> 
> You create a variable and name it a :
>   var a;
> You can now access that variable by writing :
>   a
> You assign a value to a, an object in this case :
>   a = new Object();
> You can now access that object by writing :
>   a
> You make that object have a property named b, 
> whose value is another object in this case :
>   a.b = new Object();
> You can now access that second object by writing :
>   a.b
> You make that second object have a property named c,
> whose value is a function object in this case :
>   a.b.c = function () { alert("Hello World !"); };
> You can now access that function by writing :
>   a.b.c
> And you can call that function by writing :
>   a.b.c();
> It now displays the world shattering message 
>   Hello World !
> 
>   John

When you know the object and the syntax isn't that strange
below i somewhat get that assign a variable to the button, but assign a function to an event to a event feel strange, even more strange the syntax look for an anonymous function.

<button>Change color</button>
The JavaScript looks like so:

var btn = document.querySelector('button');

function random(number) {
  return Math.floor(Math.random()*(number+1));
}

btn.onclick = function() {
  var rndCol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')';
  document.body.style.backgroundColor = rndCol;
}

But to be honest your explanation do not help me understand something like

 var inputs = midi.inputs.values(); 

Would you please do a similar explanation because i am truly lost, i have come to beleive that inputs in this case is some sort of array holding inports?

Also this next terminology used access the "inport objects?" is new to me, can can you make a brief explanation.

There is many things that make me question what i going on. I do understand navigator requestMidiAccess call function failure and access depending on its resolved state.

But then i go to the success function it is four lines of code but i just do not get it. I can losely tell what i think happens. 

Request midi access have somehow created some "midi" object it has a property inputs holding values/messages "apparently of very different kinds"

"Why there is paragraphs on values seem weird to me but i guess it is a function of sort?

It seem to me inputs is some sort of array that hold inport values like name and index? 

inputs = midi.inputs.values();

Down here i get a little bit more frustrated due to the next calls, i do not quite understand what next() mean but i guess it reads next port from the inputs array into an input object? 

 for (input = inputs.next(); input && !input.done; input = inputs.next()) {
         var deviceIn = input.value.name;
        // each time there is a midi message call the onMIDIMessage function
        input.value.onmidimessage = onMIDIMessage;
    } 

I guess input have a property name, but then i get confused why is it input.value.name? not input.name.value????

What seem really weird in this loop is that not only read it in port objects, to me it seem input only would hold the last inport objects but in the end that is not true.

Because the loop also hold some sort of listener "onmidimessage" that call a function onMIDIMessage? Every time there is an event on the port? I can't see why the read in of the ports is within the message event loop?

Is the success function in itself some sort of listener, as you seem my understanding of these four line of code is very confused.

I would truly be greatful to anyone that try to explain what is going on in this code. But also explain how i can access the midi messages on the ports from outside of success function right now i moved both the assigments of ports into option lists and the  function calls that need to have access to midi messages inside success function, because evidently it is called everytime i generate a midimessage.

I realise it is totally crazy. On the other side i am totally clueless howto do it in another way.

Feel free to joke around about my coding, but even better explain why my code is hilarious ;), then both of us get something out of it.

function success (midi) {
    mid=midi;
    inputs = midi.inputs.values();
    outputs = midi.outputs.values();
    // inputs outputs are Iterators
     for (output = outputs.next(); output && !output.done; output = outputs.next()) {
       var deviceOut = output.value.name;
       console.log(deviceOut);
       var optout = document.createElement("option");
       optout.text = deviceOut;
       document.getElementById("out_portsel").add(optout);
   }

   for (input = inputs.next(); input && !input.done; input = inputs.next()) {
         var deviceIn = input.value.name;
         var optin = document.createElement("option");
         optin.text = deviceIn;
         document.getElementById("in_portsel").add(optin);
        // each time there is a midi message call the onMIDIMessage function
        input.value.onmidimessage = onMIDIMessage;
    } 
    document.getElementById("out_portsel").selectedIndex = outportindex;
    Rstarttime=performance.now();
    makeTrack();
    setTrack();
    listTrackData();
    changeProgram();
    computeform();
    timebars();
}




 

[toc] | [prev] | [next] | [standalone]


#34481

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2018-01-06 14:10 +0000
Message-ID<f6m15dlj11m1v0av240825ofafor4824vp@4ax.com>
In reply to#34462
On Fri, 5 Jan 2018 13:01:57 -0800 (PST), "Michael Haufe (TNO)"
<tno@thenewobjective.com> wrote:

Regarding this :

  <snip>
>I am aware of the arguments of prototypical vs classical OOP though [3] and both sides.
  <snip>

Note that in this paper :
>[3] "Psychological Criticism of the Prototype-Based Object-Oriented Languages" <https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>

a prototypal language is defined as one where a new object can only be
created by cloning another object. This is most definitely not
ECMAScript.

  John

[toc] | [prev] | [next] | [standalone]


#34494

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2018-01-06 23:54 -0800
Message-ID<5d1ca5ad-55c3-43b5-b3d0-617e3150355e@googlegroups.com>
In reply to#34481
John G Harris wrote:
> "Michael Haufe (TNO)" wrote:
> 
> Regarding this :
> 
>   <snip>
> >I am aware of the arguments of prototypical vs classical OOP though [3] and both sides.
>   <snip>
> 
> Note that in this paper :
> >[3] "Psychological Criticism of the Prototype-Based Object-Oriented Languages" <https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>
> 
> a prototypal language is defined as one where a new object can only be
> created by cloning another object. This is most definitely not
> ECMAScript.

A distinction that doesn't make a difference. ECMAScript has a superset of that behavior being multi-paradigm:

let newObject = Object.create(oldObject)

[toc] | [prev] | [next] | [standalone]


#34498

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2018-01-07 14:13 +0000
Message-ID<qma45ddo79n510n3hbnc8p1s74b2m475if@4ax.com>
In reply to#34494
On Sat, 6 Jan 2018 23:54:16 -0800 (PST), "Michael Haufe (TNO)"
<tno@thenewobjective.com> wrote:

>John G Harris wrote:
>> "Michael Haufe (TNO)" wrote:
>> 
>> Regarding this :
>> 
>>   <snip>
>> >I am aware of the arguments of prototypical vs classical OOP though [3] and both sides.
>>   <snip>
>> 
>> Note that in this paper :
>> >[3] "Psychological Criticism of the Prototype-Based Object-Oriented Languages" <https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>
>> 
>> a prototypal language is defined as one where a new object can only be
>> created by cloning another object. This is most definitely not
>> ECMAScript.
>
>A distinction that doesn't make a difference. ECMAScript has a superset of that behavior being multi-paradigm:
>
>let newObject = Object.create(oldObject)

Eh? oldObject is the prototype object of newObject. 

newObject and oldObject have different prototype objects; newObject
can't be a clone of oldObject.

  John

[toc] | [prev] | [next] | [standalone]


#34499

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2018-01-07 15:26 +0100
Message-ID<p2tam8$jk8$1@solani.org>
In reply to#34498
On 07.01.2018 at 15:13, John G Harris wrote:

> On Sat, 6 Jan 2018 23:54:16 -0800 (PST), "Michael Haufe (TNO)"
> <tno@thenewobjective.com> wrote:
> 
>> John G Harris wrote:
>>> "Michael Haufe (TNO)" wrote:
>>>
>>> Regarding this :
>>>
>>>   <snip>
>>>> I am aware of the arguments of prototypical vs classical OOP though [3] and both sides.
>>>   <snip>
>>>
>>> Note that in this paper :
>>>> [3] "Psychological Criticism of the Prototype-Based Object-Oriented Languages" <https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>
>>>
>>> a prototypal language is defined as one where a new object can only be
>>> created by cloning another object. This is most definitely not
>>> ECMAScript.
>>
>> A distinction that doesn't make a difference. ECMAScript has a superset of that behavior being multi-paradigm:
>>
>> let newObject = Object.create(oldObject)
> 
> Eh? oldObject is the prototype object of newObject. 
> 
> newObject and oldObject have different prototype objects; newObject
> can't be a clone of oldObject.

You may prefer

  let newObject = Object.assign({}, oldObject);

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#34513

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2018-01-08 09:39 +0000
Message-ID<a0f65ddecnp6c9o9d27f5ij9tuhiop51jk@4ax.com>
In reply to#34499
On Sun, 7 Jan 2018 15:26:21 +0100, "Christoph M. Becker"
<cmbecker69@arcor.de> wrote:

>On 07.01.2018 at 15:13, John G Harris wrote:
>
>> On Sat, 6 Jan 2018 23:54:16 -0800 (PST), "Michael Haufe (TNO)"
>> <tno@thenewobjective.com> wrote:
>> 
>>> John G Harris wrote:
>>>> "Michael Haufe (TNO)" wrote:
>>>>
>>>> Regarding this :
>>>>
>>>>   <snip>
>>>>> I am aware of the arguments of prototypical vs classical OOP though [3] and both sides.
>>>>   <snip>
>>>>
>>>> Note that in this paper :
>>>>> [3] "Psychological Criticism of the Prototype-Based Object-Oriented Languages" <https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>
>>>>
>>>> a prototypal language is defined as one where a new object can only be
>>>> created by cloning another object. This is most definitely not
>>>> ECMAScript.
>>>
>>> A distinction that doesn't make a difference. ECMAScript has a superset of that behavior being multi-paradigm:
>>>
>>> let newObject = Object.create(oldObject)
>> 
>> Eh? oldObject is the prototype object of newObject. 
>> 
>> newObject and oldObject have different prototype objects; newObject
>> can't be a clone of oldObject.
>
>You may prefer
>
>  let newObject = Object.assign({}, oldObject);

Um. Object.assign doesn't copy non-enumerable properties, prototype,
or internal slots. It's a restricted clone operation. For instance, it
won't clone an Array object.

If you wanted to do some prototypal-style programming I think you'd be
better off using a constructor :
  newObject = new Prototypal(oldObject);
where the constructor uses Object.assign to copy the enumerable
properties of oldObject.

This would be neat and make it obvious when you are being prototypal,
provided you don't want to play games with property attributes,
ECMAScript-prototype inheritance (obviously you wouldn't), or internal
slots.

  John

[toc] | [prev] | [next] | [standalone]


#34525

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2018-01-09 00:12 +0100
Message-ID<p30tsd$1s1$1@solani.org>
In reply to#34513
On 08.01.2018 at 10:39, John G Harris wrote:

> On Sun, 7 Jan 2018 15:26:21 +0100, "Christoph M. Becker"
> <cmbecker69@arcor.de> wrote:
> 
>> On 07.01.2018 at 15:13, John G Harris wrote:
>>
>>> newObject and oldObject have different prototype objects; newObject
>>> can't be a clone of oldObject.
>>
>> You may prefer
>>
>>  let newObject = Object.assign({}, oldObject);
> 
> Um. Object.assign doesn't copy non-enumerable properties, prototype,
> or internal slots. It's a restricted clone operation. For instance, it
> won't clone an Array object.

ACK.  However, it seems that we both missed the point, namely that the
article's[1] definition ("[…] instead a prototype can be cloned
resulting in another concrete and fully functional object.") might
simply be too strict or is using the word "clone" in a very broad sense.
 Interestingly, Wikipedia defines Prototype-based programming as[2]:

| Prototype-based programming is a style of object-oriented programming
| in which behaviour reuse (known as inheritance) is performed via a
| process of reusing existing objects via delegation that serve as
| prototypes.

That fits well to Object.prototype.create() and also to the spirit of
the article (at least for me).

[1]
<https://web.archive.org/web/20100316225046/http://www.helsinki.fi:80/~jppesone/papers/kandi.html>
[2] <https://en.wikipedia.org/wiki/Prototype-based_programming>

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#34528

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2018-01-09 02:45 +0100
Message-ID<12742935.DMliEloatx@PointedEars.de>
In reply to#34525
Christoph M. Becker wrote:

> That fits well to Object.prototype.create() […]

For reasons that should be obvious, “create” is _not_ a property of the 
object referred to by “Object.prototype”.  So it is “Object.create()” 
instead.

The more recent introduction of a lot of helper methods that are properties 
of built-in functions that can be called as functions or constructors (which 
can replace several custom workarounds devised earlier), which would be 
called “static methods” in other OOP languages (and may also be in 
ECMAScript implementations at some point, now that there can be proper 
classes) is one reason why it becomes increasingly important to not speak 
of, for example, “Object.prototype.toString()” as “Object.toString()”, which 
(probably for technical reasons) even MDN has not fully managed to fix yet 
(but I have said and done for years now).

,-<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString>
| 
| Object.prototype.toString()
| 
| […]

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#34532

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-08 21:34 -0800
Message-ID<c7db8cde-3a4c-4c43-8c8b-6f8ade4bc051@googlegroups.com>
In reply to#34528
Den tisdag 9 januari 2018 kl. 02:45:51 UTC+1 skrev Thomas 'PointedEars' Lahn:
> Christoph M. Becker wrote:
> 
> > That fits well to Object.prototype.create() […]
> 
> For reasons that should be obvious, “create” is _not_ a property of the 
> object referred to by “Object.prototype”.  So it is “Object.create()” 
> instead.
> 
> The more recent introduction of a lot of helper methods that are properties 
> of built-in functions that can be called as functions or constructors (which 
> can replace several custom workarounds devised earlier), which would be 
> called “static methods” in other OOP languages (and may also be in 
> ECMAScript implementations at some point, now that there can be proper 
> classes) is one reason why it becomes increasingly important to not speak 
> of, for example, “Object.prototype.toString()” as “Object.toString()”, which 
> (probably for technical reasons) even MDN has not fully managed to fix yet 
> (but I have said and done for years now).
> 
> ,-<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString>
> | 
> | Object.prototype.toString()
> | 
> | […]
> 
> -- 
> PointedEars
> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Sometimes one field that the functionality behind the language is both hidden and covered by wordsallad. Some programmers simply forget that the programmers also are users, and users demand a noneambigous language. Your pity semantic discussion lead nowhere to the development of a functional programming language just to confustion. When javascript developed their string handling functions, and pop and push there was a clear design idea behind it.

Now you idiots slowly transfer the language to the land of blip blops covered in  wordsallad. Well you simply do not have the brain for it, you lift the innerworks to the surface and present them as blip blop semantics to the user.

You are indeed low IQ

[toc] | [prev] | [next] | [standalone]


#34539

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2018-01-09 12:52 +0100
Message-ID<1776340.GmB2lMW1Tz@PointedEars.de>
In reply to#34532
Jonas Thörnvall wrote:

> Sometimes one field that the functionality behind the language is both
> hidden and covered by wordsallad. Some programmers simply forget that the
> programmers also are users, and users demand a noneambigous language. Your
> pity semantic discussion lead nowhere to the development of a functional
> programming language just to confustion. When javascript developed their
> string handling functions, and pop and push there was a clear design idea
> behind it.
> 
> Now you idiots slowly transfer the language to the land of blip blops
> covered in  wordsallad. Well you simply do not have the brain for it, you
> lift the innerworks to the surface and present them as blip blop semantics
> to the user.
> 
> You are indeed low IQ

Before one writes a criticism, one should be able to express oneself 
flawlessly in the language that one is using.  Otherwise the effort
will backfire.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#34542

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-09 04:41 -0800
Message-ID<2db62a9d-9048-4ecf-b339-5bcd240ba2a4@googlegroups.com>
In reply to#34539
Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars' Lahn:
> Jonas Thörnvall wrote:
> 
> > Sometimes one field that the functionality behind the language is both
> > hidden and covered by wordsallad. Some programmers simply forget that the
> > programmers also are users, and users demand a noneambigous language. Your
> > pity semantic discussion lead nowhere to the development of a functional
> > programming language just to confustion. When javascript developed their
> > string handling functions, and pop and push there was a clear design idea
> > behind it.
> > 
> > Now you idiots slowly transfer the language to the land of blip blops
> > covered in  wordsallad. Well you simply do not have the brain for it, you
> > lift the innerworks to the surface and present them as blip blop semantics
> > to the user.
> > 
> > You are indeed low IQ
> 
> Before one writes a criticism, one should be able to express oneself 
> flawlessly in the language that one is using.  Otherwise the effort
> will backfire.
> 
> -- 
> PointedEars
> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

I do not think so i am qualified for greatness with 187 in QI. One in a million approven.

[toc] | [prev] | [next] | [standalone]


#34547

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2018-01-09 15:50 +0100
Message-ID<14040454.IJbvRGIKK3@PointedEars.de>
In reply to#34542
Jonas Thörnvall fullquoted:

> Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
> Lahn:
>> Jonas Thörnvall wrote:
>> > [gibberish]
>> > You are indeed low IQ
>> 
>> Before one writes a criticism, one should be able to express oneself
>> flawlessly in the language that one is using.  Otherwise the effort
>> will backfire.
> 
> I do not think so i am qualified for greatness with 187 in QI. One in a
                   ^^                                        ^^
> million approven.
          ^^^^^^^^
<https://en.wikipedia.org/wiki/Intelligence_quotient>
<https://twitter.com/realDonaldTrump/status/949619270631256064>
<https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>

F’up2 alt.1d

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#34553

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-09 07:31 -0800
Message-ID<33e54cbe-ae1c-40a3-8144-a146ad43a57e@googlegroups.com>
In reply to#34547
Den tisdag 9 januari 2018 kl. 15:50:31 UTC+1 skrev Thomas 'PointedEars' Lahn:
> Jonas Thörnvall fullquoted:
> 
> > Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
> > Lahn:
> >> Jonas Thörnvall wrote:
> >> > [gibberish]
> >> > You are indeed low IQ
> >> 
> >> Before one writes a criticism, one should be able to express oneself
> >> flawlessly in the language that one is using.  Otherwise the effort
> >> will backfire.
> > 
> > I do not think so i am qualified for greatness with 187 in QI. One in a
>                    ^^                                        ^^
> > million approven.
>           ^^^^^^^^
> <https://en.wikipedia.org/wiki/Intelligence_quotient>
> <https://twitter.com/realDonaldTrump/status/949619270631256064>
> <https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>
> 
> F’up2 alt.1d
> 
> -- 
> PointedEars
> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Well you try it
http://www.theomegasociety.com/

[toc] | [prev] | [next] | [standalone]


#34565

From"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>
Date2018-01-10 15:03 -0800
Message-ID<p3664l$r14$3@dont-email.me>
In reply to#34553
On 1/9/2018 7:31 AM, Jonas Thörnvall wrote:
> Den tisdag 9 januari 2018 kl. 15:50:31 UTC+1 skrev Thomas 'PointedEars' Lahn:
>> Jonas Thörnvall fullquoted:
>>
>>> Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
>>> Lahn:
>>>> Jonas Thörnvall wrote:
>>>>> [gibberish]
>>>>> You are indeed low IQ
>>>>
>>>> Before one writes a criticism, one should be able to express oneself
>>>> flawlessly in the language that one is using.  Otherwise the effort
>>>> will backfire.
>>>
>>> I do not think so i am qualified for greatness with 187 in QI. One in a
>>                     ^^                                        ^^
>>> million approven.
>>            ^^^^^^^^
>> <https://en.wikipedia.org/wiki/Intelligence_quotient>
>> <https://twitter.com/realDonaldTrump/status/949619270631256064>
>> <https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>
>>
>> F’up2 alt.1d
>>
>> -- 
>> PointedEars
>> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
>> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
>> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
> 
> Well you try it
> http://www.theomegasociety.com/
> 

$50 scoring fee?

[toc] | [prev] | [next] | [standalone]


#34566

From"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>
Date2018-01-10 15:04 -0800
Message-ID<p3666i$r14$4@dont-email.me>
In reply to#34565
On 1/10/2018 3:03 PM, Chris M. Thomasson wrote:
> On 1/9/2018 7:31 AM, Jonas Thörnvall wrote:
>> Den tisdag 9 januari 2018 kl. 15:50:31 UTC+1 skrev Thomas 
>> 'PointedEars' Lahn:
>>> Jonas Thörnvall fullquoted:
>>>
>>>> Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
>>>> Lahn:
>>>>> Jonas Thörnvall wrote:
>>>>>> [gibberish]
>>>>>> You are indeed low IQ
>>>>>
>>>>> Before one writes a criticism, one should be able to express oneself
>>>>> flawlessly in the language that one is using.  Otherwise the effort
>>>>> will backfire.
>>>>
>>>> I do not think so i am qualified for greatness with 187 in QI. One in a
>>>                     ^^                                        ^^
>>>> million approven.
>>>            ^^^^^^^^
>>> <https://en.wikipedia.org/wiki/Intelligence_quotient>
>>> <https://twitter.com/realDonaldTrump/status/949619270631256064>
>>> <https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>
>>>
>>> F’up2 alt.1d
>>>
>>> -- 
>>> PointedEars
>>> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
>>> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
>>> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per 
>>> E-Mail.
>>
>> Well you try it
>> http://www.theomegasociety.com/
>>
> 
> $50 scoring fee?

per 4 of the tests? 200$ lol.

[toc] | [prev] | [next] | [standalone]


#34567

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-11 02:06 -0800
Message-ID<b909acee-c2c1-476a-b709-b28964aab971@googlegroups.com>
In reply to#34565
Den torsdag 11 januari 2018 kl. 00:04:00 UTC+1 skrev Chris M. Thomasson:
> On 1/9/2018 7:31 AM, Jonas Thörnvall wrote:
> > Den tisdag 9 januari 2018 kl. 15:50:31 UTC+1 skrev Thomas 'PointedEars' Lahn:
> >> Jonas Thörnvall fullquoted:
> >>
> >>> Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
> >>> Lahn:
> >>>> Jonas Thörnvall wrote:
> >>>>> [gibberish]
> >>>>> You are indeed low IQ
> >>>>
> >>>> Before one writes a criticism, one should be able to express oneself
> >>>> flawlessly in the language that one is using.  Otherwise the effort
> >>>> will backfire.
> >>>
> >>> I do not think so i am qualified for greatness with 187 in QI. One in a
> >>                     ^^                                        ^^
> >>> million approven.
> >>            ^^^^^^^^
> >> <https://en.wikipedia.org/wiki/Intelligence_quotient>
> >> <https://twitter.com/realDonaldTrump/status/949619270631256064>
> >> <https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>
> >>
> >> F’up2 alt.1d
> >>
> >> -- 
> >> PointedEars
> >> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
> >> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
> >> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
> > 
> > Well you try it
> > http://www.theomegasociety.com/
> > 
> 
> $50 scoring fee?

Well it was free in the 90's i ain't exactly hangaround...

[toc] | [prev] | [next] | [standalone]


#34554

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-01-09 09:50 -0800
Message-ID<32eeb075-28a4-4082-8c68-7dacd4e91937@googlegroups.com>
In reply to#34547
Den tisdag 9 januari 2018 kl. 15:50:31 UTC+1 skrev Thomas 'PointedEars' Lahn:
> Jonas Thörnvall fullquoted:
> 
> > Den tisdag 9 januari 2018 kl. 12:52:57 UTC+1 skrev Thomas 'PointedEars'
> > Lahn:
> >> Jonas Thörnvall wrote:
> >> > [gibberish]
> >> > You are indeed low IQ
> >> 
> >> Before one writes a criticism, one should be able to express oneself
> >> flawlessly in the language that one is using.  Otherwise the effort
> >> will backfire.
> > 
> > I do not think so i am qualified for greatness with 187 in QI. One in a
>                    ^^                                        ^^
> > million approven.
>           ^^^^^^^^
> <https://en.wikipedia.org/wiki/Intelligence_quotient>
> <https://twitter.com/realDonaldTrump/status/949619270631256064>
> <https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect>
> 
> F’up2 alt.1d
> 
> -- 
> PointedEars
> FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Could not quite quailfy?

[toc] | [prev] | [next] | [standalone]


Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →

Back to top | Article view | comp.lang.javascript


csiph-web