问题描述
如果你是上帝,并且能够向C ++开发人员询问
是否他们对设计模式有充分的了解,那将是什么? >
你问?
亲自,我会问他们这个....
1)有什么好处? *
C ++背景下的构建器模式的结果?
2)工厂和抽象工厂之间有什么区别
模式?你能给出一个与C ++相关的具体例子吗?
3)在什么情况下你会使用装饰模式?什么
它比其他方法有什么好处?
4)给出一个*具体*示例,其中flyweight模式权重在哪里
另一种策略,再次在C ++的背景下
你会对上述问题回答什么?
你能否想到其他具有挑战性的问题呢? />
对话?再次在C ++和设计模式的上下文中?
也许这可以被认为是修改课程的设计模式
和C ++ ........... 。
欢呼
格雷厄姆
Hi,
if you were god and were in the position to ask a C++ developer
whether they had a full understanding of design patterns, what would
you ask?
personally,I would ask them this....
1) What are the *benefits* of the builder pattern in the context of
C++?
2) What''s the difference between the factory and abstract factory
pattern? Can you give a concrete example thats relevant in the context
of C++?
3) Under what circumstances would you use the decorator pattern? What
are it''s benefits over other approaches?
4) give a *concrete* example of where the flyweight pattern outweights
another strategy, again in the context of C++
What would you answer to the above questions?
Can you think of other challenging questions that would engender good
conversation? Again in the context of C++ and design patterns?
maybe this could be considered a revision course wrt design patterns
and C++............
cheers
Graham
推荐答案
男人,我只是从我的
软件工程课上扔了一整片热门雨林。现在那是浪费的纸。
-
不可饶恕
Man, I just threw a whole rainforest of handouts out the door from my
Software Engineering class. Now that was wasted paper.
--
Unforgiven
如果我是上帝,我就不需要C ++开发人员了。
如果我想要一个程序,我只是说,让那里有代码。
并且有代码,上帝看到它很好......
-Mike
然后上帝制造了虫子。该死的!
If I were God, I''d have no need for C++ developers.
If I wanted a program, I''d just say, "Let there be code".
"And there was code, and God saw that it was good..."
-Mike
"And then God made bugs." Damn!
这篇关于如果你是上帝.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!