如果你是上帝..... [英] if you were god.....

查看:82
本文介绍了如果你是上帝.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如果你是上帝,并且能够向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

推荐答案



嗯,我不知道你的上帝,但我已经知道开发商

做了什么或者不知道。也许你的意思是我是雇主? :-)


(我个人不会问这些问题,因为*我*没有完整的

对设计模式的理解,我不能很好地回答他们。)


-Howard

Well, I don''t know about your God, but mine already knows what the developer
does or doesn''t know. Perhaps you mean if I were an employer? :-)

(I wouldn''t ask the questions, personally, because *I* don''t have a full
understanding of design patterns, and I can''t answer them well myself.)

-Howard


" grahamo" < GR ************ @ hotmail.com>在消息中写道

news:79 ************************** @ posting.google.c om ...
"grahamo" <gr************@hotmail.com> wrote in message
news:79**************************@posting.google.c om...


如果你是上帝,并且能够向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?




男人,我只是从我的

软件工程课上扔了一整片热门雨林。现在那是浪费的纸。


-

不可饶恕



Man, I just threw a whole rainforest of handouts out the door from my
Software Engineering class. Now that was wasted paper.

--
Unforgiven


" grahamo" < GR ************ @ hotmail.com>在消息中写道

news:79 ************************** @ posting.google.c om ...
"grahamo" <gr************@hotmail.com> wrote in message
news:79**************************@posting.google.c om...


如果你是上帝,并且能够向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?




如果我是上帝,我就不需要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!


这篇关于如果你是上帝.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆