Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 [Re:polygoncell]
polygoncell





发贴: 14
积分: 2
于 2005-11-21 21:26 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
thanks for the useful reply! That is great! Now we got more Knowhow about the Factory.

I knew that the GOF book is old, I have also written it in my doc. But, The Patterns discussed here are written and rewritten in so many new books, they are not old. And the books that I suggested are written in the last few years, on in 2001, the other in oct. 2004. I knew there are many other Patterns category, but I have never heard from Martin Fowler that his category is ADVANCE one, than the GOF, as you said.

As you said "Another reason on this is the communication", that is absolutely correct. That is one of the important reason that we use the Patterns. Maybe there is no problem for you guys using "static factory" for the meaning of "static factory method", but, when you write your words down and try to communicate with anyone in the world, that will make confusion. The words, here used, should be globally acceptable and clearly understandable. The same reason that we can use "社经" for "社会经济学" ONLY in the campus. We use "CS" for "computer science" in IT branch but for "count striker" for gamers. We do not wanna any newbies get cofusion do we?

All your references show nothing else as making the methods static. And All benefits of "static factory method" we got here are the benefits of "static method". In my personal opinion, it is just a variant of factory Pattern and can not be accepted as a pattern. As I searched the whole web, I did not find anyone who says that the "static factory method" is another pattern.

Anyway, your reply is very useful. I really appreciate it.


polygoncell edited on 2005-11-21 22:20


CJSDNer6月14日北京聚会花絮

话题树型展开
人气 标题 作者 字数 发贴时间
18281 关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 polygoncell 6150 2005-11-19 20:56
14898 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 floater 207 2005-11-20 02:29
15125 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 polygoncell 54 2005-11-20 17:21
14989 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 floater 428 2005-11-20 22:52
15224 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 polygoncell 713 2005-11-21 01:39
15179 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 polygoncell 410 2005-11-21 02:12
14763 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 floater 3316 2005-11-21 03:33
16596 Re:关于Factory, Abstract Factory, Factory Method, 和Builder模式的思考 polygoncell 1601 2005-11-21 21:26

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923