Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...If there has ever been a justification needed for access to the net during working hours, just referring to this site should suffice. Fantastic!..."

Geography

Where in the world do Tek-Tips members come from?
RoguePoet01 (Programmer)
7 Nov 03 11:31
Is it wise to have a class branch out to other classes?

As in: if I have a class dedicated to sending data from a form to a database, is it wise to have that class call other classes for adds, updates, deletes?  Or is that just complicating things needlessly?

Stupid question, but I'm curious if anybody's had experience with this scenario.
Helpful Member!  DrJavaJoe (Programmer)
7 Nov 03 13:25
I don't see a problem calling other classes from within your class. Let's say you had a class that does special math functions and your class needs to call these functions then it would be logical to declare the class and use it. The thing is should you create seperate classes for every aspect of manipulation to this database or maybe bottle them up into this one class? I would probably tend to put them into one class with various methods; add, update, etc. I guess it all depends on how much these aspects fall into the logical order of things.

My 2 cents.
RoguePoet01 (Programmer)
7 Nov 03 13:47
Thanks,

The more I learn about programming, the more I see the benefits of specialization and branching.  To me, a really well written piece of code is a thing of beauty.

It's always compact.  

It's always easy to modify and expand upon.  

It's always easy to "make go away" when you don't need it any more, and there are minimal if any repurcusions to other segments of code based on its absense.

Not that my code is always like this, of course, but when it is, I know I'm doing something right.
DrJavaJoe (Programmer)
7 Nov 03 13:49
Well said.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close