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
-
@gitpush imagine it being working on that second call due to some other global variable. Now that would be a real brainfuck.
-
hack64567yIt is much beautiful like that
void foo(int delay){
try{
//try something
} catch(exception e) {
wait(delay);
foo(delay * 2);
}
} -
gitlog62067yI've done a similar thing on my arduino for wifi.
Until it connects, it's of no use to run anything. Just try to connect to the given AP once again and again and again until you are connected -
Brolls31557yvar failed = false;
do
{
try
{
// do something
failed = false;
} catch (Exception e)
{
failed = true;
}
}while(failed)
There we go, now it’s just an infinite loop instead of a stack overflow. 🤣🤣
Related Rants
-
l0om44100% Real. And it's not even the worst on the site.
-
Codazed11Being 100% serious, I saw a guy in my Computer Programming I class using MS Word to write code that he would c...
-
dfox8I worked with a good dev at one of my previous jobs, but one of his faults was that he was a bit scattered and...
Void foo() {
try {
//Try something
} catch(exception e) {
foo();
}
}
When I saw this in production I cried a little...
rant
wk99