PC Review


Reply
Thread Tools Rate Thread

Achieving code reuse

 
 
Simon
Guest
Posts: n/a
 
      23rd May 2004
Hi all,



I'm hoping that some of you clever chaps could offer me some advice on code
reuse.



You see, whenever I make applications, I typically only find very limited
scope for code reuse. I also only find limited use for inheritance. For
example, the various types of users that my system might have to deal with.



I'm wondering if anyone could give me some tips on how to identify areas of
my design that could be reusable, where I can use inheritance and where to
use interfaces. I've read all the books that talk about why these things are
important but very few of them show you how to do it in the real world.



If anyone could point me to some online resources on this then that would be
great. I could also do with a couple of books on how to spot reusable
aspects of my designs and so on.



Any help would be great



Thanks all



Simon



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      23rd May 2004
Hi Simon,

I think it is better to ask this question in a language group like
microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.csharp

Than you get probably an answer fit on the language you use.

Cor


 
Reply With Quote
 
Simon
Guest
Posts: n/a
 
      23rd May 2004
Oh Ok,

The reason why I asked here is because its a subject that seems to cross
language boundaries.

I'll put it in C Sharp as well though

Simon


 
Reply With Quote
 
Peter van der Goes
Guest
Posts: n/a
 
      23rd May 2004

"Simon" <sh856531@microsofts_free_email_service.com> wrote in message
news:(E-Mail Removed)...
> Oh Ok,
>
> The reason why I asked here is because its a subject that seems to cross
> language boundaries.
>
> I'll put it in C Sharp as well though
>
> Simon
>
>

As a reminder, if you want your message to go to a *limited* number of
groups, it's better to cross-post (put multiple groups in the Newsgroups
field) rather than multi-post (put separate identical messages in different
groups).
FWIW, I found your post in the academic group.
Cross-posting allows a reply in any group to be seen in all addressed
groups, and saves you the trouble of monitoring multiple posts for answers.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.


 
Reply With Quote
 
Sarfraz Hooda
Guest
Posts: n/a
 
      24th May 2004
I think its all about how you design your applications. Like what i am doing
in my applications is creating packages for different modules and using it
in my applications. For example I have created packages for security,
exception handling, utility (for sending emails and common tasks) etc which
i can reuse with little change or no change based on my application's
requiements.

I think before you start your application design you have to think about
reusability and generic object creation which can be reutilized in other
projects. I believe mostly support objects can be re-utilized among
different projects.

Regards,

Sarfraz



"Simon" <sh856531@microsofts_free_email_service.com> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
>
>
> I'm hoping that some of you clever chaps could offer me some advice on

code
> reuse.
>
>
>
> You see, whenever I make applications, I typically only find very limited
> scope for code reuse. I also only find limited use for inheritance. For
> example, the various types of users that my system might have to deal

with.
>
>
>
> I'm wondering if anyone could give me some tips on how to identify areas

of
> my design that could be reusable, where I can use inheritance and where to
> use interfaces. I've read all the books that talk about why these things

are
> important but very few of them show you how to do it in the real world.
>
>
>
> If anyone could point me to some online resources on this then that would

be
> great. I could also do with a couple of books on how to spot reusable
> aspects of my designs and so on.
>
>
>
> Any help would be great
>
>
>
> Thanks all
>
>
>
> Simon
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code reuse & SQL CLR saarcarmi@gmail.com Microsoft ADO .NET 1 12th Dec 2005 12:32 PM
Code reuse, code behind, and can't inherit since already inheritsPage Randall Parker Microsoft ASP .NET 2 1st Nov 2005 06:59 PM
Re: Code reuse Phil Winstanley [Microsoft MVP ASP.NET] Microsoft ASP .NET 0 24th May 2004 02:58 PM
Code reuse Simon Microsoft C# .NET 2 23rd May 2004 08:56 PM
Code reuse in C# Frank Oquendo Microsoft C# .NET 6 16th Dec 2003 10:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 PM.