Re: Is this too much OOP?



needin4mation@xxxxxxxxx a écrit :
Rick Elbers wrote:
(snip)

I guess I've never seen real programming code that was "good." My
stuff works, doesn't break, but I know something is "wrong" with its
design. Thanks for any thoughts.

You might explore that feeling a little bit more. Is there really
something "wrong " ? In what circumstances do you feel that way about
that code ? In what kind of situations you wish you had done it
differently ?

Rick


Thanks. Actually, some of the stuf I look at makes me shudder. The
more I read the more I am amazed any of it is still working. That may
be a natural progression.

Since my experience is limited to web apps (some executables, but no
many) that use databases, I'm not feeling very OOP. That's supposed to
sound a little funny, but what I really mean is that what I write never
looks all neat and tidy like the books. I think I may just look for
duplication at the moment.

For example, I have an app that hits the database. I found I always
doing various regex manipulations to parse the data. So, instead of
putting that code in every web page, I created a separate class that I
pass the SQL string to. That's about as much OOP design I have done.
I understand that I am technically using it in many ways inherting
items from the page and such, but again, nothing like books thave have
these classes everywhere for employees, addresses, etc.


Well, your app is perhaps not needing them ?

In a lot of RDBMS based applications, most of the logic is really in the database itself, and the application is mostly a user interface - which can in itself be somewhat more complex than the RBBMS based part !-)

So is your application really modeling the "domain", or in fact modeling the interaction between the user and the RDBMS ?
.



Relevant Pages

  • Re: Help understanding object-oriented approach
    ... I have a number of the class OO books which help me understand the principals, but, not how to leverage those principals in to system design. ... Now, we want to save this information in to a database, what is the correct way for doing this; is it to create a saveCD method in my musicCD class? ... Surely in the OO concept the MusicCD class doesn't need to know about my table structure etc, would this be a case for a MusicCDDatabase class which knows about MusicCD and DB? ... The O.O. system is told that for some methods it needs a user interface, thus the instance constructors accept parameters that indicate which parts of an existing user interface belongs to which method. ...
    (comp.lang.php)
  • Re: When is a NULL Not a NULL ?
    ... interfaces with the database. ... design, by that I mean the design has been more influenced by global ... However denormalisation can often result in fast access to garbage, ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Two many controls
    ... Access would complain that you have too many controls on the form. ... To get around this problem, create a new database, and import the offending ... I've never seen a user interface where large numbers of ... when i open it for design, ...
    (microsoft.public.access.formscoding)
  • C# programmer looking for a job
    ... Software Development including Desktop, Client/Server and Database ... Practical skills in object oriented design and design patterns ... XML, Oracle, CVS, VSS, Delphi, bug tracking. ... Developed in Delphi5; ...
    (misc.immigration.usa)
  • Re: O/R Mapper
    ... | - create E/R model from niam model ... classes that contain, not only data, but also functionality as OO design is ... a database where they do not exist in the object model is corrupting the ...
    (microsoft.public.dotnet.languages.csharp)