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


Groups > comp.lang.javascript > #29633

Re: Can someone tell if this is javascript or else (jquery)?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Can someone tell if this is javascript or else (jquery)?
Date Thu, 18 Feb 2016 23:36:27 +0100
Organization PointedEars Software (PES)
Lines 51
Message-ID <41600258.7XRYZQJaTB@PointedEars.de> (permalink)
References <89e24913-7873-405c-9b54-9c35331c4d15@googlegroups.com> <ad4a7459-1e9a-4064-bd48-315bd4bfeb3b@googlegroups.com> <n9u4ha$f23$1@news.albasani.net> <1998996.AYlFq7fMdc@PointedEars.de> <n9uukm$fbb$1@news.albasani.net> <1927932.lV8zrDp9mk@PointedEars.de> <7b17cbplm9lhdtdklbg8tfemji6qvvjnkn@4ax.com> <arWdnbAtj_S9Gl7LnZ2dnUU7-XednZ2d@westnet.com.au> <kb59cbhl88hjnbh1idv954rgosroa0uhgv@4ax.com> <class-20160217234035@ram.dialup.fu-berlin.de> <oe-dnW3cE66aHFjLnZ2dnUU7-QWdnZ2d@westnet.com.au>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1455834987 3503 eJwNxsEBwEAEBMCWOLtCOYfov4RkXkNz9X7gdHC5LbVKi2y+epGifZDlljyXYI7J1PxdBjo+EGYQow== (18 Feb 2016 22:36:27 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 18 Feb 2016 22:36:27 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwNycEBwCAIA8CVJBig4yia/Ueo9z16WHTOYEyKao2LoSq/TXgQRwO1tma+ilRBzg8H7Y+dst7YvmBG9A9R5hUe
Cancel-Lock sha1:0LC2yvr5I05V3nZCm9kW/+E/aVI=
X-NNTP-Posting-Host eJwFwYEBwDAEBMCVkHhvHCr2H6F3fqD44sJxfX2B9ANpo1ox+PJRJIbxuJtFpGpJz1oien4AJBCV
Xref csiph.com comp.lang.javascript:29633

Show key headers only | View raw


Andrew Poulos wrote:

> On 18/02/2016 9:42 AM, Stefan Ram wrote:
>> John Harris <niam@jghnorth.org.uk.invalid> writes:
>>> On Wed, 17 Feb 2016 07:31:34 +1100, Andrew Poulos
>>>> As this is programming, wouldn't it be more accurate to call it a set
>>>> because a class is "... a template definition of the method s and
>>>> variable s in a particular kind of object"?
>>> In programming I prefer to think of a class as a collection of objects
>>> that have something in common. The something in common is defined in
>>> the class declaration or equivalent. Calling that a template is a bit
>>> over the top.
>>
>>    What Andrew quoted obviously does not make sense.
> 
> By that as it may, but a few websites disagree with your conclusion. For
> example
>    <http://codetpoint.com/java/java-oops-concept/>

I would not put too much stock in that resource, though.  It also says in 
that very definition of “class”:

| […] Thus, an object is a specific instance of a class;

So far, so good.  However, it should be noted that a class *is* an object 
itself in Java (and several other OOPLs).

And it continues:

| it contains real values instead of variables.

Which is nonsense, especially regarding Java (which that site claims to 
describe properly).  In Java, classes have _members_; members which are not 
methods are _fields_ which *can* have (initial) values; they are only also 
called “class variables” if they are declared static (i.e., not inherited to 
instances).

Besides, that resource is only describing *class-based* OOP, and, as it is 
unfortunately so often the case, its author(s) apparently assume(s) that 
this is the only kind of OOP.  However, in particular, most of the used 
ECMAScript implementations only have built-in support for *prototype-based* 
OOP; AFAIK, built-in support for class-based OOP can only be found in 
JScript .NET and ActionScript 2+ as implementations of the abandoned 
ECMAScript Ed. 4 draft, and implementations of ECMAScript 2015 such as 
Microsoft TypeScript and newer versions of Google V8.

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

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


Thread

Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 14:49 -0800
  Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 00:05 +0100
    Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 15:26 -0800
      Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 01:22 +0100
        Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-15 20:00 +0100
      Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 05:41 -0800
  Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-15 16:59 -0800
    Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 04:20 +0100
      Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 22:18 -0800
      Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 08:36 +0100
        Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 11:45 +0100
          Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 20:23 +0100
            Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-16 20:24 +0000
              Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-17 07:31 +1100
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-17 15:57 +0100
                Re: Can someone tell if this is javascript or else (jquery)? Tim Streater <timstreater@greenbee.net> - 2016-02-17 15:09 +0000
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 16:09 +0000
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 15:45 +0000
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 00:09 +0100
                Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-18 19:29 +1100
                Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 23:36 +0100
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-19 10:51 +0000
                Re: Can someone tell if this is javascript or else (jquery)? Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-19 09:01 -0800
                Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-18 15:10 +0000
            Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 23:56 +0100
  Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-17 04:46 -0800

csiph-web