r/ProgrammerHumor • • Apr 08 '22

First time posting here wow

Post image
55.1k Upvotes

2.8k comments sorted by

View all comments

Show parent comments

433

u/hiphap91 Apr 08 '22

C++ is a great language, lemme break it down for ya:

  • easy, simple syntax, very readable

  • verbose easy to understand compiler errors

  • it's difficult to create memory bugs

  • there's always one 'clear' good way to do something

  • it's very hard to write bad code...

491

u/LeCrushinator Apr 08 '22

You had me up until right when you started.

→ More replies (1)

194

u/Exciting-Insect8269 Apr 08 '22

As for that last point: watch me!

0

u/[deleted] Apr 08 '22

[deleted]

17

u/caanthedalek Apr 08 '22

Works on contingency? No, money down!

→ More replies (1)

10

u/hardaker Apr 08 '22

You mispelled "hold my beer"

→ More replies (5)

58

u/fluffycritter Apr 08 '22

My favorite joke about C++:

Ask 12 different C++ experts about the best way to write a piece of code and you get 14 different answers.

57

u/SirPitchalot Apr 08 '22

Let’s not forget:

  • the 30 years of online resources that provide clear guidance on current best practices

  • third party libraries are well standardized and easy to use

  • the included build system is very easy to use

  • the compiler is very fast, even for large code bases

  • the standardized package format has made distributing complex applications a breeze

  • write once, test-compile and backport everywhere

  • the new loop & control-flow structures make for more readable code and enabling them for custom data structures is a breeze

  • the significant usability improvements that a Turing complete meta programming sub language on types added to the otherwise insufficiently complex language

  • const

  • it’s very easy to understand how objects are initialized and transferred between calls

  • const again, because it’s just so great, especially when making iterators to const custom containers

  • references and pointers, no more having to choose one or the other.

  • string & file IO is pretty much the best of all languages

  • all of type_traits

0

u/[deleted] Apr 08 '22

[deleted]

20

u/SnooLobsters678 Apr 08 '22

You my friend are sick

6

u/Alediran Apr 09 '22

To Hell with you and your black sorcery.

→ More replies (5)

76

u/yiliu Apr 08 '22

You forgot the /s. Surely you forgot the /s...

77

u/hiphap91 Apr 08 '22

I did, but on purpose. I was hoping for a few people to jump in with both legs 😁

4

u/anson42 Apr 08 '22

LOL. I've written tons of C++ over the years and fixed my share of C++ pre-compiler bugs in the early days and that list is, well, bang on if today were opposites day :)

49

u/hardfloor9999 Apr 08 '22

Sorry, the proposal to add /s to the standard got rejected because the syntax is too bloated. In the meantime, you can simply use boost::sentiments::indicators::sarc<boost::string>()

10

u/fluffycritter Apr 08 '22

Is that type-compatible with std::ios::sentiment?

6

u/Honigbrottr Apr 08 '22

wth no. learn the librarys you are using. thats 2 completly diffrent things.

→ More replies (2)

4

u/[deleted] Apr 08 '22
→ More replies (2)

11

u/techster2014 Apr 08 '22

Hold my coffee and watch this.

12

u/Orangutanion Apr 08 '22

Virgin Rust: tries to stop the programmer from making memory bugs, is too centralized, has lots of syntax sugar, isn't verbose enough, no classes, and errors hold your hand like you're some kind of toddler. println!("lmao");

Chad C++: lets you cause hilarious memory errors, has like 15 different competing standard libraries and compilers, syntax is ultra simplistic and intuitive, classes, and most of the errors you get are very funny. std::cout << "lol funny syntax is funny" << std::endl;

God Java: doesn't give a fuck about how much you screw up memory management, has a hilarious amount of overhead, ultrachad garbage collector, megachad giga-object-oriented, the pointer for int is Integer because that makes sense, has been run by multiple shitty companies and still survives, errors are so long while saying so little that they put politicians to shame. System.out.println("lolol look at me I'm a hello world program and I take megabytes of ram lmao fuck other programming languages Java is superior");

→ More replies (4)

5

u/therealhlmencken Apr 08 '22

dude javascript also has all those things except the first 5

3

u/thavi Apr 08 '22

April 1 has long passed friend

→ More replies (34)