Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Depending on the product and part of the code it is not that weird.
We have a similar piece of code in our product. When a shopping cart expires the contents are for 10 seconds in a void the user can still claim by starting a payment.
You are unable to add your reservation in the shopping cart at that time but we do offer users a bit more time to validate their order. -
@Codex404 I'm amusded more by the comment and the fact that this entire codebase is littered with magic numbers.
Related Rants
Rahul sir is very wise. Its a good thing he's there to suggest such brilliance.
expiryForBooking = [responseDictionary[@"ExpiryForBooking"] integerValue]+5; //Rahul sir Suggestion
rant
developers
my
offshore
ruined
life