sometimes you do not want that
anyway if you were actually building a robust thing you would:
1) not use exceptions
2) do a limited amount of retries, maybe with exponential backoff depending on what you're trying to do
3 weeks ago
Anonymous
You are talking about a proper solution. But look at OP's code (and the image he decided to post). It's already too moronic, beyond any salvation, so my solution just emphasizes OP's moroniation.
3 weeks ago
Anonymous
>painstakingly devise O(logn) algorithm >retry it with exponential backoff
Why are SWEs like this?
3 weeks ago
Anonymous
you are mistaken; O(long) comes from the Software Developer, exponential backoff comes from the Systems Engineer.
3 weeks ago
Anonymous
[...]
doesn't have the same behavior
op's code only retries once
"blah blah blah! i'm a big maricón!"
grow up homosexual
3 weeks ago
Anonymous
>maricón
this is all i can think of https://www.youtube.com/watch?v=ZPcyno4CiL8
3 weeks ago
Anonymous
thanks for confirming you're a homosexual
3 weeks ago
Anonymous
youre welcome :3
3 weeks ago
Anonymous
homosexual
3 weeks ago
Anonymous
youre not? uwu
3 weeks ago
Anonymous
no, homosexual
3 weeks ago
Anonymous
why keep replying to the homosexual then? o.o
3 weeks ago
Anonymous
homosexual
3 weeks ago
Anonymous
anon... im starting to think that it makes you feel good when you call me a homosexual. what other things do you like doing with homosexuals that make you feel good?
3 weeks ago
Anonymous
Nta but >dont feed the trolls >dont look at the troll >hide the troll posts
Why do you keep spamming ? I thought you/we homos were above this.
Make thia board great again
3 weeks ago
Anonymous
it's called having fun
3 weeks ago
Anonymous
>do a limited amount of retries
lemao >software gets a bug >only happens on the first try >nobody notices because automatic retry makes it werk >nobody reads the fricking log if your SW doesn't crash, don't kid yourself >SW runs twice as slow forever
Frick recovery code. Fail early and fail hard.
no, is like
function doStuff() {
try{
// Stuff
} catch {
doStuff
}
}
Why not just
while (true) {
try {
doThing();
break;
} catch (Throwable ignored) {
// no-op
}
}
then
doesn't have the same behavior
op's code only retries once
But if it failed once it may fail the second time. It needs to be retried until it succeeds.
sometimes you do not want that
anyway if you were actually building a robust thing you would:
1) not use exceptions
2) do a limited amount of retries, maybe with exponential backoff depending on what you're trying to do
You are talking about a proper solution. But look at OP's code (and the image he decided to post). It's already too moronic, beyond any salvation, so my solution just emphasizes OP's moroniation.
>painstakingly devise O(logn) algorithm
>retry it with exponential backoff
Why are SWEs like this?
you are mistaken; O(long) comes from the Software Developer, exponential backoff comes from the Systems Engineer.
"blah blah blah! i'm a big maricón!"
grow up homosexual
>maricón
this is all i can think of https://www.youtube.com/watch?v=ZPcyno4CiL8
thanks for confirming you're a homosexual
youre welcome :3
homosexual
youre not? uwu
no, homosexual
why keep replying to the homosexual then? o.o
homosexual
anon... im starting to think that it makes you feel good when you call me a homosexual. what other things do you like doing with homosexuals that make you feel good?
Nta but
>dont feed the trolls
>dont look at the troll
>hide the troll posts
Why do you keep spamming ? I thought you/we homos were above this.
Make thia board great again
it's called having fun
>do a limited amount of retries
lemao
>software gets a bug
>only happens on the first try
>nobody notices because automatic retry makes it werk
>nobody reads the fricking log if your SW doesn't crash, don't kid yourself
>SW runs twice as slow forever
Frick recovery code. Fail early and fail hard.
I think the recursion is the point of the joke lol.
void doNothing(){
}
try:
doNothing()
except Exception as e:
doNothing()
else:
doNothing()
finally:
win()
I've done your mom the other y
try
{
main();
}
catch
{
while(1)
{
printf("AAAAAAAAAAHHHHHHHn");
}
}
what the sigma
bool success = do_thing();
if (!success) {
success = do_thing();
if (!success) {
do_thing();
}
}
Lemme guess, you need more?
lol:for (;;) {
try {
doThing();
} catch (Exception e) {
continue lol;
}
}