When to cut your losses and rewrite with a framework?
gruseom: There is research suggesting that when there is 80% or more overlap in requirements it makes sense to use a library and when there is 20% or more divergence it makes sense to write your own code. Obviously there's no precise way to measure such divergence, but I'd say that rule of thumb sounds about right intuitively.(I read about this in Robert Glass' Facts and Fallacies of Software Engineering.)