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


Groups > comp.lang.javascript > #9170

Re: toString Method with Parameters

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <2299122.SKD2KPVSPY@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Tue, 13 Dec 2011 03:42:53 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 8Bit
Subject Re: toString Method with Parameters
Newsgroups comp.lang.javascript
References <4g1de7t607d0sdudjmdv4mr1o4cm5hvekg@4ax.com> <jc65e1$air$1@news.albasani.net> <1663760.JFYEL58v44@PointedEars.de>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 22
NNTP-Posting-Date 13 Dec 2011 03:42:53 CET
NNTP-Posting-Host 837c0f4b.newsspool3.arcor-online.net
X-Trace DXC=W?;_c:]FG1Ok:C4l9A;OcOMcF=Q^Z^V3H4Fo<]lROoRA8kF<OcfhCOKa`:6Ko^Zg`LDZm8W4\YJNL;?f@h5gMfbLObTfU2klSEN4AI\omSTE9D
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:9170

Followups directed to: comp.lang.javascript

Show key headers only | View raw


Thomas 'PointedEars' Lahn wrote:

> Use this:
> 
>   NewDate.prototype.toString = function (Selector) {
>     // …
>   };

This is better as it avoids confusion between constructor name and name of 
argument:

  NewDate.prototype.toString = function (selector) {
    // …
  };


PointedEars
-- 
> If you get a bunch of authors […] that state the same "best practices"
> in any programming language, then you can bet who is wrong or right...
Not with javascript. Nonsense propagates like wildfire in this field.
  -- Richard Cornford, comp.lang.javascript, 2011-11-14

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


Thread

toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-12 15:04 -0800
  Re: toString Method with Parameters Andreas Bergmaier <andber93@web.de> - 2011-12-13 01:14 +0100
    Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 02:41 +0100
      Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 03:42 +0100
      Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-14 20:59 +0000
  Re: toString Method with Parameters Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-13 04:29 -0800
  Re: toString Method with Parameters Scott Sauyet <scott.sauyet@gmail.com> - 2011-12-13 10:00 -0800
  Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-13 20:42 +0000
    Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-13 17:48 -0800
      Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-15 20:36 +0000
        Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-15 19:45 -0800
          Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-17 20:59 +0000
            Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-19 12:07 -0800
              Re: toString Method with Parameters "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-19 20:27 +0000

csiph-web