3 ms·
This line of code is very suspicious: CartID cartId = new CartID(productId.toString()); This line of code looks perfectly fine: addToCart(..., produc
by gizmo686 8y ago
This line of code is very suspicious:
CartID cartId = new CartID(productId.toString());
This line of code looks perfectly fine:
addToCart(..., productId, ...);
There is tremendous benefit to making wrong code obviously wrong.
Not to mention that even if you do not have formally verifiable structure, you can almost always do sanity checks.