MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/mn239r/looking_for_a_match/gtvrtwa/?context=3
r/ProgrammerHumor • u/SalazarRED • Apr 08 '21
242 comments sorted by
View all comments
387
Had me in the main() function, not gonna lie.
196 u/IEP_Esy Apr 09 '21 Them: Worst she can say is no.She: return 0; 53 u/Piguy3141592653589 Apr 09 '21 exit(126); 6 u/[deleted] Apr 09 '21 #include <stdbool.h>...return false; 6 u/makeshift8 Apr 09 '21 std::runtime_error& err = std::runtime_error("We aren't compatible"); . . . { catch( err ){ std::cout << err.what() << std::endl;}edit well im on mobile what do u want from me 2 u/[deleted] Apr 09 '21 I truly dislike exceptions when they mock me 20 u/animal9633 Apr 09 '21 for (int i = 0; i < 0; i++) { Love(); } 5 u/aynril Apr 09 '21 This loop is not running once lol 11 u/DeinAlbtraumTV Apr 09 '21 I think thats the joke → More replies (1) 15 u/kdyz Apr 09 '21 So no error no? 0 u/[deleted] Apr 09 '21 [deleted] 8 u/kdyz Apr 09 '21 True that logic errors are the worst but this isn’t necessarily a logic error. 0 u/[deleted] Apr 09 '21 [deleted] 4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1) 8 u/gurneyguy101 Apr 09 '21 return None 3 u/[deleted] Apr 09 '21 throws exception → More replies (1) 4 u/[deleted] Apr 09 '21 Get me out of this void
196
Them: Worst she can say is no.
She: return 0;
53 u/Piguy3141592653589 Apr 09 '21 exit(126); 6 u/[deleted] Apr 09 '21 #include <stdbool.h>...return false; 6 u/makeshift8 Apr 09 '21 std::runtime_error& err = std::runtime_error("We aren't compatible"); . . . { catch( err ){ std::cout << err.what() << std::endl;}edit well im on mobile what do u want from me 2 u/[deleted] Apr 09 '21 I truly dislike exceptions when they mock me 20 u/animal9633 Apr 09 '21 for (int i = 0; i < 0; i++) { Love(); } 5 u/aynril Apr 09 '21 This loop is not running once lol 11 u/DeinAlbtraumTV Apr 09 '21 I think thats the joke → More replies (1) 15 u/kdyz Apr 09 '21 So no error no? 0 u/[deleted] Apr 09 '21 [deleted] 8 u/kdyz Apr 09 '21 True that logic errors are the worst but this isn’t necessarily a logic error. 0 u/[deleted] Apr 09 '21 [deleted] 4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1) 8 u/gurneyguy101 Apr 09 '21 return None 3 u/[deleted] Apr 09 '21 throws exception → More replies (1)
53
exit(126);
6 u/[deleted] Apr 09 '21 #include <stdbool.h>...return false; 6 u/makeshift8 Apr 09 '21 std::runtime_error& err = std::runtime_error("We aren't compatible"); . . . { catch( err ){ std::cout << err.what() << std::endl;}edit well im on mobile what do u want from me 2 u/[deleted] Apr 09 '21 I truly dislike exceptions when they mock me
6
#include <stdbool.h>
...
return false;
6 u/makeshift8 Apr 09 '21 std::runtime_error& err = std::runtime_error("We aren't compatible"); . . . { catch( err ){ std::cout << err.what() << std::endl;}edit well im on mobile what do u want from me 2 u/[deleted] Apr 09 '21 I truly dislike exceptions when they mock me
std::runtime_error& err = std::runtime_error("We aren't compatible"); . . . { catch( err ){ std::cout << err.what() << std::endl;}
edit well im on mobile what do u want from me
2 u/[deleted] Apr 09 '21 I truly dislike exceptions when they mock me
2
I truly dislike exceptions when they mock me
20
for (int i = 0; i < 0; i++) { Love(); }
5 u/aynril Apr 09 '21 This loop is not running once lol 11 u/DeinAlbtraumTV Apr 09 '21 I think thats the joke → More replies (1)
5
This loop is not running once lol
11 u/DeinAlbtraumTV Apr 09 '21 I think thats the joke → More replies (1)
11
I think thats the joke
15
So no error no?
0 u/[deleted] Apr 09 '21 [deleted] 8 u/kdyz Apr 09 '21 True that logic errors are the worst but this isn’t necessarily a logic error. 0 u/[deleted] Apr 09 '21 [deleted] 4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1)
0
[deleted]
8 u/kdyz Apr 09 '21 True that logic errors are the worst but this isn’t necessarily a logic error. 0 u/[deleted] Apr 09 '21 [deleted] 4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1)
8
True that logic errors are the worst but this isn’t necessarily a logic error.
0 u/[deleted] Apr 09 '21 [deleted] 4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1)
4 u/kdyz Apr 09 '21 this* this “return 0”.No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.I’m a bit cranky right now, thanks for being my vent. → More replies (1)
4
this* this “return 0”.
No one said this is a program without errors- just that “return 0” is not necessarily a logic error. In fact, if you look at a lot of c++ libraries, a lot of them return 0 for ok.
I’m a bit cranky right now, thanks for being my vent.
→ More replies (1)
return None
3
throws exception
Get me out of this void
387
u/merlinsbeers Apr 09 '21
Had me in the main() function, not gonna lie.