3 ms·
Hip Hop, and "PHP" don't really share that much. Wordpress templating is what a lot of people think PHP is like. Zend Framework too. But saying PHP and Hip Hop
by drakaal 13y ago
Hip Hop, and "PHP" don't really share that much. Wordpress templating is what a lot of people think PHP is like. Zend Framework too. But saying PHP and Hip Hop are the same is kind of like saying Shakespeare and Flavor Flav both speak English.
Sure they both do a lot of Rhyming, but you'd have a hard time getting the two to understand one another.
(I don't like PHP particularly, but calling what FB does "php" is inaccurate)
- elbear 13y agoMy understanding is that developers write PHP. To what interpreter that code is passed is another matter.
- drakaal 13y agoYour understanding is limited. PHP has the ability to be written "inline" basically all of PHP acts like a templating engine. That's not how FB makes its developers write. That's a big difference. Also HipHop supports a subset of PHP's functions, which actually causes you to write better code because you can't lean on things like "eval" and dynamic defines. This makes your code better. There is a lot of "this kind of stuff" that makes PHP very different from HipHop.
- elbear 13y agoWhether they write PHP mixed with HTML is another thing. The point is that they write PHP and not some other language, which is what I was saying. HipHop has near full support for PHP 5.4, including the "create_function" and "eval" functions.[1] Yes, PHP and HipHop are different, because one is a language and the other is a virtual machine. [1]http://en.wikipedia.org/wiki/HipHop_for_PHP http://en.wikipedia.org/wiki/HipHop_for_PHP