- @sireneast Nothing lame about that dude; I learned Python by deving on Goog Appengine myself. >>
- @drebes I might just drop by... >>
- @k_sze You're welcome to come back :p >>
- @drebes What time? >>
- Going to make some Chicken biriyani for iftar with some bros in Harajuku. All are welcome to join though. >>
$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 [...]