News for hackers. Stuff that matters.
Re:Ask HN: Bet the farm. Python or PHP? by xirium on Sunday June 08, 2008 @12:17AM (#211908)
Most fundamentally, PHP combines Perl's array and hash data structures. Although you can access name/value pairs as even and odd array elements, code that doesn't need both sets of properties will run slower and consume more memory because a structure implementing both sets of properties is implemented automatically.

Why use a languge like that when you're already familiar with Perl?

Re:Ask HN: Bet the farm. Python or PHP? by jrockway on Sunday June 08, 2008 @05:36AM (#212043)
If I recall correctly, a PHP "array" doesn't necessarily iterate (with foreach) in numerical order. That's just weird.
Re:Ask HN: Bet the farm. Python or PHP? by t0pj on Sunday June 08, 2008 @12:27AM (#211916)
Thanks. I didn't know about PHP's array/hash combo.

Would there be nothing for someone familiar with Perl to learn from using a language like Python?

I appreciate your thoughts.