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
-
Hazarth95194y10/10 for readability and implementation
I will personally ensure your approach will become the industry standard and implement this work of art across all our projects!
for(bool run=true; run; run=false){
if(!userAuthorized()){
//show auth page
break;
}
//do something that requires user authorization
}
I love it
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
So I found these stack overflow questions and thought they were particularly humorous.
https://stackoverflow.com/questions...
https://stackoverflow.com/questions...
The answers were pretty good. But I wanted to actually "break out of an if statement" like the ops asked for. So I created these monstrosities:
random
break
wtf
c++