- Sigh >>
- @sireneast unfortunately the maps appli doesn't work well in English mode >>
- @Joshrath I probably would have done the same thing at that age. #sad >>
- This drama involving @danielbru is unfortunate. >>
- Reading @train_kanto is infinitely more pleasurable when you live in #tokyo and not #saitama >>
$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 [...]