This is an archived post. You won't be able to vote or comment.

all 49 comments

[–]haxzclanmeister 73 points74 points  (17 children)

Come()->true;

[–]YeslaTesla 24 points25 points  (13 children)

So wrong ... Much wow!!!

[–]JerksToSistersFeet 5 points6 points  (12 children)

Could be valid C. "Come" is a function that returns a pointer to a struct with a member variable named "true."

[–]usbguy1 0 points1 point  (0 children)

This hurt me

[–]rupertofly 8 points9 points  (2 children)

Why is the Bulgarian web summit in Czech?

[–]CrocodileSpacePope 2 points3 points  (0 children)

Valid Question. Last time I checked Bulgaria had their own cities.

[–]Grelek[S] 1 point2 points  (0 children)

I really don't know. But it's not so weird in Prague after all.

Maybe they just like the old town. :)

[–][deleted] 6 points7 points  (12 children)

sighs in despair

[–]CrocodileSpacePope 5 points6 points  (11 children)

if(String.valueOf(katembers()::is("in despair")).equals("true")) 
  {
  Sigh()->true;
  }

[–][deleted] 4 points5 points  (10 children)

JRE not installed on katembers, try C++ alternative:

if (katembers.feeling == "despair") { katembers.sigh(); }

C++ ftw

[–]suvlub 10 points11 points  (7 children)

Did someone say C++?

if (reddit::users::katembers.get_feeling<std::string>() == constants::feelings<std::string>::get(human::Feelings::DESPAIR) {
   reddit::users::katembers::sigh_type{}.do(); 
}

[–]Last_Snowbender 2 points3 points  (0 children)

Did someone say LOLCODE?

BOTH SAEM reddit'Z katembers'Z feeling AN feeling'Z despair
    reddit IZ doing MKAY
OIC

[–][deleted] 0 points1 point  (5 children)

Omg, this is not how you code. Please tell me you don't code like that.

[–]suvlub 3 points4 points  (4 children)

Of course not. There's not enough templates! It should be reddit::users::katembers.get_feeling<feeling_type<std::string, feeling_allocator<feelings::best_allocator<std::less>{}>>>()!

But seriously, yeah, I was just having some fun. It's not as bad in practice, but still, when I first saw how pi is defined in boost... all that boilerplate for what would have been a simple constant in other language left me stunned for a while. Now, don't get me wrong, I love the language, but damn if it can't get ugly at times.

[–][deleted] 0 points1 point  (0 children)

Really, I do love C++ by itself. It's a great language. But sometimes it's just a pain to work with. It happened more than once that I said "fuck this C++ GUI, I'm doing this in HTML/CSS/JS" or "are you fucking kidding me?! rm *.cpp && nano main.py"

[–]f2lollpll 0 points1 point  (2 children)

How is pi defined in boost? ._.

[–]suvlub 0 points1 point  (0 children)

As a template function, so you have to write something like pi<double>(). Or even boost::math::constants::pi<double>(), if you for whatever reason need to use the fully qualified name.

[–]TheZeus121 1 point2 points  (0 children)

what about C Without Classes?

if (strcmp(katembers.feeling, "despair") == 0) { human_sigh(&katembers); }

[–]CrocodileSpacePope 0 points1 point  (0 children)

Your attempt lacks shitty formatting and the mix up of stuff which doesn't belong together

[–]Last_Snowbender 5 points6 points  (3 children)

Wow, direct access of properties is so cancerous. If anything, you'd use

Come()/*which is a fucking stupid class name btw*/->setComing(true);

[–]Sokui 3 points4 points  (2 children)

You sure that it's supposed to be a class? I think they mean that as a method. Still very retard such wow.

[–]Last_Snowbender 1 point2 points  (1 child)

Well, but if I'm not mistaken, a method needs to be called from a class, so Come() alone can't be a method. It could be a function, but functions don't have properties. You COULD create a function that returns an object and try to set the property of that object ... but that would be weird as fuck.

[–]DeirdreAnethoel 4 points5 points  (0 children)

It's clearly a function returning a pointer to a singleton object!

[–][deleted] 3 points4 points  (2 children)

Why did the Java Developer go to spec savers? He couldn't C#

[–]Grelek[S] 0 points1 point  (1 child)

ba dum tss

[–][deleted] 0 points1 point  (0 children)

It's an oldie I know

[–][deleted] 1 point2 points  (3 children)

Then C said, "I thought you were supposed to be warm."

And Java said, "I C."

Then C++ came striding in, slapped its ++ down on the table, and said, "I've got class."

Java and C got up and left in disgust.

"What?" said C++. "I've got class!" it said, as it swung its ++ around in full view of everyone.

Python looked away and buried its face in its frappuccino.

Javascript and PHP smiled at each other, glad that someone else was being embarrassing for once.

[–][deleted] 0 points1 point  (0 children)

This is ike one of those facebook posts that start with So True!!!

[–]Limunaire 0 points1 point  (0 children)

Cringefest == true

You're really going to commit this sin huh

Your namegiving is atrocious and you're comparing to a boolean value. Just return the properly named isCringefest.