Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Quel patron de conception dois je utiliser si je veux reduire ma dependendance vis-a-vis des plates formes logicielles et materielles sous jacentes?

By google translate it gives

What design pattern should I use if I want to reduce my dependendance vis-a-vis software platforms and material underlying?

Can anyone tell me with example?

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 18-Dec-12 19:35pm    
No, I don't think so. It depends. And design patterns themselves do not solve the problem where a brain is needed.
—SA
[no name] 18-Dec-12 21:27pm    
Design Pattern contains solutions to solve the general problems in business environment...
Sergey Alexandrovich Kryukov 19-Dec-12 4:04am    
And? What you say is not 100% accurate: they are generally somewhat more universal than that, and yet, they are not fundamental concepts, more of a practical design and architectural templates. And I see from practice that they are often abused and misused.
—SA

1 solution

Design pattern – Inversion of control and Dependency injection[^]
That's a good article on the topic.

What I sometimes do, is to wrap service providers in a singleton, which I then can call static.
Singleton Pattern in Java[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900