Personally, I would start with Robert C Martin's Agile book, and Eric Evan's book on Domain Driven Design. Those are theory books, but Uncle Bob's book specifically talks about revamping code to be manageable, just like your situation.
It's pretty essential to layer your software so you can start to remove dependencies, which will make everything very simple and easy to maintain.
I am a database guy, so I started with a good ORM like Entity Framework or Fluent NHibernate. I prefer websites, so I went with ASP.NET's MVC 2, then started writing all the parts of those books, namely a data Repository, Services to pull data and Control to push it. MVC is a very nice separation of data concerns and "View" concerns which are your screens. Before long, you would have very clean and easily maintained software.
If you are using VS 2010, you can see a menu with the name: Architecture. Using this tool, you can create a dependency graph of your application, you can use it as described in the following:
发布评论
评论(2)
就我个人而言,我会从 Robert C Martin 的《敏捷》一书和 Eric Evan 的《领域驱动设计》一书开始。这些都是理论书籍,但鲍勃叔叔的书专门讨论了修改代码以使其易于管理,就像您的情况一样。
对软件进行分层非常重要,这样您就可以开始删除依赖项,这将使一切变得非常简单且易于维护。
我是一名数据库专家,所以我从 Entity Framework 或 Fluent NHibernate 等优秀的 ORM 开始。我更喜欢网站,所以我选择了 ASP.NET 的 MVC 2,然后开始编写这些书籍的所有部分,即数据存储库、提取数据的服务和推送数据的控件。 MVC 很好地分离了数据关注点和“视图”关注点(即屏幕)。不久之后,您就会拥有非常干净且易于维护的软件。
Personally, I would start with Robert C Martin's Agile book, and Eric Evan's book on Domain Driven Design. Those are theory books, but Uncle Bob's book specifically talks about revamping code to be manageable, just like your situation.
It's pretty essential to layer your software so you can start to remove dependencies, which will make everything very simple and easy to maintain.
I am a database guy, so I started with a good ORM like Entity Framework or Fluent NHibernate. I prefer websites, so I went with ASP.NET's MVC 2, then started writing all the parts of those books, namely a data Repository, Services to pull data and Control to push it. MVC is a very nice separation of data concerns and "View" concerns which are your screens. Before long, you would have very clean and easily maintained software.
如果您使用的是 VS 2010,您可以看到一个名为:架构的菜单。使用此工具,您可以创建应用程序的依赖关系图,您可以按如下所述使用它:
If you are using VS 2010, you can see a menu with the name: Architecture. Using this tool, you can create a dependency graph of your application, you can use it as described in the following: