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


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

Comparing some of the ways to create objects

Started byJohn Harris <niam@jghnorth.org.uk.invalid>
First post2016-04-03 16:09 +0100
Last post2016-04-10 11:52 +0100
Articles 2 on this page of 22 — 5 participants

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


Contents

  Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-03 16:09 +0100
    Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-04 04:15 +0000
      Re: Comparing some of the ways to create objects Stefan Weiss <krewecherl@gmail.com> - 2016-04-04 15:20 +0200
        Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-05 04:04 +0000
      Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-04 16:48 +0100
        Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-05 04:04 +0000
          Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-07 15:07 +0100
            Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-08 01:10 +0000
              Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-08 14:55 +0100
      Re: Comparing some of the ways to create objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-04 22:12 +0200
        Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-05 09:57 +0100
      Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-06 16:41 +0100
        Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-06 23:42 +0000
          Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-07 16:09 +0100
            Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-08 02:05 +0000
              Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-08 15:43 +0100
                Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-09 00:01 +0000
                  Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-09 16:46 +0000
                    Re: Comparing some of the ways to create objects Scott Sauyet <scott@sauyet.com> - 2016-04-10 16:51 +0000
                    Re: Comparing some of the ways to create objects Stanimir Stamenkov <s7an10@netscape.net> - 2016-05-08 17:27 +0300
                  Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-10 11:31 +0100
                  Re: Comparing some of the ways to create objects John Harris <niam@jghnorth.org.uk.invalid> - 2016-04-10 11:52 +0100

Page 2 of 2 — ← Prev page 1 [2]


#30249

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-04-10 11:31 +0100
Message-ID<6rakgbp8km9747nvcrvavqcic7s6okr2mb@4ax.com>
In reply to#30240
On Sat, 9 Apr 2016 00:01:08 -0000 (UTC), Scott Sauyet
<scott@sauyet.com> wrote:

>John Harris wrote:

  <snip>
>Yes, JS is not an OOP language.  It's not an imperative language.  It's 
>not a functional language.  It's a multi-paradigm language with a 
>reasonable set of prototypal OOP features and a basic set of functional 
>features that is used by many beginners as a simple imperative language.
  <snip>

Yes, ES is a multi-paradigm language. It is often said that C++ is a
multi-paradigm language too, usually in reply to some fool who
complains that C++ is not 'really' OO.

As for imperative programming, note that simple web pages often don't
need anything more from the programmer. All the OOP or whatever is
contained in the DOM supplied by the browser. Keep It Simple is a
permitted programming style.


>If you would, though, I'd 
>appreciate it if you could clarify what you mean by "Using function 
>arguments as pseudo-properties is not really succinct."
  <snip>

I suppose it's because I'm used to seeing an object's own data
displayed as a simple list. When parameters and local variables are
used you have to search around to get a mental list of own data. Also
it seems strange to me that they are treated as object properties,
even though they can't be deleted (I believe).

  John 

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


#30250

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2016-04-10 11:52 +0100
Message-ID<43ckgbp9escbfcn17n23mtru2ket46lbld@4ax.com>
In reply to#30240
On Sat, 9 Apr 2016 00:01:08 -0000 (UTC), Scott Sauyet
<scott@sauyet.com> wrote:

>John Harris wrote:
  <snip>
>> An aside : There's a video talk by the inventor of Smalltalk where he
>> makes it very clear that if a language hasn't got *every* feature of
>> Smalltalk then it isn't OO. I wonder if Dave Walsh has seen it.
>
>I'd be interested in seeing a reference if you have one, because that 
>does not sound like his ideas at all.
  <snip>

I saw it in a lecture back in 1994. I don't know where the lecturer
got it from, so I'm afraid I can't point you to it.

  John

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

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


csiph-web