“Black Hole” software anti-pattern

During digging into eCommerce5 codebase and discussing ongoing impressions with my colleague,  I just discovered a software design anti-pattern I called “Black Hole”.

As a workaround I declare a rule:

Any variables passed into constructor then should be available through a read-only property.

Honestly I haven’t invented the explanation yet.

This entry was posted in Programming and tagged . Bookmark the permalink.

2 Responses to “Black Hole” software anti-pattern

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 )

w

Connecting to %s