Re: Repositories, package dependencies, and domain-flavoured exceptions



iamfractal@xxxxxxxxxxx wrote:
> > Question #2: Are Java packages really appropriate to be determining
> > illegal package dependencies?
>
> Oh, good lord, yes, yes, and thrice yes. Java packages (and C#
> namespaces) are absolutely, god-sendingly ideal as a hierarchical
> encapsulation granularity for a large system. It's far more worthwhile
> concentrating on inter-package dependencies than inter-class
> dependencies within a package. You are doing The Right Thing.

Consider doing this analysis at the "binary package" level (aka jar
file for Java and Assembly/DLL for .NET). Issues surrounding division
of development labor, testing, distribution and reuse are typically
related to "binary packaging" not namespaces. Java packages are really
just a namespace mechanism. Of course doing the analysis at a
namespace level might help you determine what namespaces (and their
classes) need to go into what "binary packages" to address whatever
division of development labor, testing, distribution and reuse issues
you need to plan for.

See Martin's papers on (binary) package cohesion and coupling at
http://www.objectmentor.com/resources/articles/granularity.pdf and
http://www.objectmentor.com/resources/articles/stability.pdf.

.



Relevant Pages

  • Re: Symbol clashes: how to avoid them. Part 2
    ... a dynamically typed language, allows you to do other ... symbol from one package to another. ... There are always many namespaces (not only "package" namespaces, ... intern the symbol to every package ...
    (comp.lang.lisp)
  • Re: Confused about namespaces
    ... I clearly do not understand namespaces. ... package examples, and I found a few here: ... the same error I had been receiving before: ...
    (comp.lang.perl.misc)
  • Re: access members of class from a different program file
    ... > comparing with Java programming, there is a package then class and ... > then its members. ... > variable in a class in a given package ... There are namespaces. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: C++ style class usage in Lisp
    ... > When I write object oriented code in C++, sometimes I want to wrap a lot of ... There is a confusion in C++ between namespaces and classes. ... you just define a package and prepend a IN-PACKAGE: ... Common Lisp packages. ...
    (comp.lang.lisp)
  • Re: DPS Initial Ideas
    ... of "The FreeBSD package system is broken and needs to be fundamentally ... Rewriting it to use SQLite is a fundamental change. ... running a perl script to connect to a Berkeley database. ... It may be that borrowing from Debian the idea of "abstract" dependencies ...
    (freebsd-hackers)