Your response was the insulting one! On Tuesday, December 11, 2012 5:04:59 PM UTC-5, Pedro Teixeira wrote: > > "this" is useful for a lot of reasons, including the examples in this > chapter: > http://eloquentjavascript.net/chapter8.html > This book is free, I'm not plugging it, have no interest in plugging it. > Looks like you don't understand basic javascript, that's why I tried to > point you into a direction that may help you. If you choose to ignore it, > fine, but don't insult people. > Also, you should post javascript questions in javascript mailing lists, > not here. > > -- > Pedro > > On Tuesday, December 11, 2012 at 9:56 PM, spqr wrote: > > Nice promotional plug for a book... learn to read posts and respond with > thoughtful answers. > > > On Tuesday, December 11, 2012 4:51:09 PM UTC-5, Pedro Teixeira wrote: > > I'd recommend you read this: http://eloquentjavascript.net/ > > -- > Pedro > > On Tuesday, December 11, 2012 at 9:46 PM, spqr wrote: > > I'm writing a fairly unusual type of node program that manages and runs > JavaScript objects that the master program loads at start-up. > I don't want to go into more detail than that, but I do want to make one > comment. It seems to me that "this" as it is defined in > JavaScript, is close to useless. Because I load my objects dynamically and > call their functions via eval(), when they need to run, > "this" never has a useful value. Sure, I worked around it by getting a > reference to the object I really want and passing it in to the > function as an argument (annoying and ugly, but workable). I'm just > curious if anyone really thinks 'this" is useful. I've seen the > construct where you set a var in the object itself that is a reference to > the object... honestly, that looks pretty "off" itself, but also > doesn't work when eval() is involved. > > Is "this" in JavaScript really useful for anything? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] <javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > >
-- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
