News for hackers. Stuff that matters.
Re:Brython, Python in the browser by willvarfar on Tuesday January 29, 2013 @05:53AM (#5133302)
It is surely subjective. Not the person you reply to but I'll chip in anyway.

I write lots of Javascript; mostly 'raw' Javascript in the webGL space. Here's just of the top of my head what's wrong with Javascript:

* looping over elements has too much boilerplate

* the mindfulnesss of 'this' is distracting

* the duality of dictionaries and lists and how that's an easy lie to fall for is fustrating

* that there are multiple frameworks trying to use $

On the other hand, their anonymous functions are very nice. And, I rather like prototypes vs classes. A bit. Sometimes

With Python, I like significant whitespace (so sue me) and especially the syntax for collections and packing/unpacking them.

I've blogged along these lines a lot in the past e.g. http://williamedwardscoder.tumblr.com/post/18319031919/progr...

Re:Brython, Python in the browser by jashkenas on Tuesday January 29, 2013 @07:18AM (#5133562)
With that particular list of features and complaints, you may want to take a quick look at CoffeeScript. It addresses everything on the list except for the "multiple frameworks trying to use $" bit.
Re:Brython, Python in the browser by acjohnson55 on Tuesday January 29, 2013 @07:30AM (#5133592)
I think the $ point is a bit soft anyway. With jQuery, it's easy enough to just use non-conflict mode.
Re:Brython, Python in the browser by sim0n on Tuesday January 29, 2013 @10:55AM (#5134616)
It's not often you want to use two libraries that both use $ anyway (e.g. you'd use jQuery OR prototype, Zepto OR MooTools - not usually both).
Re:Brython, Python in the browser by willvarfar on Wednesday January 30, 2013 @01:56AM (#5138461)
Funnily enough, it was trying to use a box2d port that used prototype in an app that already used jquery that raised my hackles most recently...