GithubHelp home page GithubHelp logo

Comments (7)

lanthony42 avatar lanthony42 commented on August 10, 2024

Basically, we need to nail down the flow of data / control in our application.

from course-project-aarves.

rebplane avatar rebplane commented on August 10, 2024

"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.

lanthony42 avatar lanthony42 commented on August 10, 2024

We should have another issue for sorting out UI Clean Architecture

from course-project-aarves.

lanthony42 avatar lanthony42 commented on August 10, 2024

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.

rebplane avatar rebplane commented on August 10, 2024

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.

lanthony42 avatar lanthony42 commented on August 10, 2024

We need to add them so that our code adheres to Clean Architecture.

from course-project-aarves.

lanthony42 avatar lanthony42 commented on August 10, 2024

Discussion moved to #43.

from course-project-aarves.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.