«« Next » « Previous
«« Next » « Previous

Link Details

Link 80150 thumbnail

By skoop
via sitepoint.com
Submitted: May 09 / 07:39

Against all odds, I found myself with a little spare time this week. Rather than do something sensible like clean the garage or get some exercise, I took the opportunity to learn a new programming language: Python.
  • 24
  • 3
  • 1799
  • 650

Comments

Add your comment
User 282283 avatar

Tantalus replied ago:

-1 votes Vote down Vote up Reply

"Both languages are also a little quirky when it comes to their handling of Unicode text."

I like how 'not supporting Unicode is any meaningful sense' is a 'quirk' of PHP. Here I thought Python didn't have, say, tail-call optimization, but I guess it's just 'quirky' in its support for it. Awesome.

"These let you split and combine lists (the equivalent of PHP arrays)"

Python dicts are a better equivalent of PHP arrays.

I'm not sure why you would even compare these languages, Python is general purpose and PHP is not. Of course PHP is better as for frontend web templates and such...that's what it's there for. Hey VHDL is better for hardware modeling than Python...

User 233461 avatar

antych replied ago:

0 votes Vote down Vote up Reply

You can use both to develop web applications, so you can compare them in this context. It's not that hard to understand, is it?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.