Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

reusable coding and programming?

Thread view: 
Kevin - 31 Mar 2006 06:06 GMT
Hello!~

To make a program or some classes / functions better reuseable (or
other people can easily build their code on them), what are the major
points to pay attention to? Any "fast cooking list and recipe" for it?

Thanks a lot.
Niels Dybdahl - 31 Mar 2006 07:49 GMT
> Hello!~
>
> To make a program or some classes / functions better reuseable (or
> other people can easily build their code on them), what are the major
> points to pay attention to? Any "fast cooking list and recipe" for it?

- A welldocumented interface
- Default settings that work, so that you do not have to call numerous
"set..." functions to make it work with the simplest task
- Code examples on how to make it work

Niels Dybdahl
Deeva Tatiana - 31 Mar 2006 08:07 GMT
+1

And remember: other programmers (which want to re-use Your classes or
libraries),  can make mistakes (and You too, of course)!

So, try to make Your classes and libraries "foolproof" as much as possible.

Signature

Best regards,
Jana.

> > Hello!~
> >
[quoted text clipped - 8 lines]
>
> Niels Dybdahl
Wibble - 31 Mar 2006 13:03 GMT
> +1
>
> And remember: other programmers (which want to re-use Your classes or
> libraries),  can make mistakes (and You too, of course)!
>
> So, try to make Your classes and libraries "foolproof" as much as possible.

Don't spend alot of time making something reusable
that wont really ever be reused.  It make take
alot less time to refactor the small amount of
code to be resused than to make everything reusable.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.