Class with too many parameters: better design strategy?

UPDATE: This approach may be suited in your specific case, but it definitely has its downsides, see is kwargs an antipattern? Try this approach: class Neuron(object): def __init__(self, **kwargs): prop_defaults = { “num_axon_segments”: 0, “apical_bifibrications”: “fancy default”, … } for (prop, default) in prop_defaults.iteritems(): setattr(self, prop, kwargs.get(prop, default)) You can then create a Neuron like … Read more