Prev: FAQ Topic - How can I prevent access to a web page by using javascript? (2010-05-09)
Next: Between hard code writing hours
From: Johannes Baagoe on 14 May 2010 04:33 RobG : > 4. Yepify, Cornify (cf. currying[1]) Cornford's Construct, like Duff's Device or the Muenchian Method. Or, in the common case where a closure is created, Cornford's Closure. -- Johannes
From: Garrett Smith on 14 May 2010 18:01 RobG wrote: > On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote: >> Moving a discussion from twitter... Let's name this pattern :) >> [...] > 4. Yepify, Cornify (cf. currying[1]) > A function that has an explicit return has different context than one that simply creates a lexical scope. A pattern is a reusable solution a contextual problem. A function that does not return a value creates a lexical scope returns undefined. It can thus be thought of as a void function and so for that, perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does not roll off the tongue well. Maybe Cornhole? -- Garrett comp.lang.javascript FAQ: http://jibbering.com/faq/
From: nick on 14 May 2010 19:28 On May 14, 6:01 pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: > RobG wrote: > > On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote: > >> Moving a discussion from twitter... Let's name this pattern :) > > [...] > > > 4. Yepify, Cornify (cf. currying[1]) > > A function that has an explicit return has different context than one > that simply creates a lexical scope. > > A pattern is a reusable solution a contextual problem. > > A function that does not return a value creates a lexical scope returns > undefined. It can thus be thought of as a void function and so for that, > perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does > not roll off the tongue well. Maybe Cornhole? I think we're definitely on the right track... now all it needs is a few more syllables to jazz it up. Perhaps (n.) Cornforfication and (v.) Cornforify?
From: Thomas 'PointedEars' Lahn on 15 May 2010 09:06
Garrett Smith wrote: > RobG wrote: >> On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote: >>> Moving a discussion from twitter... Let's name this pattern :) > [...] >> 4. Yepify, Cornify (cf. currying[1]) > > A function that has an explicit return has different context than one > that simply creates a lexical scope. > > A pattern is a reusable solution a contextual problem. > > A function that does not return a value creates a lexical scope returns > undefined. It can thus be thought of as a void function and so for that, > perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does > not roll off the tongue well. Maybe Cornhole? Is there are proofread version of this available? PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004) |