Giter Site home page Giter Site logo

gardenofeden's People

Contributors

imanzahid avatar kamilaalv avatar shinigamieyesonyou avatar yunogasasi9862 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gardenofeden's Issues

Is expired

DO NOT IMPLEMENT THIS

Items would need a boolean expired
Getter isExpired

It will be set automatically according to the date from the database

For now, we just need to add it

Do not add it to parameter lists of constructors

Assign Item Ids automatically

We need a method in some common interface(which needs to be created) to assign ids.

Ids for flowers, jewelry, and bouquets must be differentiable somehow (for example flower 0 - 100, bouquet 100 - 200, jewelry 200 - 300)
This is just an example in reality we would need more ids for flowers than for bouquets cuz bouquets consist of flowers.

U can add some constants in the options class for max num of ids for each type.
Also, u would need to keep track of the last id for each type

Ids should be reusable if u reached max, start from zero.

Constructors should be changed:

  1. Ids in parameter lists should be deleted.
  2. Call the method to assign id

Ps. Bouquets do not have ids in our implementation but I think we might need them for orders in the future. This is debatable. But we definitely need to assign ids for all items.

Suggestions

//THESE ARE JUST SUGGESTIONS

Bouquet
1.No need to keep track of wrapping paper colors in the bouquet (I have them in ItemOptions)
2. No need for separate prices for each color
3. What is BouquetsCreated (Is its purpose keeping track of the same bouquets in one cart or?)(same questions for the similar fields)

Suugestion 2

fakeorReal() method in flower jewelry is meaningless

Future

Item System should be used as a class for the Cart

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.