oop - Can we apply the REP, CRP, CCP, etc. principles to Java packages as well as to JARs? -


uncle bob's principles of ood (http://butunclebob.com/articles.unclebob.principlesofood) describes:

  • the 5 principles of class design
  • the 6 principles of package design (the release reuse equivalency principle, common closure principle, etc.)

the article states that:

in context package binary deliverable .jar file, or dll opposed namespace java package or c++ namespace.

does mean 6 "package principles" not applicable java packages (which defined keyword package) @ all? mean mistake apply them in manner? if so, point out such namespace-package principles can found?

yes, package principles can applied single java packages, or equivalent groupings of classes (or other single units of software) in other languages.

the first article in martin's series of articles package principles, release reuse equivalency principle, explains principles groupings of classes. rather arbitrarily chooses "package" name groupings, mentions that word used in ada , java specific types of groupings in languages. conclude principles apply any grouping of classes, java packages included.

others have applied package principles java packages. jdepend calculates metrics based on package principles java packages. still miss wonderful tool optimal advisor, displayed metrics on package dependency graph aid refactoring. found both of them useful in identifying packages violated package principles , confirming when i'd fixed violations refactoring, such moving classes appropriate packages.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -