Reputation:
There's been some chatter on the ddd-cqrs list about people using Resharper live templates to help take care of the boilerplate code that you get when doing CQRS dev.
Is this the best way to overcome the boilerplate madness and does anyone have any they'd like to share with the community?
Upvotes: 0
Views: 238
Reputation: 14097
CQRS at its most basic is about keeping your queries and your commands separated. A concept this simple shouldn't actually require any boiler plate code (hence the backlash against frameworks on the ddd-cqrs list).
That said, CQRS with Event Sourcing DOES have quite a bit of boiler plate code you need generated. And like all code that is repetitive in nature using something like ReSharper live templates sounds like a great idea.
The problem will be if usage of the templates stops people from improving things or changing how things are done. The templates should be considered as living things that need to be maintained and cared for so that you're not afraid of improving your implementation.
Upvotes: 0