- @AkikoHayashi hey akiko, what kind of pizza do they have there? >>
- RT @KyleHase: Stopped reading this article "Eight Must-Have Apps for Linux" after I saw that the first app was Adobe Reader. http://bit. ... >>
- @martintokyo you ok bro? >>
- @gbboy I personally feel it is the best tool to handle productive (3-member team) projects. Can't speak for anything larger than that.. >>
- Free advertising because I love these guys: Please give Thymer a try. (thymer.com). Best productivity software period. >>
$amenities = $amenities = AmenityOutput::generate_list_output($object->get_amenities()) ? $amenities : “None available”;
Yes, that apparently is valid PHP.
I switched it to this:
$amenities = AmenityOutput::generate_list_output($object->get_amenities());
if (!$amenities) $amenities = “None available”;
Sometimes people are too clever.
Comments (2)






The ugliness of this piece of code combined with the fact that it actually works, the whole idea is so wrong that it’s not even funny. Yet the PHP inventors expect people to accept this parsing behaviour. It’s as though the PHP interpreter is allowed to parse at arbitrary greediness. “Thanks for the inconsistency, you PHP fucktards.”
Another reason for me to stay away from PHP.
[...] my friend Jawaad showed me an interesting piece of ugly PHP code. I reiterated the fact that PHP sucks and that it remains trolling the web application development [...]