r/programming • • May 09 '12

JavaScript: The good parts

http://blog.movereem.nl/images/javascript-the-good-parts-the-definitive-guide.jpg
645 Upvotes

159 comments sorted by

View all comments

Show parent comments

48

u/Fissionary May 09 '12 edited May 09 '12

Hello World is just print "Hello, world!"

Not in the latest version of Python, it isn't. It will work in Basic, though.

The simplicity of the Hello World program is not a good indicator of the power of a language.

29

u/Wolfy87 May 09 '12

No, now it uses parenthesis. How difficult.

9

u/[deleted] May 09 '12

it's not difficult, but it is the wrong direction for the language to move in. Ham-fisted correctness over readability? WTF python devs .... I'm sticking to the 2.7 branch as long as I can ...

2

u/Wolfy87 May 09 '12

I think the most problems will come from conversions. Writing from scratch is fine. But I agree, 2.7 just feels better at the moment. And until Django moves I am not budging.

8

u/fernandotakai May 09 '12

I really want to start using py3 just because of the "strings are unicode by default".

I hate writing u"something".

15

u/BitRex May 09 '12

u"mad"?

1

u/HorrendousRex May 09 '12

Eh, be careful... strings aren't unicode by default, they are abstract by default and can be encoded in a unicode encoding (like utf8) very easily.

Yes, internally they are being stored as unicode strings, but the point of py3 strings is that they are not tied directly to an encoding.

2

u/gthank May 09 '12

Then you probably want to keep track of this: https://www.djangoproject.com/weblog/2012/mar/13/py3k/