Re: Is this too much OOP?
- From: Bruno Desthuilliers <bdesth.quelquechose@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Sep 2006 00:11:29 +0200
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 ?
.
- References:
- Is this too much OOP?
- From: needin4mation
- Re: Is this too much OOP?
- From: Rick Elbers
- Re: Is this too much OOP?
- From: needin4mation
- Is this too much OOP?
- Prev by Date: Re: Is this too much OOP?
- Next by Date: Re: Abstract public member variales?
- Previous by thread: Re: Is this too much OOP?
- Next by thread: Re: Is this too much OOP?
- Index(es):
Relevant Pages
|