Coder Social home page Coder Social logo

pe's People

Contributors

bawfen avatar

Watchers

 avatar

pe's Issues

Enforcement of numerical parameters not consistent

Though the documentation states that the numerical inputs are enforced to be within 0 to 99,999,999:
Screenshot 2023-04-14 at 4.57.49 PM.png

It allowed a upc value of 9999999999 (9,999,999,999):

Screenshot 2023-04-14 at 4.58.46 PM.png

But does not allow a price value of the same magnitude

image.png

Or a quantity value
Screenshot 2023-04-14 at 5.01.20 PM.png

Inconsistency in "help" command format

The output of the help command is slightly inconsistent when it comes to the format of parameters.
UPC here is meant to be the UPC of the items in the inventory list, but is shown without square brackets unlike the output of the remove command
Screenshot 2023-04-14 at 5.20.47 PM.png

Here, "cat table" and "cat list" are what the user is meant to key in.
Screenshot 2023-04-14 at 5.22.10 PM.png

Unexpected result in filter after adding in an item with price less than 0.01

The system allows you to add items with prices below 0.01 (with 3 decimal places)
Screenshot 2023-04-14 at 4.33.10 PM.png

When calling filter, it returns the result when using the query "filter f/price p/gt 0"
Screenshot 2023-04-14 at 4.29.09 PM.png

While it is technically correct to return this to the user, I believe that it might be confusing as the amount shown in the result is equal to the "0" which was queried.

Perhaps it might be better to return an error when adding the item or show more decimal places in the filtered result?

No error message when including f in numerical input

When including an f in the price for the "filter" command, it does not return an error as expected for a non-numerical input.
Screenshot 2023-04-14 at 4.39.58 PM.png

An error message is included for the "add" command.
Screenshot 2023-04-14 at 4.41.20 PM.png

Perhaps it would be good for the handling of "f" to be consistent across both commands?

Unexpected result in list when adding an item with price below 0.01

When adding an item with price 0.001 (less than 2 decimal places) the system accepts it.
image.png

When calling list, it is shown to the user as $0.00
Screenshot 2023-04-14 at 4.28.06 PM.png

Perhaps it might be better to either throw an error if the price is below 2 decimal places, or display the additional decimal places in the search result?

Overall Sequence Diagram is inaccurate

The documentation here claims that the user calls the "run" command at startup, which instantiates the program.

Screenshot 2023-04-14 at 5.37.26 PM.png

However, according to the code, the static main function is the one that is called to create a new instance of the MagusStock Class, whose "run" command is then called.
Screenshot 2023-04-14 at 5.35.14 PM.png

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.