[Project organization] some advices

3 篇文章 0 订阅

/*By Dylan SUN */

I’ve been worked recently on the project structure refactoring. A good project structure could give you a good visibility and a clear understanding even you are brandly new in a project, and make your further development much easy.

Some practices could be applied to increase the project maintainability and facilitate the development in the team if there are multiple projects and multiple solutions.

I would like to introduce some advice based on my own experience.

  1. Manage common package (using Nuget)
    It’s very practical when you have multiple solutions in your team. You can manage to use the same version of tools or packages in the whole application to ensure the consistence.

  2. Separate projects with sub-folders physically and create identical virtual folders.
    For example, you can organize your solution with the following sub folders.

2.1 ExternalReferences: all your references from other solutions.
2.2 Libraries: your projects shared to all layers
2.3 PresentationLayer: this could be ASP.NET projects, WPF projects,Window Forms projects.
2.4 ServiceLayer: it contains different services to provide different functionalites to presentation layer.
2.5 BusinessLayer: it includes business logics.
2.6 DataAccessLayer: a centric layer to manager all the data access in your projects
2.7 UnitTests: include your unit tests
2.8 IntegrationTests: as integration tests could be complicated and take long time. It’s preferred to have a dedicated project for it.

The project organization really depends on the product you are developing. A good project organization can make your development much easier. So before development a project, take a little time to well conceive its organization.

I hope you find this article helpful! Thanks.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值