Zaphood
Zaphood

Reputation: 2667

Extendable class and library

I keep bumping into term "easly extendable" class/library. I wonder what exectly makes it easy extendable? What must I remember about to create easy extendable classes/libraries? I am interested mainly in .net but any general knowledge will be usefull.

Upvotes: 0

Views: 148

Answers (2)

Augusto
Augusto

Reputation: 29937

In my view, it's that the class/library uses good design practices (in order of importance to me) such as

  • Follows Principle of least astonishment and it's coherent.
  • It's easy to use (I know that this is a very fuzzy term)
  • Uses SOLID principles (specially the open/closed principle)
  • Depending on what the library tries to solve: that it has good extension points.

And a few other things that I can't remember now :).

Upvotes: 1

David
David

Reputation: 2272

Entire books have been written on this subject ... I would start by reading up on the SOLID principles e.g. here. I would also recommend Head-First Object-Oriented Analysis & Design and/or Head-First Design Patterns from O'Reilly.

Upvotes: 1

Related Questions