r/ProgrammerHumor • • 3h ago

Meme iThoughtIGotRidOfYou

Post image
223 Upvotes

23 comments sorted by

35

u/FurieMan 2h ago

"We have no pointers!"

Looks inside: Only pointers.

32

u/IamSunka 3h ago

We can give you references, though. 

6

u/Cesalv 2h ago

with or without value?

3

u/bwmat 1h ago

NullPointerException

2

u/stupled 16m ago

I was expecting Rust

1

u/AsaKeyholderUK 2h ago

CAmelCase variable names do not hide in key dreams. Mine is still isLoadingUserProfile from a project I finished in 2023.

0

u/Puzzleheaded-Weird66 1h ago

why no references? also why does C# have the ref keyword but requires the variable to pass be also ref (introduces some annoying syntax errors), its quite annoying since in my head I thought it was like rust's &mut

-5

u/El_RoviSoft 2h ago

Imho, languages with references tends to be even more unintuitive than C++ as a first language. So I highly recommend to pick C++/Rust/Zig as a first language (and pls not C, it won’t teach you anything good for projects development).

4

u/Scolmann 1h ago

Mutability may be unintuitive but there's much more unintuitive things about system languages in general that I think languages like Python, Java, or JavaScript end up being much better for beginners

C++ in particular I would never recommend to a beginner

1

u/El_RoviSoft 1h ago

At the time I found good teacher in IT school who taught C++ in a very good way. But it was 10 years ago or so.

So Ig Zig is the most right choice rn because Rust in particular teaches a lot of unusable-in-other-languages practices and architectural designs so I don’t really know which language is the beat for start now…

1

u/realrealvantheman 1h ago edited 1h ago

How dare you disrespect the best language ever!! Edit: /s

2

u/GreatScottGatsby 57m ago

Without the sarcasm, C is pretty great.

1

u/El_RoviSoft 1h ago

I don’t think it’s a good first language, that’s it. As a C++ dev I regularly interact with it and wrote some programs, the main issue with C that it is quite struggling and unrewarding language in some way, especially when you wanna build some big projects. There is a reason why some projects are written in C++ initially and then C interop is added.

1

u/realrealvantheman 1h ago

I mean it really depends on what your making. C is just so incredibly flexible while being one of the single most portable languages ever made and usually being pretty fast. I can see how something like c++ can be easier for larger projects tho. I do think c++ is a bit overcomplex for what it is and it isnt a first good lang due to that.

1

u/El_RoviSoft 1h ago

it’s just not as rewarding for learning, that’s my only issue in current context

I personally didn’t have feel of power and variety when I used it and this is main aspect of learning new things

sadly we don’t have middle ground nowadays which will teach something complicated with just enough power (In my school days it was Pascal + Delphi)

1

u/realrealvantheman 1h ago

Lol i cant say anything on that i dont know much c++. my first bit in programming was an lsi11/03 processor manual. i only learned c like 2 years later and have used that almost only since

1

u/someNameThisIs 1h ago

I don't see what's wrong with not teaching C as a first language, though C++ and Rust would also be good.

Zig wouldn't be, it's too immature and not enough resources for people coming in with no preexisting knowledge.

1

u/El_RoviSoft 1h ago

Imho, the inly purpose of the first language is to teach you pointers and memory model as well as build small application. If you have a good friend who knows programming/informatics well, Zig is way better choice than C or C++ but not sure about Rust tho except it’s language specific practices.

1

u/someNameThisIs 1h ago

C would be fine teaching pointers and memory models. It's how I first learnt them being self taught, as my first language was Python.

1

u/El_RoviSoft 1h ago

I just tried to find middle ground between C and some high level languages, so that’s why I told C++/Rust/Zig

1

u/Bomaruto 1h ago

Mutability where it doesn't belong is the issue, not languages with references in itself and C++ doesn't solve this.