nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

User friendliness of retry #1191

Open nus-pe-bot opened 2 months ago

nus-pe-bot commented 2 months ago

image.png

Not user friendly to input such a long id number to retry. As shown in the course admin info below

image.png


[original: nus-cs2113-AY2324S2/pe-interim#1073] [original labels: severity.Low type.FeatureFlaw]

Geinzit commented 2 months ago

Team's Response

While we understand and sympathize that the ID is hard to type, it's unfortunately nessecary for the amount of different generation results that can happen.

The logic behind this is that each problem set generated for the first time will be assigned a random signed integer as their ID, each unique ID is supposed to represent a unique set of problems. Which means if the range of the numbers are extremely small, say -100 to 100. It's very easy to encounter a "hash collision", meaning two different sets having the same ID.

A solution to this would be to assign small numbers in increasing order as we encounter new equations, but this would mean we have to map each set to a specific number and search the "dictionary" for a match each time a new set is generated, and on repeated uses with huge amount of records, this can potentially slow down the program significantly and hinder the user experience even more.

A better solution may exist, but it will have to be reserved for a future version.

Also, copy and pasting is viable and recommended for this command.

Duplicate status (if any):

--