Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: How would you prepare for javascripting interview? Date: Mon, 12 Sep 2016 20:32:19 +0100 Organization: A noiseless patient Spider Lines: 35 Message-ID: <87inu0sym4.fsf@bsb.me.uk> References: <50e38667-93da-4c5d-bc02-a78394f0ca3b@googlegroups.com> <1875389.irdbgypaU6@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="12781"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sRuU8+pKrHQbRir6mzXDq/Y/ZUjbzQxA=" Cancel-Lock: sha1:rleaX9sELheIrwo395Op5hBmFIM= sha1:FsFoGJSyVHB6hzZJt6ticJrlZjM= X-BSB-Auth: 1.9a4532bdd94eb98fcb5d.20160912203219BST.87inu0sym4.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:31345 John Harris writes: > On Sun, 11 Sep 2016 02:45:24 -0000 (UTC), Scott Sauyet > wrote: > > >>You see, I find you all wrong, also from a CS perspective. Do you happen >>to work mostly in languages like Java or C#, by any chance? Perhaps >>you've simply not had a chance to work in an environment/language that >>affords you the opportunity to write really nice code without reams of >>boilerplate error-checking. > > > One problem with this conversation is that one side is talking about > ordinary languages such as Algol and C++ whereas the other side is > talking about Functional Programming languages/implementations. People have been drawing on varied backgrounds, but the focus has been on ECMAScript's variadic Math.max function. Ultimately, all the points have to be relevant to that and I think that has been the case in the vast majority of the posts. In that since it's been a very good discussion. > The former must cope with partial functions. Many commercial > applications need this. Division is a common example. Customer's > telephone numbers are another example. > > The latter can't. A partial function is forbidden as it wrecks the > algebra of operations. I don't get your point at all. I suspect some miss-communication because functional languages often have partial functions at their core. -- Ben.