dry

DRY without having single code?

i want to not repeat myself (DRY), but i cannot have a single piece of code. For example here is code repeated 3 times with the same bug: class StarWars : Movie { //Calculate "base ^ exponent" public float Power(float base, float exponent) { return (base * exponent); } } class Customer: Object { //Calculate "base ^...

How to implement DRY principle in ASP.NET web app

Hi, I'm soon to kick off a web app using ASP.NET that allows for the manual entry of new data and update of existing data. The company has an existing template that uses a 3 tier structure with standard user interface, business layer and data layer. However they may go with ASP.NET MVC2 if they can find a good enough reason to switch fro...