Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Why does savepng workl with eventlistener but not by call from form? Date: Sun, 27 Nov 2016 00:11:24 +0100 Organization: solani.org Lines: 23 Message-ID: References: <58b433c6-37a6-45de-bc70-05ec835510ff@googlegroups.com> <17n7y8md13g1b$.kznrbim03ls$.dlg@40tude.net> <2828265.aV6nBDHxoP@PointedEars.de> <4504999.NdOOCcYCMV@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1480201863 12576 eJwNyNEBRDEEBMCWRCyrHLzov4S7+RxcPz5hDjcs1g6b0i7OVEOG7iLUs2v4jw15utM3yaTU1AtX7erv86NgRSHHIm5TRbYDQqXtK16xH1FBHR4= (26 Nov 2016 23:11:03 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 26 Nov 2016 23:11:03 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 X-User-ID: eJwFwQkBACAIA8BKImNYh7d/BO9MKSwHjbC17cM43rhR2VgUTIPjyTsbb1I3dAiIPO+JDy/hEeU= X-NNTP-Posting-Host: eJwNysEBwCAIA8CVQIzIOIBk/xHaex/s6GnfB2eDoBuge2f3yNDZBmPe1JQIXRSh+/W/F2N1d41OjpXeqB18hpcP4Mpme2CysmBSMhO3PrqvH9U= Cancel-Lock: sha1:xXiyIiGmYuqk19igEfeN7eturDw= In-Reply-To: <4504999.NdOOCcYCMV@PointedEars.de> Xref: csiph.com comp.lang.javascript:31744 On 26.11.2016 at 22:47, Thomas 'PointedEars' Lahn wrote: > Scott Sauyet wrote: > >> Thomas 'PointedEars' Lahn wrote: >>> Lesson to be learned: Design functions/methods to accept references to >>> parameter/option objects, and not more than 5 arguments [unless it is a >>> list of values of equal meaning, see e.g. Math.max()]. Otherwise nobody >>> is going to remember the correct argument order, you will be sacrificing >>> flexibility, [ ... ] >> >> Why five? That still seems far too many for almost every case. Three >> seems to me a much better guideline. Of course everyone will draw these >> lines differently for themselves, but I was wondering: do you have a >> specific reason for that number? > > Yes. Which is? -- Christoph M. Becker