Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs
Then refactor properly. Open/Closed principle.
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs
Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs
Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs
[)roi(];16936037 said:Doubtful this ever happens; the object graph would differ. Generally the stuff that falls into the category of reusable code is stdlib extensions and I reuse the same ones between clients mainly because I know they work and save time.
Re the OP, got the impression that he was just looking for a place to store interesting bits of code.
[)roi(];16936037 said:Doubtful this ever happens; the object graph would differ. Generally the stuff that falls into the category of reusable code is stdlib extensions and I reuse the same ones between clients mainly because I know they work and save time.
Re the OP, got the impression that he was just looking for a place to store interesting bits of code.
You probably know this, but for those that don't; it's dangerous to just assume that everything on "StackOverflow, CodeProject, etc" is good and reliable code.When I find a code snippet that I need on StackOverflow, CodeProject, etc and I am using it in a project, I more often than not plug it into my class libraries first and then just use it as my classlibs are already included in my projects...
Excellent.Exactly this.
[)roi(];16937169 said:You probably know this, but for those that don't; it's dangerous to just assume that everything on "StackOverflow, CodeProject, etc" is good and reliable code.
I often cringe at the stuff that get's proposed and/or accepted as solutions.