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

Link Details

Announcement

iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008

Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.

All it takes is one vote. Make it yours. Login and vote now.
Link 80150 thumbnail

By skoop
via sitepoint.com
Published: May 09 2008 / 15:53

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
  • 2119
  • 722

Comments

Add your comment
User 282283 avatar

Tantalus replied ago:

0 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.