Don’t be afraid to add more classes.

You won’t run out of paper.

Each class should have its own responsibility. Don’t have one class that calculates shipping and sends orders to the warehouse and emails the customer. Let the class have one job.

You won’t run out of disk space if you add more classes. Electrons are cheap.

Learning how to break up classes is an advanced skill. If you master this skill, your services will be in more demand.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: