i always try to avoid eating on the plane, but sometimes you have a 6AM flight with a 40 minute layover, and if you don't eat on the plane it's going to be like 2pm before you have your first calories! however in this scenario, you only have time for a cold sandwich or something that isn't that smelly.
if you have time to wait in line for hot smelly food you probably have time to eat it before boarding