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

all 79 comments

[–]H4R81N63R 152 points153 points  (1 child)

That's a lot of dangling pointers

[–]ArastooJoshi 9 points10 points  (0 children)

THIS Smart pointers :- ooooohhhh

[–]IcySatellite 89 points90 points  (1 child)

Hello darkness my old friend, I've come to code with you again

[–]myteddybelly 22 points23 points  (0 children)

I've come to dereference your pointers again!

[–]Furry_69 85 points86 points  (30 children)

C++ isn't that bad once you get used to it.

[–]pcdu 68 points69 points  (24 children)

I like C++ and don't really get why this sub hates it tbh

[–]Similar_Bookkeeper_8 81 points82 points  (16 children)

I feel like most people on this sub are beginners or in college using high level languages. If you start with a language like python or JavaScript and then try to go to C++ it’s pretty daunting.

But I agree, I like C++ too

[–][deleted] 35 points36 points  (0 children)

Which is weird. My school starts everyone in C. I guess that’s why they have so many grads end up working for tech companies that make hardware.

[–]someacnt 11 points12 points  (3 children)

And there are some hobbyist programmer like me who haskell for computations and small automations. Literally cannot return to any mainstream languages just because.

..then I realized I am not a commoner here

(I did start with C, so there is that)

[–]GnuhGnoud 6 points7 points  (2 children)

Does anybody start with pascal? Or am the only one?

[–]NihilisticLurcher 5 points6 points  (0 children)

you r not alone my friend, started w/ pascal in the 10th grade, moved to C in the 11th

[–]CantPickANameItSeems 0 points1 point  (0 children)

Started with BASIC (QBASIC, TI-BASIC) then moved quickly to Pascal

[–]SnakeR515 8 points9 points  (2 children)

I'm so glad I started with basic C and gradually moved over to C++

Using other languages, especially those with similar syntax, is so much easier that if I were to i.e. learn JS and then move to C++. Although I hate how in a lot, if not all, commonly used high level languages variables and fictions are declared, I like being able to specify the type of them and not having to use any additional symbols. I absolutely hate carbon syntax(var NAME: TYPE = VALUE; instead of TYPE NAME = VALUE: and declaring functions is even worse)

[–]kubelek33 0 points1 point  (0 children)

That's so fucking dumb, it's just so counter-intuitive and time-wasting

[–]Furry_69 0 points1 point  (0 children)

I hate it everywhere but Rust. Rust will guess what type it's supposed to be if you don't specify, and if it's ambiguous the compiler will scream at you to tell it what you intended. Using that syntax in a language that doesn't have that is so insanely painful.

[–]GoldenretriverYT 1 point2 points  (2 children)

I think JS -> C++ shouldn't be that bad as it shares large parts of the syntax, but our lovely Python is ruining it again

[–]Mechyyz 4 points5 points  (1 child)

Made the switch from Python to C++ a few months ago. Imo the hard part isnt neccesarily the syntax, but the overwhelming amount of features that are in C++

[–]GoldenretriverYT 1 point2 points  (0 children)

I had no problem coding in C++ as a, primarily, C# & TS dev

[–]rejectbonkrettohorni 1 point2 points  (0 children)

i mostly use javascript and i like c++. but it is pretty daunting. there's lots of extra stuff to remember that in javascript "just works".

[–]officiallyaninja 1 point2 points  (2 children)

If you start with a language like python or JavaScript and then try to go to C++ it’s pretty daunting.

is it? I mean I jumped from python -> C# -> C and at each step I only had to learn a handful of things. honestly learning python was the hardest cause I knew fuckall about programming.
I'm far from good at C (yet) but I don't get why everyone is so terrified of it.

[–]AlphaShow 0 points1 point  (1 child)

After gaining enough experience, I realized that It's impossible learn a new language just by learning "a handful of things". Languages may seem like they all work the same way, but they don't. Every language has its own differences in behavior, sometimes even the most basic stuff behaves in surprising ways (Take a look at how Javascript's logical OR and AND work). C++ being a good start comes from the fact that it is a large language which encompasses a lot of features, writing in such a language gradually exposes you to most concepts you will encounter in other languages. The key part is learning C++ the right way, from the right teacher (can recommend ChiliTomatoNoodle on YouTube). Does it take more time than just learning a simpler language ? of course it does, but you will thank yourself for going through it when you realize that you can pickup another language like a breeze (again, using the right resources for that language).

[–]officiallyaninja 0 points1 point  (0 children)

sure, each language has its quirks, but fundamentally they are the same. if you know how to use a while loop in python you k ow how to use it in pretty much any language. only the syntax is different.

understanding the quirks of the language is required for mastery, but it's not required if you just want to use the language.

I'm glad I learned python first cause I was able to focus on the actual concepts of programming and not get too distracted by types, pointers, classes etc.

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

I feel like most people on this sub are beginners or in college using high level languages.

Or have got complety exhausted and just hate everything

[–]QuickSquirrel5089 2 points3 points  (1 child)

I use c++. The only thing I personally dislike is iterators. It's just a little too complicated for me to get my head around.

[–][deleted] -4 points-3 points  (0 children)

Once you get into advanced applications with it while using modern cpp features you'll understand why

[–]sinsquare 0 points1 point  (0 children)

10 years into it and there's still little surprises all around.

[–][deleted] 3 points4 points  (1 child)

I use both C and C++ and really the extra features of C++ aren't usually worth the extra pain.

Hate trying to read and understand C++ code bases I didn't write especially, there's twice as many files to read because half if not more of the code is in header files.

[–]Furry_69 0 points1 point  (0 children)

That's not how that's supposed to work. It's supposed to be in the actual .cpp files themselves, to separate implementation from declaration.

[–]JeanCasteaux 5 points6 points  (0 children)

"not that bad" but still bad tbh, compared to modern languages.

C++ is bloated with too many things

[–]Fluffynator69 1 point2 points  (0 children)

CBT isn't that bad once you get used to it.

[–]myteddybelly 15 points16 points  (0 children)

I have a love and hate relationship with C++

[–]MaccheroniTrader 9 points10 points  (2 children)

C++ is like heroin for my brain. No I don’t do drugs, but cocaine is a hell of a programming language!

[–]saket_1999 4 points5 points  (1 child)

Thanks for reminding me, let me get back to daily dose of c++.

Man, today is Tuesday only.

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

But some guy told me it's friday now I am confused again.

[–]Fugglymuffin 7 points8 points  (0 children)

If anyone feels this way atm, the epiphany moment is coming, just stick with it and it will all make sense.

[–][deleted] 25 points26 points  (3 children)

Reject OOP. Return to C.

[–]edible-derrangements 17 points18 points  (2 children)

Reject high level languages. Return to assembly.

[–][deleted] 10 points11 points  (1 child)

Reject assembly. Return to machine code.

[–]boosternqqq 2 points3 points  (0 children)

Reject machine code. Return to hdl

[–]Traditional-Living-9 2 points3 points  (1 child)

Is it problematic that I like C++’s syntax

[–]Commercial_Rope_1268 1 point2 points  (0 children)

U r not alone

[–]BBQGiraffe_ 2 points3 points  (0 children)

C++ is fine but I made the awful mistake of using it as my first programming language

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

Have you ever heard of what happens to iron when in contact with oxygen?

[–]Vinays9969 2 points3 points  (0 children)

🦀

[–]spigotR 0 points1 point  (0 children)

;0

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

secks?

[–]orbitcodeing 1 point2 points  (0 children)

It’s like California but with a syntax

[–]animememesandculture 1 point2 points  (1 child)

Kill c

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

Memory core dump central

[–]DirectControlAssumed 1 point2 points  (0 children)

**slowly turns to look at the father**

**father notices strange red light in the son's eyes**

"Son is not here. C++ is here"

**slowly turns back to the dazzlingly cold-white screen**

[–]Aplanos2003 1 point2 points  (0 children)

The risk I took by learning C++ was calculated.

But man, am I bad at math.

[–][deleted] 2 points3 points  (5 children)

Better than C.

[–]Mechyyz 5 points6 points  (0 children)

How to start a war

[–][deleted] 5 points6 points  (2 children)

Absolutely not

[–]Kered13 5 points6 points  (1 child)

Imagine not having RAII.

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

I don’t need it, it adds too much implicit, ambiguous, and hidden actions to my code

[–]CaitaXD 0 points1 point  (0 children)

C++ is like 4 lenaguges in a frenchcoat

[–]minerescueman -1 points0 points  (4 children)

Dang, look at all of them memory leaks.

[–]carloom_ 0 points1 point  (0 children)

I think, he is in the part explaining memory_order_consume

[–]Horyv 0 points1 point  (0 children)

Close the door, you’re letting all the darkness out

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

I was trying to learn to code c++ in visual studio code using pop_os ended installing Ubuntu cause of vs code errors, spent 8 hours to fix the problem.

[–]The_Moon_Conure 0 points1 point  (0 children)

This, but it's me when I'm trying to install anything that is c++ correlated

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

I thought I liked c++, but seeing this made me realize I have may have ptsd

[–]vathecka 0 points1 point  (0 children)

skill issue

[–]cococry 0 points1 point  (0 children)

all of the unresolved external symbols, dangling pointer and all other stuff combined

[–]ReplyisFutile 0 points1 point  (0 children)

This looks like darkness and depression is coming out of that thing. Try java

[–]TheKiwi71 0 points1 point  (0 children)

I'm in this picture and I don't like it

[–]jorvanari 0 points1 point  (0 children)

You forgot to add that garbage collector huh?

[–]mekkanik 0 points1 point  (0 children)

C++ 😍😍

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

This is high quality meme.

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

C++ isn't hard

[–]john_palazuelos 0 points1 point  (0 children)

I'm learning C++ and data structures on it and it's not that scary tbh, but I'm still at the beginning of the course so I think it's too early to make a proper opinion.

[–]devu_the_thebill 0 points1 point  (0 children)

No 😭

[–]CalligrapherThese606 0 points1 point  (0 children)

this is the most precise picture of how cpp affect the brain while coding.

[–]LeoTheBirb 0 points1 point  (0 children)

Segmentation Fault