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


Groups > comp.lang.javascript > #34381

Re: Object.create(canvas.getContext())

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Object.create(canvas.getContext())
Date 2017-11-22 04:12 +0100
Organization PointedEars Software (PES)
Message-ID <1928114.irdbgypaU6@PointedEars.de> (permalink)
References (6 earlier) <oustnb$gbb$1@gwaiyur.mb-net.net> <4026723.LvFx2qVVIh@PointedEars.de> <ouuptf$59b$1@gwaiyur.mb-net.net> <2052703.ElGaqSPkdT@PointedEars.de> <ov1jud$f8d$1@gwaiyur.mb-net.net>

Show all headers | View raw


Jan Bruns wrote:

> Thomas 'PointedEars' Lahn:
>> Jan Bruns wrote:
>>> But we're talking about a very popular API, meaning there are thousands
>>> or maybe even a million programmers out there that tried out or will
>>> try out working with it.
>  
>> The generally recommended approach is the one that I recommended to you
>> initially: create a wrapper for the host object.  Obtaining, and
>> operating on, the keys of the object is just one of the more convenient
>> implementations of that approach.
> 
> Your approach was to use the API's prototype to ask for valid API keys.
> Noone can tell if that's a host object anywhere.

This is why in iteration try-catch should be used, too.

> The API itself could be a host object, too, and isn't required to have a
> prototype object (so I can't expected it to list all the API methods).

Sadly, you have no clue what you are talking about.
 
> [further misconceptions]

-- 
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.

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


Thread

Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-12 10:09 +0000
  Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-12 17:42 +0100
    Re: Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-14 11:48 +0000
      Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-15 02:32 +0100
        Re: Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-17 20:25 +0000
          Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-19 05:48 +0100
            Re: Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-19 21:39 +0000
              Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-19 23:34 +0100
                Re: Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-20 14:47 +0000
                Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-21 04:07 +0100
                Re: Object.create(canvas.getContext()) Jan Bruns <ebay@abnuto.de> - 2017-11-21 16:23 +0000
                Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-22 04:12 +0100
  Re: Object.create(canvas.getContext()) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-11-12 18:45 +0100

csiph-web