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


Groups > comp.lang.javascript > #31764

Re: Limit number of function parameters

From Scott Sauyet <scott@sauyet.com>
Newsgroups comp.lang.javascript
Subject Re: Limit number of function parameters
Date 2016-12-03 01:58 +0000
Organization A noiseless patient Spider
Message-ID <o1t8rc$hko$1@dont-email.me> (permalink)
References (7 earlier) <1768059.oMNUckLgyt@PointedEars.de> <o1dblq$pr$1@dont-email.me> <o1hora$93u$1@solani.org> <o1iocn$bb6$1@dont-email.me> <o1shp3$9j0$1@solani.org>

Show all headers | View raw


Christoph M. Becker wrote:
> Scott Sauyet wrote:
>> Christoph M. Becker wrote:

>>> This rule is given in an OOP context, so for functional or procedural
>>> style most likely one should be added (niladic functional or
>>> procedural functions rarely make sense).
>> 
>> I agree.  This sounds exactly right.  There are of course uses of unary
>> functions in functional programming, but that's either at the boundary
>> of a program or as thunks of computation set aside to be processed if
>> they're actually needed.  Neither has anything to do with API design.
> 
> Hm, did you meant "nullary" instead of "unary"?

Yes, of course.

> For instance, there are several useful unary functions in Rambda.

Well, I hope so!  :-)

BTW, it's spelled "Ramda".  The name, as was the name of its predecessor, 
"Eweda" is simply a play on "Lambda".  Rams and ewes are grown-up lambs.


>>> [1] Clean Code: A Handbook of Agile Software Craftsmanship
>> 
>> I don't know why that classic has never bubbled its way to the top of
>> my to-read list.  One of these days...
> 
> A caveat, though: the author appears to be as opinionated as Douglas
> Crockford. :-)

To my mind that's mostly a good thing.  I'd rather authors who take a 
stand and stick by it.  It makes it much easier to know what to discount 
in their writing.  ;-)

  -- Scott

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


Thread

Why does savepng workl with eventlistener but not by call from form? jonas.thornvall@gmail.com - 2016-11-10 14:35 -0800
  Re: Why does savepng workl with eventlistener but not by call from form? jonas.thornvall@gmail.com - 2016-11-10 15:47 -0800
    Re: Why does savepng workl with eventlistener but not by call from form? JJ <jj4public@vfemail.net> - 2016-11-11 21:05 +0700
      Re: Why does savepng workl with eventlistener but not by call from form? jonas.thornvall@gmail.com - 2016-11-11 06:35 -0800
        Re: Why does savepng workl with eventlistener but not by call from form? JJ <jj4public@vfemail.net> - 2016-11-11 22:01 +0700
          Re: Why does savepng workl with eventlistener but not by call from form? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-11 16:21 +0100
      Re: Why does savepng workl with eventlistener but not by call from form? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-11 16:08 +0100
        Re: Why does savepng workl with eventlistener but not by call from form? Scott Sauyet <scott@sauyet.com> - 2016-11-26 21:09 +0000
          Re: Why does savepng workl with eventlistener but not by call from form? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-26 22:47 +0100
            Re: Why does savepng workl with eventlistener but not by call from form? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-11-27 00:11 +0100
              Re: Why does savepng workl with eventlistener but not by call from form? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-27 00:57 +0100
                Re: Why does savepng workl with eventlistener but not by call from form? Scott Sauyet <scott@sauyet.com> - 2016-11-27 01:08 +0000
                Re: Limit number of function parameters (was:Why does savepng workl with eventlistener but not by call from form?) "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-11-28 18:17 +0100
                Re: Limit number of function parameters (was:Why does savepng workl with eventlistener but not by call from form?) Scott Sauyet <scott@sauyet.com> - 2016-11-29 02:15 +0000
                Re: Limit number of function parameters "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-12-02 20:24 +0100
                Re: Limit number of function parameters Scott Sauyet <scott@sauyet.com> - 2016-12-03 01:58 +0000

csiph-web