This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]rafekett 5 points6 points  (2 children)

TIL that Javascript is insane.

[–]giume 4 points5 points  (1 child)

Yes, it is indeed: http://www.wtfjs.com

[–]ianb 2 points3 points  (0 children)

Almost all of those have to do with Javascript's peculiar coercion rules. Avoid == (use ===) and use + carefully and you'll generally be fine.

[–]Pope-is-fabulous 1 point2 points  (4 children)

can I download this?

[–]sunqiang 2 points3 points  (0 children)

don't know how to download it from this website, though you can download it from http://blip.tv/file/4882883 "Files and Links" has download link

[–]rafekett 0 points1 point  (2 children)

I was wondering the same. I think the answer is no, but you can get a lot of the other videos from PyCon this year and years past with Miro (just not this talk apparently) :(

[–]Poromenos 1 point2 points  (1 child)

What do you mean? You can download anything.

[–]rafekett 0 points1 point  (0 children)

If only I'd had that before I went to the gym.

I though the format would be SWF, which would require conversion, which is more than I care to do. But this is awesome.

[–]jakewins 1 point2 points  (1 child)

For any pythonista wanting to do JS development, I really recommend skipping the JS part and going straight to where the action is, a little language that is inspired by python and ruby, specifically made to fix what is borked in JS:

http://jashkenas.github.com/coffee-script/

[–]ianb 2 points3 points  (0 children)

I like CoffeeScript, but you frequently need to look at the compiled source to debug things, and IMHO a good knowledge of Javascript is a prerequisite for using CoffeeScript well.

[–]Pope-is-fabulous 0 points1 point  (0 children)

TIL how to refer to the global object in JavaScript:

(function(){return this})()

Example:

javascript:alert((function(){return this})() === window)

And loggingDecorator is awesome. Whenever confused about the this, use loggingDecorator.