English 中文(简体)
几辆大型或多辆小卡车[闭门]
原标题:few big or many small dlls [closed]
  • 时间:2011-03-17 18:47:04
  •  标签:
  • .net
Closed. This question is opinion-based. It is not currently accepting answers.

我们正就如何设计我们的申请进行讨论。

发挥相对较大的作用,或使用大量专用车。

有时我们在不同的产品中使用我们的lls。

What is common practice with it under .net environment.

时机是否确实如此不同?

最佳回答

我从未真正把这么多的“参考点 = 坏”概念买到。 NET开发商似乎真的。 我真诚地认为,更好的分离是一件好事,特别是当你们为其他项目重新使用你的法典而受益时。

如果你看看铁路或达詹戈社区,那就非常令人鼓舞,甚至有点期望你将你的申请分成小部分可再使用。 确实有 t,但有许多好处。 你们的法典往往比较干净,因为你们不得不在逻辑单位思考问题。

页: 1 NET社区,我亲眼看到许多民间人士只是想把一切都 c为一片独一无二的DLL,我认为这是错误的。 为什么项目参考资料不准确? 为什么每个图书馆都处理自己的独特任务是坏的? 答案是,它根本不是坏的。 我们应当把关切和南盟原则分开。

问题回答

时机是否确实如此不同?

这实际上不应成为决定因素。 相反,重点是贵产品如何使用贵图书馆的功能,以及不同图书馆的逻辑分离。

我本人将根据使用情况设计你的班级图书馆结构。

有两个相互竞争的目标,适当的平衡取决于你如何利用图书馆。

  • Less separation (fewer libraries) usually leads to easier development and easier maintenance.
  • More separation (more dlls) leads to more flexibility, and potentially smaller deployments as different products can pick and choose what they want.

I tend to favor having as few of libraries as possible, provided each library s "functionality" is generally unique. If a large dependency is required, I will try to keep that isolated into a library to avoid having to deploy that dependency.

我们的公司最初采取的方法是,使许多DLLs公司参与进来。 我们发现,它造成了严重的维修问题。 现在,我们正向较少的DLLs迈进。 这意味着,如果不同产品使用我们共同的成分,他们往往比他们可能需要多班级,但这不是一个可怕的问题。

这里没有真正的具体答案。 总的来说,它有利于更小的/松散的加在一起模块,而很少加紧的单一语言模块。 从个人角度讲,我担心的是,与你的申请的设计/结构相比,管理费并不真正重要。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签