June 2017
Beginner
352 pages
8h 39m
English

The aircraft_model() method is an example of 'complex is better than complicated':
def aircraft_model(self): return self._aircraft.model()
The Flight class is more complex – it contains additional code to drill down through the aircraft reference to find the model. However, all clients of Flight can now be less complicated; none of them need to know about the Aircraft class, dramatically simplifying the system.
Read now
Unlock full access