Comments (7)
Basically, we need to nail down the flow of data / control in our application.
from course-project-aarves.
"Are entities basically just in-memory data storage for convenience more than anything?"
Pretty much, yes.
The way I see it, the entities are mapped onto the database (each entity is stored in the database, the database only contains the attributes of the entity, so it's pretty much a one-to-one mapping).
On program startup, the data is loaded to entities to be able to modify them and use them (otherwise we would always need to go back to the database class through a gateway and sift through the information for what we need, rather than what we have now - controller -> use case -> entity to just grab what information we need/modify it).
DTO (if I understand it correctly) is an object that carries/transfer the data between processes - it does not have any uses other than simply serialization and deserialization. In comparison to entities, they do not contain any business logic.
"Basically, we need to nail down the flow of data / control in our application."
I agree though. We'll use the other issue to discuss further on data transfer. We also need to figure out how we are presenting the data as well (which UI design pattern - MVP, MVC, MVVM? Are we doing this already?).
from course-project-aarves.
We should have another issue for sorting out UI Clean Architecture
from course-project-aarves.
The main issue is trying to differentiate DTOs and entities in our code to justify their (DTOs) existence as not just repeated code. Meaning, what exactly should our entities have in terms of "business logic"? Right now it seems a bit sparse.
from course-project-aarves.
We have the entities ReviewList and AccountList, the databases accounts.json, reviews.json.
Just to clarify, what are the DTOs in our code right now, or have we yet to add them into our code?
from course-project-aarves.
We need to add them so that our code adheres to Clean Architecture.
from course-project-aarves.
Discussion moved to #43.
from course-project-aarves.
Related Issues (6)
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 course-project-aarves.