1068
C++ (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] xmunk@sh.itjust.works 80 points 5 months ago

This graph cuts off early. Once you learn that pointers are a trap for noobs that you should avoid outside really specific circumstances the line crosses zero and goes back into normal land.

[-] Pelicanen@sopuli.xyz 49 points 5 months ago

C++ is unironically my favorite language, especially coding in python feels so ambiguous and you need to take care of so many special cases that just wouldn't even exist in C++.

[-] GlitchyDigiBun@lemmy.world 58 points 5 months ago

But can you read someone else's C++ code?

[-] Narwhalrus@lemmy.world 28 points 5 months ago

Typically, I can read an "average" open source programmers code. One of the issues I have with C++ is the standard library source seems to be completely incomprehensible.

I recently started learning rust, and the idea of being able to look at the standard library source to understand something without having to travel through 10 layers of abstraction was incredible to me.

[-] barsoap@lemm.ee 6 points 4 months ago

One of the issues I have with C++ is the standard library source seems to be completely incomprehensible.

AAAAAAhhh I once read a Stroustrup quote essentially going "if you understand vectors you understand C++", thought about that for a second, coming to the conclusion "surely he didn't mean using them, but implementing them", then had a quick google, people said llvm's libc++ was clean, had a look, and noped out of that abomination instantly. For comparison, Rust's vectors. About the same LOC, yes, but the Rust is like 80% docs and comments.

[-] uis@lemm.ee 1 points 4 months ago* (last edited 4 months ago)

I think some of those abominational constructs were for compile-time errors. Inline visibility macro is for reducing bynary size, allowing additional optimizations and improving performance and load time.

In my projects I set default visibility to hidden.

[-] magic_lobster_party@kbin.run 5 points 4 months ago

I wonder what went into their minds when they decided on coding conventions for C++ standard library. Like, what’s up with that weird ass indentation scheme?

load more comments (4 replies)
load more comments (4 replies)
load more comments (38 replies)
this post was submitted on 08 Jun 2024
1068 points (98.5% liked)

Programmer Humor

19471 readers
1382 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS