Re: Question to Interfaces/Objectcatalogue




"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8FD05BD8-74C7-497C-804E-CCC9763E3105@xxxxxxxxxxxxxxxx
> Hi Ralph.
>
> Thank's for your answer. I see now, that an additional interface can't be
> the solution. It doesn't pay anything. The mechanism of Interfaces and
> Inheritance is quite plain to me. But I don't understand the basics of COM
(I
> think at this point, it's neccesary to read something about that ;-).
>
> Unfortunately I have no bearing on this design of the project. Althoug the
> concept of generated classes is not the worst thing. In a scenario with
> hundreds of tables, it's not a good idea, to read from ADO Recordsets
untyped.
> And Code like rs.Fields("OrderNumber") can't be checked by the compiler.
> That's a potential source of error.
>
> Of course, the generated classes can't never be part of the
bussines-layer.
> That's absolutely clear. And that's not the circumstance in our project
> (fortunately !)
> There are a lot of additional classes and class-hierarchies, which are
> designed for the bussines-layer. And together with the forms, we have now
> this bloated Project.
> Unfortunately, it's designed as a monolith.
>
> We plan to remake the whole project in VB.NET or C#. But that's an
> enterprise for the next few years.
>
> Thank you,
> Peter

I likely came across harsher than I meant. It is the nature of this medium.

IMHO, There is certainly nothing wrong with code generators - I regularly
use the VB Class Builder, Rational Rose (an old one), and an amazing
collection of data wizards, sed scripts, and templates. (So many that when I
have to 'program' at a wild box - I often sit there for awhile wondering
what to do. <g>) I was only commenting that they also have a dark side. That
is simply the ability to allow one to mass-clone a bad idea. <smile>

Many a time, usually around 8 or 9pm, I have had a great idea! Drew up a
template, and generated an almost complete suite of marvelously, truly
inspired classes, that created the objects of all objects! All before
bedtime. Only to wake up the next morning, have some coffee, and then
wonder - "What the H* was I thinking?". <g>

-ralph


.



Relevant Pages

  • Re: LaTeX3 project
    ... I'm quite in favour of a re-vamped interface, ... The exptl3 code at the moment runs on top of LaTeX2e, ... serviced by high-level customizable templates with the hope ... needed for your design. ...
    (comp.text.tex)
  • Re: Question to Interfaces/Objectcatalogue
    ... that an additional interface can't be ... Inheritance is quite plain to me. ... Unfortunately I have no bearing on this design of the project. ... the generated classes can't never be part of the bussines-layer. ...
    (microsoft.public.vb.com)
  • Re: CPU recommendations?
    ... each time you add a new type of motor, ... There is therefore very little benefit in keeping a clean abstract interface and separation of code layers - it adds overhead to the generated code, and it adds overhead to the development. ... generated or used for templates, ...
    (comp.arch.embedded)
  • Re: When is a function not a function?
    ... a DOM element and Array or a value with falseness. ... betrays very poor code design. ... subject of the test is expected to be any of a javascript function ... There is nothing to say that an object implementing the Node interface should not be a function object. ...
    (comp.lang.javascript)
  • Re: XP Requirement Analysis?
    ... and use TDD to force the same design to emerge. ... > These principles, used with other XP situations like pair programming, ... OK, but you need to know what that interface is, so you must do some ... to buy a business value. ...
    (comp.object)

Loading