代码之家  ›  专栏  ›  技术社区  ›  RHaguiuda

推荐的开源软件来研究C语言和设计模式(MVC和其他模式)[关闭]

  •  6
  • RHaguiuda  · 技术社区  · 16 年前

    我决定开始学习其他开发者的代码来提高我的编码技能。

    我正在寻找一个使用MVC模式的开源软件,以及大多数可能的设计模式。

    你能推荐一些用C或VB.NET编写的开源软件,尽可能多地使用设计模式,或者一些值得学习的代码吗?

    3 回复  |  直到 8 年前
        1
  •  3
  •   ckramer    16 年前

    I would recommend some projects like NServiceBus 广泛使用多态性(更不用说NService总线API是我使用过的最好的API之一)。也考虑一些类似的东西 StructureMap , which uses a model-based configuration API (I actually use Ninject 作为我的国际奥委会的选择,它也可以证明有一些有趣的代码。我很难指出这些项目是否使用特定的设计模式,以及它可以使用多少,但是我知道他们使用一些现代API和现代方法来进行面向对象的设计。

    I would say, though, that your best bet is going to be to find an open source project that you find interesting, or that you use regularly, and crack it open and see what makes it tick. If you are familiar with the details of using the code (whatever it may be), then you will probably gain more insight be looking at the code because you know what it is doing.

        2
  •  2
  •   Igor Zevaka    16 年前

    我总是推荐 .NET Domain-Driven Design with C#: Problem-Design-Solution 示例代码-Smartca项目。它的布局非常优雅,每当我对我的建筑有疑问时,我都会重新回到它上面。

    你也应该下载和退房。 ASP .NET MVC source code

        3
  •  1
  •   Matt DeKrey Kiran    16 年前

    我建议你去看看罗斯文的入门包( http://nsk.codeplex.com/ )-它涵盖了许多设计模式及其在.NET框架中的应用程序,包括SOA和MVC/MVP/PM概念。它还包括一些其他免费使用的库的例子,如微软实体框架和NHibernate。

    我个人对它们显示相同后端可以用于WPF和ASP.NET的方式特别满意。

    推荐文章