[Openstack] 回复: Python Design Patterns in OpenStack

卐天卍 54linhao at gmail.com
Fri Feb 28 01:55:28 UTC 2014


Thanks Dustin,


Actually, my friends learn design patterns from the source code like Java design patterns in Android.

They also learn it from some technical blogs! But after searching "openstack design patterns" in google, there is no useful information.


I am wondering whether the openstack developers will take some notes relevant to design patterns.
I think it can help the beginners to read openstack source code.




------------------ 原始邮件 ------------------
发件人: "Dustin J. Mitchell"; 
发送时间: 2014年2月27日(星期四) 晚上9:38
收件人: "54linhao"<54linhao at gmail.com>; 
抄送: "openstack"; 
主题: Re: [Openstack] Python Design Patterns in OpenStack



----- Original Message -----
> Hi, guys:
> I am learning Python and Design Patterns, I want to know how Design Patterns
> can be used in real world project especially python project.
> 
> I know OpenStack is developed using python. So is there some materials of
> Design Patterns used in OpenStack?

Design patterns tend to be fairly abstract concepts, and become part of the general design of a project, rather than being documented explicitly.  So it may be more instructive for you to look for them yourself.

As an example, the way that managers are specified in the configuration files to change the behavior of services is an example of a pattern - which one?

You may also want to look at some smaller Python projects - perhaps discovered by shopping around the cheese shop - to see where they have or have not used patterns, and maybe even practice applying a pattern or two where you think it would improve the project.

Dustin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140228/c6dd3c24/attachment.html>


More information about the Openstack mailing list