polygoncell
发贴: 14
积分: 2
|
于 2005-11-21 21:26
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
|