Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Give alert if form checkbox array is empty Date: Fri, 22 Jan 2016 09:48:36 +0100 Organization: PointedEars Software (PES) Lines: 31 Message-ID: <1954447.mWofGQDR9d@PointedEars.de> References: <1851504.v7CTRd67sv@PointedEars.de> <5278c17a-a0e3-4772-9a96-2b20a6479804@googlegroups.com> 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 1453452517 32115 eJwNy8ERACEIA8CWxEBylOOA9F/C+dnfBmgsOYMeE9NYzfNImG5BDXYeOLXLxlIf0l8S97jqBw2qEB8= (22 Jan 2016 08:48:37 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 22 Jan 2016 08:48:37 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNwoEVRDEEBMCW4tgV5SD0X8K/NwOlsN0IGvZPYwImIZMy6mvPoyl10G9Nc3gF51WUAy52lPHjTmX0vfkBPsQVGA== Cancel-Lock: sha1:Kk3s1U8v6km8NvLp0RteAh98/s0= X-NNTP-Posting-Host: eJwFwYEBwDAEBMCVKC+ME+T3H6F3sNCY44FwENydhfOSCiHOSDUEppUvhG+3qVNf9E2T3B81WBHE Xref: csiph.com comp.lang.javascript:29401 Scott Sauyet wrote: > Thomas 'PointedEars' Lahn wrote: >> Keep in mind that the built-in implementation of an algorithm is >> naturally always the most efficient one to use as it is, at best, >> provided in machine code already. > > Nonsense. This is a complete non sequitur. It is not. Machine code is compiled already; script code is not. So the time to interpret script code or to compile script code to machine code has to be taken into account. > One can write a horrible implementation of an algorithm; the fact that > it's available immediately in machine code does not make it more efficient > to use than one written better. One must start from the assumption that the developers of script engines know what they are doing, without assuming any optimizations on their part. > Many people have written implementations of functions such as `map`, > `reduce`, and `filter` more efficient for many uses than their native > counterparts on `Array.prototype`. Now *that* is a non sequitur. And you want to cite evidence. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.