News for hackers. Stuff that matters.
Re:Brython, Python in the browser by tferris on Tuesday January 29, 2013 @08:24AM (#5133801)
> makes it quicker to write and improvise with new ideas,

I've never thought about that but could make sense.

> as well as its enforced whitespace, which makes it easier to write maintainable code.

This is something I've never understood and where I tend to disagree. When starting with "whitespace" languages like Coffee, Ruby or Python people initially are please with clean and tidy looking code but in the long run this code is not maintainable since all the white space makes the code looking not distinctively enough. In contrast, bracket based languages like C or JS give much better orientation. I can quickly see where code blocks start or I can immediately recognise functions etc.

> Lua, on the other hand, would be an excellent browser language

Totally agree

Re:Brython, Python in the browser by scott_w on Tuesday January 29, 2013 @11:24AM (#5134788)
"in the long run this code is not maintainable since all the white space makes the code looking not distinctively enough."

Where do you get this? The only instance where I see Python becoming unreadable due to whitespace is when a developer abuses whitespace where it's not needed e.g. a = [ 'a', 'list' ]

Another example could be chaining method calls Java-style, but all of this is alleviated by just following PEP8.

The significance of whitespace has no effect on the readability of a language.

Re:Brython, Python in the browser by njharman on Tuesday January 29, 2013 @09:59AM (#5134306)
Ruby is not a significant indentation language. do not comprehend how Indentation is not visually distinctive.
Re:Brython, Python in the browser by tferris on Tuesday January 29, 2013 @11:20AM (#5134759)
I didn't mean the indentation, I meant leaving away brackets.