RSS 2.0 Feed
2004-12 Entries
摘要:在我们的网络应用里,我们需要生成新的Project Items模板,而且拥有新的扩展名(譬如".joy")。但我们希望由此产生的新文件(譬如"a.joy") 跟通常生成的"a.aspx"文件的行为一样,即,有设计视图,可以往上面拖控件,HTML视图支持Intellisense,等等。 我们参照了Chris Sells网站上Michael Weinhardt的文章,经过少许改动后,能够在VS.NET IDE里成功生成新的文件(a.joy)以及相应的code behind文件(a.joy.vb)。然后参照下面2个连接里的提示, http://weblogs.asp.net/ralfw/archive/2004/11/05/252865.aspx http://dotnetjunkies.com/WebLog/darrell.norton/archive/2004/04/21/11837.aspx (这个连接中的最后一个答复者遇到了跟我们一样的问题) 我们对注册表里下列的几个Key添加了对应的条目, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\EditorsHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\EditorsHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages 理论上讲,在编辑a.joy时,我们应该得到HTML编辑器,但我们得到的却是XML编辑器。 我们估计是注册表里的问题,所以我们试着改动注册表,几乎找遍了所有跟".aspx"有关的条目,都为".joy"添加了相应的条目,但我们得到的却总是XML编辑器。 感觉这不应该是个很难的问题,因为改动扩展名是很正常的事,譬如微软中国网站用的是“.mspx”。实际上,要运行的话,只要改动IIS里的应用影射,以及在machine.config或web.config里添加相应的httpHandler即可。 估计是我们的方法不对,这里高人甚多,特别是这里微软VS.NET产品组的朋友,如果能指点一下的话,不胜感激之致...[阅读全文]

posted @ | Feedback (20) |

摘要:James Rumbaugh,Grady Booch,Ivar Jacobson人称“Three Amigos”,基于他们各自的方法,博采众家之长,兼收并蓄,融会贯通,共同制定了统一建模语言(UML) N年前,当我开始我的新的职业生涯时,三位的大作 Object-Oriented Analysis and Design with Applications (2nd Edition)by Grady BoochPublisher: Addison-Wesley Professional; 2 edition (September 30, 1993) ISBN: 0805353402 Object-Oriented Modeling and Designby James R Rumbaugh, Michael R. Blaha, William Lorensen, Frederick Eddy, William PremerlaniPublisher: Prentice Hall; 1st edition (October 1, 1990) ISBN: 0136298419 Object-Oriented Software Engineering: A Use Case Driven Approachby Ivar JacobsonPublisher: Addison-Wesley Pub Co; 1st edition (June 30, 1992) ISBN: 0201544350 对我的影响多多。如今,时隔14年后,Rumbaugh终于更新他的经典名作了, Object-Oriented Modeling and Design with UML (2nd Edition)by James R Rumbaugh, Michael R Blaha, William Premerlani, Frederick Eddy, William LorensenPublisher: Prentice Hall; 2 edition (November 15, 2004) ISBN: 0130159204 Grady Booch大概不会步其后尘,因为他的宏大的《软件架构手册(Handbook of......[阅读全文]

posted @ | Feedback (9) |

摘要:Martin Fowler最近的一篇bliki,是关于今年的“面向对象编程,系统,语言,应用(Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA) ”大会的。 他谈到,在其中的一个研讨会上,他们重新评估了《设计模式》里的模式,认为在当前的形式上,工厂方法(Factory Method),桥( Bridge),享元(Flyweight), 和解释器(Interpreter)模式应该从经典模式中删除,而对单实例(Singleton) 与责任链(Chain of Responsibility)模式的看法则有分歧。删除的大概理由,有的是因为其涵义与常规用法不同,有的是因为不受欢迎,而其他的则是因为不常见或有其他更好的模式可以代替这些模式。 在TheServerSide.COM上看到一篇相关的帖子,Martin Fowler on changes to the Gang Of Four, and OOPSLA 在这篇bliki里,还提到了他支持的座谈会“.NET与Java交火(shootout)”,参加者包括Microsoft的Anders Hejlsberg和Don Box,Sun的John Crupi,IBM的Rob High,Cincom的Alan Knight。在eWeek上有个相关的报道,Programming Legends Debate .Net, J2EE...[阅读全文]

posted @ | Feedback (6) |

摘要:不知道有没有人有兴趣翻译这本书 Software Factories: Assembling Applications with Patterns, Models, Frameworks, and Toolsby Jack Greenfield, Keith Short, Steve Cook, Stuart Kent, John CrupiPublisher: Wiley; 1st edition (August 16, 2004) ISBN: 0471202843 微软的软件工厂,由于Visual Studio将来版本的支持,也许会带来软件开发新的Paradigm Shift 。 网上有关的资料:1. Software Factories -- Industrialized Software Development 2. .NET Architecture Center -- Software Factories3. Moving to Software Factories4. MSDN TV about Software Factories5. Keith Short's WebLog 6. Stuart Kent's WebLog 跟Visual Studio Team System有关的1. Visual Studio Team System -- Domain Specific Language (DSL) Tools2. Grady Booch Interview: IBM Rational: Rival Microsoft Faces Uphill Battle3. Rick LaPlante Interview: Microsoft's VSTS Goal: Creating a Mass Market for Enterprise Tools 一篇相关的发人深省的文章(来源:[Martin Fowler]): Language Oriented Programming:......[阅读全文]

posted @ | Feedback (38) |