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
-
Do you ever have that ONE customer who does goodness only knows what, to have the most peculiar things happen, and is smart enough to screen shot them all to send to you to fix but you can 99.99% of the time NEVER reproduce the issue? ...yeah...I have one of those...lol
-
AllenII16178y@MoboTheHobo i take it as you defined angry somewhere unbeknownst to us. And you're better off with a bool while im at it
-
@daintycode nope just for fun. In c++ it would be:
if (GF = angry) {
cout << "Run for your live";
}
Well I could make my own programming language and call it angry GF 😂 -
@MoboTheHobo if angry is not 0 the value would be always true and the if-statement would be optimized away. If it is 0, the code would be unreachable and the whole block won't find its way into the executable.
Either way, that 'if' is pointless -
This whole thread is trying to define the correct, and optimal syntax to define an angry girlfriend.
I have tears of joy having found devRant. You guys.. ಥ_ಥ -
Ask yourself in C++:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
char response;
cout << "Is your Girlfriend angry? (y/n): ";
cin >> response;
if (response == 'n') {
cout << "I think you got a Syntax error. Always GFAngry == true" << endl << endl;
}
else if (response == 'y') {
cout << "Run for your live!" << endl << endl;
}
else {
cout << "Do you even have a Girlfriend?" << endl << endl;
}
return 0;
} -
donuts236728yWrite a program that spams your program with all possible inputs, then let it run while you sleep.
That's actually how I reproduced a bug in some library our webserver used. Just spamming all sorts of request until in hung... then took a memory dump and .... BOOM! deadlock found! -
@MoboTheHobo you motherfucker just did this on your phone like it's not a big deal?
-
@daintycode Always trust the Hobo 😂
Nah coded it on my Computer. You can also access Devrant on your webbrowser 😉 -
Root797678yclass Girlfriend # extends Partner
def tick
if @boyfriend.beingAnIdiot?
@anger++
if @anger>RANT_THRESHOLD
chastise @boyfriend
super
end
end -
@Ashkin RANT_THRESHOLD varies wildly between 0 and 2^64, depending on platform and model, eh?
GF: Why are working so late?
Me: Because no matter what I do, everything is working correctly.
GF: What....
The only career when you have to work late because everything is working like it should (cannot reproduce an issue).
undefined