Skip to content

Commit cf74c3e

Browse files
authored
Merge pull request #5 from stevejgordon/DevelopmentGuidelines
Adding initial page for developer guidelines concept
2 parents f695b65 + d05b676 commit cf74c3e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

development-guidelines.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: default
3+
---
4+
5+
# Development Guidelines
6+
7+
*These guidelines are based on the experience with the allReady project. These have been very helpful for us on this project, but may not be applicable to every project. We'll update these as we onboard other projects.*
8+
9+
## Conventions and Patterns
10+
11+
### Mediatr Components - Naming Conventions
12+
13+
The project has adopted a CQRS pattern using the Mediatr library. We have discussed ([read discussion](https://github.com/HTBox/allReady/issues/1262)) the naming for these components and agreed that we will *not* suffix them with "Async".
14+
15+
**Commands:**
16+
17+
A command message should end with "Command" and descibe the action that is intended. e.g.
18+
19+
- EditCampaignCommand
20+
- DeleteTaskCommand
21+
22+
The handlers should match the command message name with the suffix of "Handler". e.g.
23+
24+
- EditCampaignCommandHandler
25+
- DeleteTaskCommandHandler
26+
27+
**Queries:**
28+
29+
A query message should end with "Query" and describe the data it returns. e.g.
30+
31+
- EventSummaryQuery
32+
- TaskDetailQuery
33+
34+
The handlers should match the query message name with the suffix of "Handler". e.g.
35+
36+
- EventSummaryQueryHandler
37+
- TaskDetailQueryHandler

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ <h2><a href="/finding-a-task.html">Finding a Task</a></h2>
2727
<h2><a href="/getting-the-code.html">Getting the Code</a></h2>
2828
<h2><a href="/building-the-project.html">Building the Project</a></h2>
2929
<h2><a href="/doing-the-work.html">Doing the Work</a></h2>
30+
<h2><a href="/development-guidelines.html">Development Guidelines (Conventions and Patterns)</a></h2>
3031
<h2><a href="/submitting-a-pull-request.html">Submitting a Pull Request</a></h2>
3132
<h2><a href="/responding-to-reviews.html">Responding to Reviews</a></h2>
3233
<h1>FAQ</h1>

0 commit comments

Comments
 (0)