issues
search
NickPerlich
/
Bettermo
1
stars
1
forks
source link
Code Review Comments Adam Del Rio
#11
Open
AdamDelRio
opened
11 months ago
AdamDelRio
commented
11 months ago
Relabel the function ‘post_deliver_bottles’ in groups
Relabel the function ‘post_deliver_bottles’ in users
Utilize comments for a better understanding of what is happening 4, Return correct HTTP error codes
Consider changing the return ‘OK’ in ‘post_group_purchase’ to something more informative that shows that the function worked as intended
Have a function that checks if an inputted email is valid
Have a function that checks if an inputted phone number is valid
Disallow negative prices for paying another user (i.e. check price > 0), as this is directly charging them, which I’m sure could be used improperly
Utilize transactions to ensure the entire transaction will be rolled back if it does not work correctly
Add more description to variable names (such as uid, gid, uid2, etc)
Maybe spread complex SQL queries into multiple different statements that are joined later for readability
Utilize decimal instead of float for better precision
jackalnom
commented
11 months ago
For #8, what line did you not see them using transactions?