My way: wrap it in a shell script and put a condition if exit status is not 0 then say "try clear the cache and run it again"
this post was submitted on 24 Jan 2024
1011 points (98.2% liked)
Programmer Humor
19529 readers
279 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
AKA - the test suites at half the companies I've worked. Except they use a loop with retries as well
Einstein did say...
Ever work?
I mean
maybe
Not with code, but i write a lot of LaTeX and that often starts working on second compilation
load more comments
(3 replies)
on xcode i would say it has a 50% chance of working
If that doesn’t work, restart it and then try.
Well if it doesn't work once try again if it doesn't work twice or thrice maybe there's a problem. If it works it is resolved ... for now, least effort solution.
I only do it because it works!