Re: dip Notions 2 Major Errors

From: Phlip (phlip_cpp_at_yahoo.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 14:42:28 GMT

Robert C. Martin wrote:

> > http://groups.google.com/groups?selm=6qtavf%24aif%241%40hirame.wwa.com
> >
> >;-)
>
> Phlip, I find it frightening that you knew to reference that post.

Me too.

> Have you memorized the entire ell vs. rmartin story?

Just a couple funny posts.

Elliott wrote:

> When RCM discusses dip and states that client has no outgoing
> dependencies

E, nobody said DIP was automatically better, just a tool. You like
abstraction, except when someone points out a link to one of UB's
principles.

In C++, there are always more ways to cascade a recompile than to change a
_logical_ dependency. Many files will recompile which a programmer knows had
no need to.

However, the C++ architectural principle that permits very aggressive
compiling and very decoupled linking is the ability to put only interfaces
into .h files, and only implementation into .cpp files. So high-quality,
large C++ programs must invert their dependencies, or they will recompile
forever.

-- 
  Phlip
  http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces


Relevant Pages

  • Re: Programs dont run on other PCs
    ... The dependencies are added to your EXE once your add reference to them and ... > Now, the same applications don't run anymore, if I recompile them whith ... > And, for simple openGL apps, it is not neccessary to install any dlls on ...
    (microsoft.public.vc.language)
  • Re: asdf depends-on problem
    ... recompile the entire "app" in this case? ... On the first compilation of this system the components are compiled ... Apperently asdf does understands that module-d must be recompiled ... separate module, and declare its dependencies. ...
    (comp.lang.lisp)
  • Re: random FileIOPermission error
    ... whole website restart and recompile. ... If this stops the problem, ... very much likely that the webform page may have some dependencies or some ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [kde-freebsd] koffice build failure
    ... you should actually recompile all the apps that depend on it. ... benefits of shared libraries is that you usually don't have to recompile the ... library that I need to reinstall its dependencies is gnutls. ...
    (freebsd-current)