问题描述
我喜欢用DDD实现的中期发展。开发是由领域驱动,最为实际的应用部分。我们不依赖于基础架构,持久性和演示。听起来不错。但它没有商业价值。这里介绍了面向外部开发业务的BDD。我们没有前期域名设计(选择实体,价值对象,聚合)。我们采取用户故事,写一些场景并逐个实现。我们从应用的最可变的部分开始开发 - 从演示。我讨厌写脆弱的验收测试。那么,如果有人在BDD风格中应用了DDD的成功故事,请与我分享一下:)
$ ol
任何帮助将不胜感激。谢谢!
我提供(请原谅兔子的头灯外观,这是我的第一个视频)被埃里克·埃文斯的同事在BDD和DDD采访。
另外,您可以从我正在撰写的BDD书(希望还可以与丹))对第一章草案的一部分进行潜行预览:
希望这表明BDD和DDD的确非常好。欢迎所有的反馈,除了我的衣服感觉。
编辑:你是对的,该域是非常稳固的。这就是为什么我们专注于更有风险的东西,如演示和基础设施,并谈论我们对使用场景的域的理解。我们无法获得有关我们对域名理解的反馈意见,除非我们有机会获得 的反馈,但这并不妨碍我们寻求理解。
I like the middle-out development that is achieved with DDD. Development is driven by domain, the most solid part of application. We don't depend on infrastructure, persistence and presentation. That sounds good. But it has no business value.
Here comes business-focused BDD with outside-in development. We have no upfront domain design (choosing entities, value objects, aggregates). We take user story, write some scenarios and implement them one-by-one. We start development from most changeable part of application - from presentation. I hate writing fragile acceptance tests. Do you?
So, if someone here have successful stories about applying DDD in BDD style, please share some with me :)
- Do you write those fragile tests for presentation?
- Do you have some design upfront before creating part of domain for user story that is implemented? Or you refactor towards DDD patterns after implementing story?
Any help will be appreciated. Thanks!
I offer Dan North and myself (please excuse the rabbit in the headlights look, it was my first video) being interviewed by one of Eric Evans' colleagues on BDD and DDD.
Also you can have a sneak preview of a segment of the draft first chapter from a BDD book I'm writing (hopefully with Dan too):
Hope this shows that BDD and DDD work very well together indeed. All feedback welcome, except on my dress sense.
Edit: You're right, the domain is pretty solid. That's why we focus on the more risky stuff like presentation and infrastructure, and talk about our understanding of the domain using scenarios. We can't get feedback on our understanding of the domain until we have something to get feedback with - but it doesn't stop us seeking the understanding anyway.
这篇关于是否可以一起使用DDD和BDD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!