Giter Club home page Giter Club logo

ped's Introduction

Hello! I'm Wei En, an undergraduate at the National University of Singapore studying Computer Science and Mathematics. I'm currently interested in statistical learning theory and its applications towards robust and efficient machine learning methods, as well as integrating other areas of theoretical computer science into machine learning.

Outside of research, I take an avid interest in open source software engineering and am also passionate in education initiatives targeted at improving access to opportunities for the less privileged. In my free time, I like to brew a fresh cup of coffee/tea, listen to music, and occasionally indulge in other recreational activities!

ped's People

Contributors

wei2912 avatar

Watchers

 avatar  avatar

ped's Issues

`add` command accepts overly short phone numbers

The add command allows users to input phone numbers which are overly short, e.g. 3-digits long, and would not be valid Singaporean phone numbers. This may cause data integrity issues.

Steps to Reproduce:

  1. Run add -c Tom -pn 123

Expected:

  1. Command returns an error message explaining that the phone number is too short and should be a 8-digit number (assuming Singaporean phone number).

Actual:

  1. Command accepts the invalid input and creates the client as requested.

image.png

`add` command accepts emails with improper domain names

The add command accepts emails with improper domain names, e.g. localhost, which cannot be used in practice to email people. This can cause data integrity issues.

Steps to Reproduce:

  1. Run add -c Tom -pn 12345678 -e tom@localhost

Expected:

  1. Program outputs an error message explaining that localhost is not a valid domain name.

Actual:

  1. Program accepts invalid email input.

image.png

`add` command outputs "Unknown command" when `-c` is not specified

The add command outputs "Unknown command" when a negative number is passed to -c, which is misleading to users as it suggests that the add command does not exist.

Steps to Reproduce:

  1. Run add -n Alex -pn 1 (note that -n is in place of -c)

Expected:

  1. Program prints "Invalid command format" with the relevant help message for the add command.

Actual:

  1. Program prints "Unknown command".

image.png

Client/Product ID does not match number shown in list

The number associated with each product, as shown in the product list, does not match the actual Product ID. This is because the numbers associated are 1-indexed while the actual Product IDs are 0-indexed. This mismatch between the Product ID and number can lead to confusion and increase the chance of erroneous inputs from users.

Steps to Reproduce:

  1. Select the "Products" tab.
  2. Add a new product, e.g. add -p Clip -$ 1 -q 20.

Expected:

  1. A new product should be created, with its number in the product list matching its ID.

Actual:

  1. The number associated with the product in the product list is 1 more than its ID.

Screenshots:

image.png

(Note that the number shown in the list is 6, while the product ID is 5.)

Remark: This issue also applies to Client IDs.

Some commands return "Unknown command" when called without parameters

Commands requiring at least one parameter, such as the add and list commands, produce an output message "Unknown command" when called without parameters. This is confusing to users as it may mislead them to think that these commands do not exist.

This issue also applies when the parameter syntax is invalid, e.g. add asd instead of add -c ....

Steps to reproduce:

  1. Call one of add, list, add asd.

Expected:

  1. Program indicates invalid command format and prints out the relevant help syntax for the message.

Actual:

  1. Program prints "Unknown command".

Screenshots:
image.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.