Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been doing quite a lot of refactoring of C++ and C# code recently, and found that 90% of the patterns I use are:

  • Template method
  • Factory
  • Singleton

Are these generally the most commonly used patterns in refactoring or is it just me? Can you share your refactoring experiences?

share|improve this question

closed as not constructive by Mark Trapp Feb 16 '12 at 6:40

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

We're using a lot of pub-sub, facade (oh man this is useful to make readable code), templating lately. We hardly ever use Singleton, but that's because DI has taken care of all of that.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.