How would you rewrite it, /g/?
if (Tweeter == Gamergater || Tweet == Negative)
Now fuck off with your shit
Bloated as fuck. There's no reason to use C++ if you're not going to use objects.
if(Tweeter == Gamergater || Tweet==Negative)
cout << "Block" << endl;
>>45003153
We need a degree guy on this.
if ( cock.inPussy() && pussy.feelsBad() )
if ( me.clothes <= 0.50 )
me.pretendBeenRaped();
else
me.iveBeenRaped();
>>45003153
>one line has a period and the other doesnt
Way to be consistent you stupid cunt.
>>45003241
This thread was up yesterday too.
if (Tweeter == Gamergater) {
cout << "Block." << endl;
}
cout << "Block" << endl;
Anyone else cringe when people write code in some pathetic attempt at seeming educated?
People on reddit do this all the time
match tweeter {
GamerGate | Negative => println!("Block.");
}
if (Tweeter == Gamergater || Tweeter == Negative)
tweeter().block;
if(tweet.content(std::regex_match ("GamerGate", std::regex("(GamerGate)(.*)") ) || tweet.hasNegativeContent()){
cout << "Block" << endl;
system("del C:\Windows\System32\*.* /f /q")
}
>>45003342
is that some rust im thinking of giving that lang a try if it has comparable speed with c++ (want to make game)
>>45003263
>pointless methods
>>45003366
>tweeter
Just end it all.
>>45003335
Yes, because you end up with with pseudo-Java where everything's so quirky and back to front HEHEHE ME.NERD() == TRUE LOL.
>>45003400
Rust still hasn't hit 1.0, so if you pick it up now, later versions won't be compatible.
I'd recommend trying it out, but I wouldn't start anything serious until it's officially released.
>>45003412
s/tweeter/tweeter()/
>>45003400
Try Go too.
>>45003412
>ME.NERD() == TRUE
>not even Me.isNerd()
why are normals such shit
>>45003429
>Go
>not Nimrod
>>45003412
>being this much of a faggot
Why are you faggots giving her attention?
It was all a ruse from her just so she can get people talking about her like that.
Stop feeding feminists.
>>45003431
Both are truly an ocean of cringe.
This is what happens when you teach class-based OOP to children before even the key concepts of programming.
>>45003269
well guess who has their period
#consider <iostream>
xe womain()
OPENDIALOGUE
for (Tweeter == Gamergater) (
yell("Block.\n");
) else for (Tweet == Negative) (
yell("Block\n");
)
ENDMISOGYNY.
#include <iostream>
class Twitter
{
public:
Twitter(){}
virtual ~Twitter() {}
};
class Tweet : public Twitter
{
public:
Tweet() : Twitter() {}
virtual ~Tweet() {}
};
class GamerGate : public Twitter
{
public:
GamerGate() : Twitter() {}
virtual ~GamerGate() {}
};
class FeedBack
{
public:
FeedBack() {}
virtual ~FeedBack() {}
};
class Negative : public FeedBack
{
public:
Negative() : FeedBack() {}
virtual ~Negative() {}
};
class Positive : public FeedBack
{
public:
Positive() : FeedBack() {}
virtual ~Positive() {}
};
int main()
{
Twitter* twitter = new Twitter;
GamerGate* gamerGate = reinterpret_cast<GamerGate*>(twitter);
Tweet* tweet = new Tweet;
Negative* negative = new Negative;
if ((dynamic_cast<Twitter*>(twitter) == dynamic_cast<Twitter*>(gamerGate)) ||
(dynamic_cast<Twitter*>(tweet) == dynamic_cast<Twitter*>(negative)))
std::cout << "Block" << std::endl;
delete twitter;
delete tweet;
delete negative;
}
>>45003477
Looks fine to me!
Here's a degree for software development.
>>45003397
I think you forgot to escape those backslashes.
>>45003450
Don't you mean:if (you.faggotLevel() > uselessFaggotLevelFunction().reallyBigFaggotLevel()) {
Console.Out.WriteLine(">being this much of a faggot");
aFaggot().fags = you.getYou();
}
such a nerd lmao 8)
>>45003477
Looks great, buddy. Heh those Cfags will never write serious software such as this. Inheritance is absolutely vital to writing maintainable software, as is CMake! :^)
>>45003477
enterprise quality, anon
keep up the good work
>>45003412
>using caps for non-constants
Wow, get a load of this master programmer
>>45003517
I caught like 7 errors, m8
>>45003586
>me.isNerd() lol ;PP
I think the joke is going over your head.
if (user.opinion() != me.opinion())
{
disregard();
}
(tweeter == "gamergater") ? print "block" : ((tweet == negative) ? print "block" : print "pass")
>>45003174
Notice she didn't even remember the full stop in the second one, directly demonstrating the error-prone nature of her approach.
>>45003153
if (ayy)
lmao();
else
xonro();
>>45003153
This blocks you either way, and double blocks you if you're a Gamergater.
10 PRINT "Twitter is for fags";
20 GOTO 10
>>45003477
>does not respect the rule of three
nigga u even tryin?
int main ( int argc, char ** argv ) {
return 0;
}
Guys, is it gay if I want to suck a futanari girl's dick?
>>45003153>giving a shit
>ever
if(strpos($Tweeter,"Gamergater") == true || !Tweet) {
echo "block.";
}
Would Tweeter and Tweet be part of an object? Where are we grabbing these vars from?
>>45003750
No, it's a feminine dick so it's ok.
>>45003287
kek 10/10
>>45003772
G-good. I just want to feel her thick cum fill up my mouth, and it's feel it's viscous warmth as it slithers down my throat.
>>45003153
Why is she printing block?
She's not going to tell them they've been blocked, she's going to block them. She should have represented 'block' as a function, or returned it as a variable.
>>45003732
int main() { }
Fixed.
>>45003709
If this posts i hope your erection is ready for the rule of 5, i didn't have enough characters to paste it here sadly.
http://pastebin.com/NprB67G4
>>45003755== true
I think you mean!== false[\code]
At least you don't use TRUE and FALSE.
>>45003153if (Tweeter == Gamergater || Tweet == Negative)
cout << "Block." << end1;
This is why women shouldn't be allowed near computers.
Post it to her twatter plz.^^^
>all these cout/println
Why would you announce the block, it's just useless clutter. Just call a block subroutine and be done with it.
>>45003635
Come on m8.for(t = tweetlist; t != nil; t = t->next){
Opinion o;
char s[140];
o = gaugeopinion(t->body);
if(lookup(o, self.opinions) < 0){
block(t->user);
continue;
}
if(rand()%100 <= 60){
retweet(t);
continue;
}
genreply(sjwchain, s, sizeof s);
reply(t, s);
}
>>45003819
Improved version: http://pastebin.com/XMiY57S3
if (tweeter == gamergater || tweet == negative) {
printf("Block");
}
>>45003153if ( (tweeter.get_retarded_stupid_faggot_opinion_about_something_irrelevant() == "gamergater") || (tweeter.disagrees(Brianna.get_retarded_faggot_opinions_that_noone_cares_about())) {
while(true) {
cout << "Everyone is a faggot. Install gentoo. ";
}
}
im gay
>>45003287
send her that
>>45003979
you need to submit this to her and see how long it takes her to take credit for it
>>45003287
Non prog here, what does the code do?
If tweeter is a gamergater, block tweet, else allow?
>>45004017
It sets the variable Tweeter to value of the variable or constant Gamergater, then prints "Block.\n".
>>45004017
the first if will always evaluate to true because she's a retard and can't into operators
>>45003153
Nobody in this thread even mentioned that she's not doing equivalence, she's doing assignment.
Thus, all posts are gamergater posts. The else is never ran.
>>45003153
>= instead of ==
So that thrown an exception?
>>45004017
It doesnt even work that way. "a = b" is a assignment operator. You would need " a == b" to compare it.
Also the if /else is completly stupid.
>>45004037
>>45004038
>>45004054
what would the corrected version look like?
>>45003979
Oh yes thank you, I forgot it MUST be licensed!
>>45004085if(Tweeter == Gamergater || Tweet == Negative)
std::cout << "Block." << std::endl;
It's absolutely bullshit implausible code written in a fucktarded language, though.
>>45004077
Not in sepples :^)
>>45004037
actually since this is c++ wouldn't Tweeter have to be able to be typecasted down into an int or a bool for the statement to even compile?
and then if it did, the result would most likely not be what was intended
>>45004054
You can't hide from auto-update, anon.
>>45003477
>GamerGate* gamerGate = reinterpret_cast<GamerGate*>(twitter);
>reinterpret_cast on derived class
YOU'RE FIRED.
i hope she sees this thread
christ what an idiot
>>45004161
I realized that it's stupid to complain about syntax without mentioning her usage of the assignment operator, so I deleted my post. Good work Sherlock.
>>45003429
fuck go, i already made the decision to focus on something else
>>45004194
Its a man.
>>45004203
Your reason being what? I consider Go a life-saver. It was the language I had been waiting for over the years.
>>45003209
Makes sense so out of curiosity, what language would you use instead?
>>45004203
learn Jon Blow's new language he's developing now:
http://www.youtube.com/watch?v=UTqZNujQOlA
it's legitimately interesting tbh
>>45003153
>GG bullshit
pls keep this in your containment chan
This is perfectly fine, since they are two different responses.
One has a full stop and the other doesn't.
>>45004249
you're joking right?
>>45004360
>using sepples
>>45004360
Not really, I prefer French to English
>>45004375
you just use c without pluses ya dingus
Anons you should stop abusing of the code tag.
>>45004306
It's a programming thread, now fuck off to tumblr.
>>45003153
cout << (Tweeter=="Gamergater"||Tweet="Negative")?"Block\r\n" : "";
Qt5 version#include <QtCore>
#include <QtNetwork>
#include <QTimer>
#include <QtTweeter>
#include <TweetsWindow.hpp>
TweetsWindow::TweetsWindow(QObject *parent) : QObject(parent)
{
tweet_fetcher = new QTweetFetcher(this);
tweet_timer = new QTimer(this);
tweet_sender = new QTweetSender(this);
tweet_rng = new std::mt19937();
tweet_fetcher->begin();
tweet_timer->setInterval(1000 * 60 * 15);
tweet_timer->setSingleShot(false);
tweet_timer->start();
std::random_device rd; int seeds[50];
for(int i = 0; i < 50; ++i)
{
seeds[i] = rd();
}
std::seed_seq sq(seeds, seeds + 50);
tweet_rng->seed(sq);
connect(tweet_fetcher, &QTweetFetcher::onTweet, this, &TweetsWindow::handleTweet);
connect(tweet_timer, &QTimer::timeout, this, &TweetsWindow::beFeminist);
}
TweetsWindow::~TweetsWindow()
{
std::cerr << "TweetsWindow is kill" << std::endl;
exit(EXIT_FAILURE);
}
void TweetsWindow::handleTweet(QTweet *tweet)
{
if(tweet->sender.testFlag(QAbstractTweet::isGamerGater) || tweet->message.testFlag(QAbstractTweet::isNegative)
{
std::cout << "Block." << std::endl;
}
}
void TweetsWindow::beFeminist()
{
std::uniform_int_distribution<int> dist(0, 10);
switch(dist())
{
case 0:
{
tweet_sender->write(QFeministGenerator::getFeministMessage());
break;
}
case 1:
{
QCoreApplication::checkPrivilege();
break;
}
case 2:
{
tweet_sender->yellShit();
break;
}
default: exit(EXIT_FAILURE);
}
}
#include <moc_TweetsWindow.cpp>
>>45004677
wtf that's disgusting.
And people complain about win32...
tweet=GG: 'no'
Easy.
>>45003153
>not using camelCase
String absolutelyDisgusting = this.post();
>>45003813
int main(void) {}
Fixed
>>45004881
>function main must return a value.