Skip to main content
added 3 characters in body
Source Link
user464131
user464131

How should I go about refactoring this so Vehicle is more than just a bag of 100+ properties that keeps growing.

There is no way to have less than 100+ properties when 100+ properties are needed. All you can do about it is to turn Vehicle from a bag of 100+ properties to a bag of bags of bags of..., using aggregation and/or composition, that together gets to 100+ properties.

How should I go about refactoring this so Vehicle is more than just a bag of 100+ properties that keeps growing.

There is no way to have less than 100+ properties when 100+ properties are needed. All you can do about it is to turn Vehicle from a bag of 100+ properties to a bag of bags of bags of..., using aggregation and composition, that together gets to 100+ properties.

How should I go about refactoring this so Vehicle is more than just a bag of 100+ properties that keeps growing.

There is no way to have less than 100+ properties when 100+ properties are needed. All you can do about it is to turn Vehicle from a bag of 100+ properties to a bag of bags of bags of..., using aggregation and/or composition, that together gets to 100+ properties.

Source Link
user464131
user464131

How should I go about refactoring this so Vehicle is more than just a bag of 100+ properties that keeps growing.

There is no way to have less than 100+ properties when 100+ properties are needed. All you can do about it is to turn Vehicle from a bag of 100+ properties to a bag of bags of bags of..., using aggregation and composition, that together gets to 100+ properties.