7 ms·
Well, you need a list of seats occupied by all other passengers so that you can pick yours. The names probably happened to be in the same data set (and yes, of
by azov 14y ago
Well, you need a list of seats occupied by all other passengers so that you can pick yours. The names probably happened to be in the same data set (and yes, of course it's sloppy coding).
- run4yourlives 14y agoThe "seat" object though is not connected to knowing "who" is in that seat, only that it is full. As in "if seat.isoccupied()" At no time should the passenger object be visible to perform a new booking. I see where you might need it if you are changing a reservation, but again this shouldn't in any way be linked to the passenger manifest.
- tptacek 14y agoMaybe they want to be able to verify, across multiple sessions, that multiple seats aren't occupied by the same person, or to potentially be able to visually indicate that someone has multiple seats. Obviously you can easily design a schema that does that without including the names of other passengers, but that schema would be idiosyncratic to that one purpose.
- run4yourlives 14y agoWhich leads to: why in the hell does your schema allow for a passenger to occupy more than one seat at a time?
- tsuraan 14y agoSome people don't fit in a single seat?
- run4yourlives 14y agoWouldn't that be better accomplished with two passengers with the same name? You aren't getting that second seat for free! :-)
- tptacek 14y agoIt doesn't. You, for instance, accidentally book the same flight twice, or your company's travel person does.
- tigerente 14y agoFrequent-flyer perks. Given a certain level with the airline, United for example blocks the seat right next to you to offer you extra space (this can be overruled if the plane gets too packed). Thus, one passenger may be linked to more than one seat.