Save & Index My Code

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.
 
Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs

Fair enough, but this is almost never the case unless you code a lot of Wordpress sites for clients or something. Or am I missing something obvious?
 
Save & Index My Code

Because he might use them almost like abstract classes where each function is more or less the same but changes per client needs

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.

Probably. But google is probably better at finding it.

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. I have organised my classlibs to have similar structure and relevance to the .Net framework. E.g.

MyCompany for general stuff
MyCompany.Data for my own db stuff
MyCompany.Data.Oracle for my own Oracle db stuff
MyCompany.Windows.Forms for my own Winforms controls
etc
etc

Makes for great re-use
 
[)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.

Exactly this.
 
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...
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.
 
[)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.

Sure, I first bring it up to our standards i.e. naming conventions, structure, SOLID and QC before it gets integrated.
 
Top
Sign up to the MyBroadband newsletter
X