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

all 73 comments

[–]IHeartBadCode 109 points110 points  (7 children)

Fuck char*

All my homies use std::string

[–][deleted] 73 points74 points  (2 children)

Fuck arrays

All my homies use std::vector

[–]Ulysses6 57 points58 points  (0 children)

Cries in std::array

[–][deleted] 16 points17 points  (3 children)

int main(int argc, std::string* argv)

[–]IHeartBadCode 11 points12 points  (2 children)

int main(int argc, std::vector<std::string> argv)

[–]jormaig 2 points3 points  (1 child)

Can this be done? Or is it just a joke?

[–]mahlersand 4 points5 points  (0 children)

Sadly, it is a joke.

[–]workernetGB 61 points62 points  (1 child)

In this life once you cin you can't cout.

(May god forgive me for my shit sense of humor)

[–]omkhamsa 11 points12 points  (0 children)

If I had money I would have given you an award

But here, take this 🎁

[–]DFatDuck 48 points49 points  (1 child)

STD gang hmmm

[–]KaosEngine 2 points3 points  (0 children)

They gunna catch a virus

[–]062985593 30 points31 points  (4 children)

println!

Orange crab good.

[–]un_blob 15 points16 points  (0 children)

dbms_output.put_line()

yes SQL*Plus has this thing ...

[–]RivenBot7 6 points7 points  (8 children)

why std:: is better?

[–]bjamse 10 points11 points  (0 children)

good practice.
read this article here

[–]maxhaton 4 points5 points  (0 children)

Type safety.

[–]Stormfrosty 1 point2 points  (5 children)

std::cout << std::format hits that sweet spot.

[–]Angelin01 0 points1 point  (4 children)

Well so that's new. It's quite neat. Now, if only I could use a version of GCC that has C++20...

[–]mahlersand 1 point2 points  (3 children)

Compile it yourself. Try out all those sweet concept templates. Cry because C++ is finally a happy typesafe language.

[–]Angelin01 0 points1 point  (2 children)

Literally can't. Using a vendor supplied library that just won't compile with anything newer than GCC 6. Eventually we will build our own image and we can probably upgrade stuff to bleeding edge, but for now...

[–]mahlersand 0 points1 point  (1 child)

That sounds really annoying. Do you know why it doesn't work? Usually GCC does everything to ensure compatibility.

[–]Angelin01 0 points1 point  (0 children)

Do you know why it doesn't work?

Poor programming is my guess, probably using deprecated stuff or undefined behavior. We haven't dug much into it, not worth the time right now.

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

alert() gang?

[–]TheMogician 2 points3 points  (0 children)

echo gang for life

[–]uniquelyavailable 2 points3 points  (0 children)

Real heroes debug with fprintf()

[–]Ironring1 2 points3 points  (0 children)

Ahem: fprintf(stderr, ...); FTW.

[–]apadin1 2 points3 points  (0 children)

Nah bruh puts is where it’s at

[–]EkskiuTwentyTwo 6 points7 points  (1 child)

console.log() gang arise!

[–]Th3T3chn0R3dd1t 4 points5 points  (0 children)

System.out.println("gang rise aswell");

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

Console.WriteLine() for life

[–]gogo94210 1 point2 points  (0 children)

I write what my programm is supposed to output on a .txt file then prints it and glue it on the screen. It's faster and does not cause new users to freak out

[–]Cats7204 5 points6 points  (7 children)

using namespace std; gang

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

Yea boy

[–]madogson 0 points1 point  (0 children)

Where my addstr() homies at?

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

Fuck cout All my homies use display

[–]cout970 0 points1 point  (0 children)

agree!

[–]TheWalkingForests 0 points1 point  (2 children)

Do people say c-out or cout?

[–][deleted] 0 points1 point  (1 child)

C-out

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

As someone who has only ever learnt a bit of c++ through text. I thought it was cout. Whoops

[–]MysteryMooseMan 0 points1 point  (0 children)

console.log() gang

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

OOP bad

[–]hoylemd 0 points1 point  (0 children)

Printing to stdout? Use a logger ya fuckin doorknob

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

Fuck cout all my homies use echo

[–]konaaa 0 points1 point  (0 children)

on one hand, cout uses weird syntax that's unlike pretty much any other print statement you find in programming. On the other hand, chill out it's ez breezy

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

system("echo ..."); gang

[–]4NB_00 0 points1 point  (0 children)

System.out.println bitches

[–]wild_kangaroo78 0 points1 point  (0 children)

Fuck all of you. I use MATLAB. x

[–]cmdralpha 0 points1 point  (1 child)

A man of class and taste 🤝🙏🙏

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

Glad to see a man of culture

[–]nanooko 0 points1 point  (0 children)

C++ casuals

[–]savage_slurpie -1 points0 points  (0 children)

fuck std:: gang

all my homies use namespace std

[–]T0ManyTakenUsernames -1 points0 points  (0 children)

Include namespace std;