Re: [jQuery] jQuery newbies?

2007-03-14 Thread Klaus Hartl
Karl Swedberg schrieb:
> Hey Jörn,
> 
> I think it's totally cool that someone with your level of expertise, 
> someone whose coding prowess I aspire to, also has the self-confidence 
> to post such a question!
> 
> Anyway, the distinction between newbie and expert is, in my opinion, 
> irrelevant nearly all of the time. Much more important than "expertise," 
> for developers at least, are intelligence and creativity. And from 
> everything I've seen from you on this list, your blog, and your plugins, 
> you have a lot of both.  :-)


I second Karl, nobody has any doubts about Jörns expertise! What's 
interesting is, that theoretically you could have never heard anything 
of "self", but still are an extremely skilled JavaScript programmer.


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-14 Thread Karl Swedberg

Hey Jörn,

I think it's totally cool that someone with your level of expertise,  
someone whose coding prowess I aspire to, also has the self- 
confidence to post such a question!


Anyway, the distinction between newbie and expert is, in my opinion,  
irrelevant nearly all of the time. Much more important than  
"expertise," for developers at least, are intelligence and  
creativity. And from everything I've seen from you on this list, your  
blog, and your plugins, you have a lot of both.  :-)



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Mar 13, 2007, at 6:25 PM, Jörn Zaefferer wrote:


Nathan Young -X (natyoung - Artizen at Cisco) schrieb:
I think knowing what "this" is and being able to use it  
appropriately is pretty critical.


I think never having given a flying *** about self and having no  
idea what it is, is totally natural and not indicative of anything.



Thanks all for your replies.

I agree that knowing about self isn't critical, but its also true that
these are the details that an "expert" should know about. Thanks for
enlightening me :-)

--
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Jörn Zaefferer
Nathan Young -X (natyoung - Artizen at Cisco) schrieb:
> I think knowing what "this" is and being able to use it appropriately is 
> pretty critical.
>
> I think never having given a flying *** about self and having no idea what it 
> is, is totally natural and not indicative of anything.
>   
Thanks all for your replies.

I agree that knowing about self isn't critical, but its also true that 
these are the details that an "expert" should know about. Thanks for 
enlightening me :-)

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Alexandre Plennevaux
maybe he's a buddhist coder that contemplates The Great "this" but does not
believe in the "self" ??

   _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: mardi 13 mars 2007 22:56
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery newbies?


Maybe he's saying that n00bs don't know there IS a difference between this
and self...?


-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.447 / Base de données virus: 268.18.10/720 - Date: 12/03/2007
19:19
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Bruce
True,
this means this email, self is referring to me.

Bruce P
bkdesign
  - Original Message - 
  From: Chris Domigan 
  To: jQuery Discussion. 
  Sent: Tuesday, March 13, 2007 5:55 PM
  Subject: Re: [jQuery] jQuery newbies?


  Maybe he's saying that n00bs don't know there IS a difference between this 
and self...?



--


  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
I think knowing what "this" is and being able to use it appropriately is pretty 
critical.

I think never having given a flying *** about self and having no idea what it 
is, is totally natural and not indicative of anything.

>N

.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.

Nathan Young
Cisco.com->Interface Development
A: ncy1717
E: [EMAIL PROTECTED]  

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jake McGraw
> Sent: Tuesday, March 13, 2007 2:45 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] jQuery newbies?
> 
> A quick google and a look at Javascript The Definitive Guide:
> 
> "self" is also a property of the global (window) object, one 
> which points back
> at the window object such that (window.self === window) 
> should be true (it
> isn't in Internet Explorer, but it is in Gecko-based 
> browsers, Netscape 4.78
> and Opera 7.53). I'm unsure why people use "self". It 
> requires JavaScript to
> step through the object in the DOM you actually want to 
> retrieve a property
> which points back at the object you wanted in the first 
> place. I guess it's
> useful for self-documenting code (pun not intended). I don't 
> know, I never use
> it, when I want the default window object, I use "window".
> 
> "this" always refers to the current object. Outside of any 
> function, "this"
> would refer to the global (window) object such that (this === 
> window) returns
> true. Within functions, "this" can refer to a number of 
> things, but it is
> always the "current object". Example:
> 
> So, self is property which allows an object (Window) to reference
> itself, this refers to the object which sits on the top of the current
> scope resolution stack.
> 
> btw, self is a part of Client Side Javascript, not the core language.
> 
> I maybe reading it out of context, but I don't think knowing this
> makes or breaks one's status as a professional Javascript developer.
> 
> - jake
> 
> 
> On 3/13/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> > Hi folks,
> >
> > the infamous ppk wrote in his blog:
> >
> > "I've learnt one other trick for distinguishing newbies and 
> pros: ask
> > them the difference between |this| and |self|. Usually 
> people who just
> > claim to be excellent scripters don't know the answer, 
> while real pros do."
> >
> > So obviously I am not an excellent scripter, because I 
> don't have any
> > idea on the difference between those two. And I prefer 
> discussing iton
> > this instead of crawling through the ECMA spec.
> >
> > Anyone?
> >
> > --
> > Jörn Zaefferer
> >
> > http://bassistance.de
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Chris Domigan

Maybe he's saying that n00bs don't know there IS a difference between this
and self...?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Rey Bango
Self refers to the window object while "this" refers to a specific 
object that's being worked on.

And yep, I looked it up so I'm a n00b. ;o)

Rey

Jörn Zaefferer wrote:
> Hi folks,
> 
> the infamous ppk wrote in his blog:
> 
> "I've learnt one other trick for distinguishing newbies and pros: ask 
> them the difference between |this| and |self|. Usually people who just 
> claim to be excellent scripters don't know the answer, while real pros do."
> 
> So obviously I am not an excellent scripter, because I don't have any 
> idea on the difference between those two. And I prefer discussing iton 
> this instead of crawling through the ECMA spec.
> 
> Anyone?
> 

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Daniel MacDonald

As a nonprofessional, this is too much info for me, but the details are at: 
http://www.w3.org/TR/Window/#dfn-self-attribute
http://www.w3.org/TR/Window/#dfn-self-attribute 

You won't find it in the ECMA spec because it's part of the DOM

D

Daniel MacDonald wrote:
> 
> self refers to the current window in the DOM
> 
> D
> 
> 
> Jörn Zaefferer wrote:
>> 
>> Hi folks,
>> 
>> the infamous ppk wrote in his blog:
>> 
>> "I've learnt one other trick for distinguishing newbies and pros: ask 
>> them the difference between |this| and |self|. Usually people who just 
>> claim to be excellent scripters don't know the answer, while real pros
>> do."
>> 
>> So obviously I am not an excellent scripter, because I don't have any 
>> idea on the difference between those two. And I prefer discussing iton 
>> this instead of crawling through the ECMA spec.
>> 
>> Anyone?
>> 
>> -- 
>> Jörn Zaefferer
>> 
>> http://bassistance.de
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-newbies--tf3398728.html#a9464277
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Jake McGraw
A quick google and a look at Javascript The Definitive Guide:

"self" is also a property of the global (window) object, one which points back
at the window object such that (window.self === window) should be true (it
isn't in Internet Explorer, but it is in Gecko-based browsers, Netscape 4.78
and Opera 7.53). I'm unsure why people use "self". It requires JavaScript to
step through the object in the DOM you actually want to retrieve a property
which points back at the object you wanted in the first place. I guess it's
useful for self-documenting code (pun not intended). I don't know, I never use
it, when I want the default window object, I use "window".

"this" always refers to the current object. Outside of any function, "this"
would refer to the global (window) object such that (this === window) returns
true. Within functions, "this" can refer to a number of things, but it is
always the "current object". Example:

So, self is property which allows an object (Window) to reference
itself, this refers to the object which sits on the top of the current
scope resolution stack.

btw, self is a part of Client Side Javascript, not the core language.

I maybe reading it out of context, but I don't think knowing this
makes or breaks one's status as a professional Javascript developer.

- jake


On 3/13/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> the infamous ppk wrote in his blog:
>
> "I've learnt one other trick for distinguishing newbies and pros: ask
> them the difference between |this| and |self|. Usually people who just
> claim to be excellent scripters don't know the answer, while real pros do."
>
> So obviously I am not an excellent scripter, because I don't have any
> idea on the difference between those two. And I prefer discussing iton
> this instead of crawling through the ECMA spec.
>
> Anyone?
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Daniel MacDonald

self refers to the current window in the DOM

D


Jörn Zaefferer wrote:
> 
> Hi folks,
> 
> the infamous ppk wrote in his blog:
> 
> "I've learnt one other trick for distinguishing newbies and pros: ask 
> them the difference between |this| and |self|. Usually people who just 
> claim to be excellent scripters don't know the answer, while real pros
> do."
> 
> So obviously I am not an excellent scripter, because I don't have any 
> idea on the difference between those two. And I prefer discussing iton 
> this instead of crawling through the ECMA spec.
> 
> Anyone?
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-newbies--tf3398728.html#a9464043
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Andy Matthews
http://jszen.blogspot.com/2007/03/mark-of-n00b.html 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jörn Zaefferer
Sent: Tuesday, March 13, 2007 4:23 PM
To: jQuery Discussion.
Subject: [jQuery] jQuery newbies?

Hi folks,

the infamous ppk wrote in his blog:

"I've learnt one other trick for distinguishing newbies and pros: ask them
the difference between |this| and |self|. Usually people who just claim to
be excellent scripters don't know the answer, while real pros do."

So obviously I am not an excellent scripter, because I don't have any idea
on the difference between those two. And I prefer discussing iton this
instead of crawling through the ECMA spec.

Anyone?

--
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery newbies?

2007-03-13 Thread Erik Beeson
self always referers to the the Window object (I think?)
this can be set based on the context (like jQuery does with event
handler functions)

FWIW, I don't find 'self' mentioned in the ECMA spec...

--Erik

On 3/13/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> the infamous ppk wrote in his blog:
>
> "I've learnt one other trick for distinguishing newbies and pros: ask
> them the difference between |this| and |self|. Usually people who just
> claim to be excellent scripters don't know the answer, while real pros do."
>
> So obviously I am not an excellent scripter, because I don't have any
> idea on the difference between those two. And I prefer discussing iton
> this instead of crawling through the ECMA spec.
>
> Anyone?
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/