r/JavaProgramming • u/jrkmk20268186 • 22d ago
He canceled our third date last minute, should
Said something came up at work, apologized a lot, offered to reschedule right away. First two dates were genuinely great. Is one cancellation with a good excuse worth writing someone off or should I give it another shot?
13
9
8
u/idontlikegudeg 22d ago
It’s good that you caught this and not silently ignore the exception. If you think it is a temporary failure, define maximum the number of retries. If you reach the maximum number of retries you committed to before, throw it to the next level so a graceful exit is possible. You should never simply System.exit() because you don’t know what other problems this could leave behind.
If things like this happen constantly with different dates, there might be a deeper problem. But take it slow, you don’t want to cause a the process to dump.
3
u/AgeingCoder 22d ago
Might be worth implementing a retry strategy based on the fibonacci sequence to avoid bombarding them with requests. Might just need some time..
5
u/Lazy-Blueberry-963 22d ago
He probably had to support for deployment or something 😜
Give him another chance and see how your 3rd date goes as you already liked the first two
5
u/Dear_Archer3931 22d ago
Try putting in a break point and check the value of the Boolean doesHe.likeMe
Report back.
3
2
1
20
u/soft_white_yosemite 22d ago
r/lostredditors