Comments (2)
I'm on the fence on this, I'm not a huge fan of the pkg directory due to the extra level of indirection. Your arguments are valid though, so I would open this up for discussion.
from goddd.
mattermost Have a pretty neat app structure that follows DDD principles (I guess you can say that it also follows the clean architecture).
They have a model directory, it contains lots of file, that if would have been in the in the top level of the folder structure hierarchy would confuse you, and make you search for the README.md, or anything else that is related to the distribution of the project.
An even better name to what i proposed would be like in the project of Mattermost, to name the directory that holds all of the domain layer files, "model".
Descriptive name of what it contains and leave the first directory clean of confustion.
from goddd.
Related Issues (20)
- Does the implementation of routing service really belong to booking? HOT 1
- RequestPossibleRoutesForCargo returns domain objects HOT 1
- Application services use both DTOs and domain objects HOT 3
- routing package contains both domain and infrastructure
- Improve test suites HOT 1
- inspection.EventHandler needs implementation
- Adopt a package management tool / makefile HOT 3
- Idiomatic way of attaching authentication HOT 6
- Add validation of domain objects HOT 10
- Examples using SQL and relational models. HOT 8
- improving package names HOT 4
- Question about aggregates HOT 2
- Docker example failure to start. HOT 1
- Returning interfaces? HOT 3
- Database transactions HOT 4
- invalid memory address or nil pointer dereference
- Use forms in POST requests
- http://dddsample.marcusoncode.se/docs/ HOT 2
- Extract server package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goddd.