Need architectural advice...

B

Bobby Edward

I have a large APS.NET website with 3 tiers (BLL, DAL, UI).

The client now wants a 2nd website that is 80% similar to the first.

I would prefer to maintain "common code" in 1 place and avoid redudancy. Do
you have any suggestions as to how to approach this new website?
 
C

Cowboy \(Gregory A. Beamer\)

Not sure why my other answer is not appearing for me, but I will state again
in shorthand.

Refactor the dupes into core libraries that are used across both projects.
Do thsi as you find them. Hopefully you have unit tests around all of your
functionality, so you can make sure the refactor does not cause issues and
you should be under source control.

The other option is to branch code, but you still end up with two code
bases, which is not good. You can merge later, if that is the direction, but
refactoring to common libs is better.
 
S

sloan

80% of the BLL is the same?
or 80% of the webpages are the same?

.........

While alot of people say " I have a true BLL ", alot of times things have
been coded into the presentation layer that doesn't belong there.
My general rule of thumb "If I had to make a winforms application of this
same product...would I have to duplicate that code in the winforms
presentation layer?"
So push everything you can DOWN to the BLL.

I would recommend a used copy of this book:
http://www.google.com/products/cata...n&cid=1483841699545751105&sa=title#ps-sellers

Its 1.1. You don't want it for the code samples.
You want it for the discussion for the mindset of how to develop intermal
frameworks.
 
B

Bobby Edward

Both. :)

sloan said:
80% of the BLL is the same?
or 80% of the webpages are the same?

........

While alot of people say " I have a true BLL ", alot of times things have
been coded into the presentation layer that doesn't belong there.
My general rule of thumb "If I had to make a winforms application of this
same product...would I have to duplicate that code in the winforms
presentation layer?"
So push everything you can DOWN to the BLL.

I would recommend a used copy of this book:
http://www.google.com/products/cata...n&cid=1483841699545751105&sa=title#ps-sellers

Its 1.1. You don't want it for the code samples.
You want it for the discussion for the mindset of how to develop intermal
frameworks.
 
B

Bobby Edward

Thanks. I'm not sure what refactoring is but I will research it. Thanks
again!
 
G

Guest

I have a large APS.NET website with 3 tiers (BLL, DAL, UI).

The client now wants a 2nd website that is 80% similar to the first.

I would prefer to maintain "common code" in 1 place and avoid redudancy.  Do
you have any suggestions as to how to approach this new website?

I think, it would depend on how the second project would go. Say, you
would need to add a function to the second project which does not
exist, or overcomplicate the first one. I would prefer to maintain
"common code" too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top