In general, what would make your program more maintainable?
I know a lot of folks that make heavy use of Singletons, but that seems like a cop-out, which creates a kind of global junk drawer organization.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Judging from some SO threads, a lot of folks don’t like Singletons, for good reasons. See
Chain of Responsibility sounds better in general, since it allows different handlers to each take its turn in dealing with the event, so it is a much more flexible approach.
Without more details, it is hard to give a more concrete answer.