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: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Why does savepng workl with eventlistener but not by call from form? Date: Sat, 26 Nov 2016 22:47:54 +0100 Organization: PointedEars Software (PES) Lines: 21 Message-ID: <4504999.NdOOCcYCMV@PointedEars.de> References: <58b433c6-37a6-45de-bc70-05ec835510ff@googlegroups.com> <17n7y8md13g1b$.kznrbim03ls$.dlg@40tude.net> <2828265.aV6nBDHxoP@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1480196874 9244 eJwFwQEBACAIA7BKovxKHMTTP4IbFo21naCj0fUeMnJIzqDp6NZJ7Oxce1jEfZqFmPKcLX44URH8 (26 Nov 2016 21:47:54 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 26 Nov 2016 21:47:54 +0000 (UTC) User-Agent: KNode/4.14.2 X-NNTP-Posting-Host: eJwFwQkBwDAIA0BLvIHJYaXxL6F36VCcCiQimRR3W05Zuf16LvqaI0abX5MiEYK9I0WV9XoOkxCV Cancel-Lock: sha1:jgfn76xwy30p8+9rEazVvZEWo5o= X-User-ID: eJwFwQcBwDAMAzBKy7MbOnn8IUwKg6DpCHhcnFA9oB9svPdJFexsuLXnQ0LVhLHZst9bE828yepX5IT/OqMVGA== Xref: csiph.com comp.lang.javascript:31742 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. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.