Hacker News new | ask | show | jobs
by roldenburger 4846 days ago
I have been a PHP developer for more than 10 years. Since a couple of years Python has become my language of choice. I'm addicted to Python, every project I now start is in Python.

But I don't see any real valid reasons in the article to convince people. Do I have a valid reason? Probably not, every project has their own reason to use a specific language.

One valid reason to choose Python instead of PHP: Encoding. Never had any big problems in Python and a lot in PHP. Oh and multithreading.

1 comments

> Encoding. Never had any big problems in Python and a lot in PHP

Encoding is rarely a problem in PHP. Use UTF-8 everywhere, make sure every part of the system uses it (the database server, the database client in PHP, the web pages, etc.). If you're going to work with e.g. Japanese characters, use http://www.php.net/manual/en/mbstring.overload.php

Agree, but sometimes you have to work with systems from other people. The fact that encoding issues can occur, means it will happen someday.
What kind of encoding issues are we talking about? I fail to see how PHP in itself should be specifically vulnerable to encoding problems.