KishCom

Developer. Gamer. Yo-Yo Thrower.

I’m sold on Python

I’m sold on Python. I am having way too many “Why was I doing this the long way with PHP?” moments.

Some fun with PHP:

echo 10010.10 - 10009.93;
//0.17000000000007

Same thing in Python

print 10010.10 - 10009.93
#0.17

I also saw on Reddit this “magic kill number” that simply hangs most versions of PHP5.

$d = 2.2250738585072011e-308;

Hangs the default install of PHP in Ubuntu 10.10 (PHP 5.3.3-1ubuntu9.1). Crazy.

Back to KishCom.com
KishCom.Com

Table of Contents