At what point do you decide that some of your routines and common code should be placed in a class library or DLL? In one of my applications, I would like to share some of my common codes between different projects (as we all know, this is sin programming to duplicate code ).
The vast majority of my code is within the same project. I also have one small utility that is split into a main executable that works with elevated permissions for a single purpose. These two elements have at least three subroutines. Should these general routines be placed and called from the class library? How do you decide when to do it? When do you have at least one common subroutine? Twenty plus lines of code?
I don’t think it should be language dependent or structure dependent, but if so, I use the .NET framework.
source
share