Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devios157707yWhy are pointers sexy? Pointers are basically just dumb references. They're literally memory addresses.
If it's the fact that they're lower level and you have direct control over memory, then ok I guess that's sexy in a way, but they're also much more manual and less safe than references.
But at least there's no shitty garbage collection to worry about in C++. -
@devios1 you are right. And they are really painful to use sometimes.
But the thing that makes them sexy is that you can work at a very low level on the machine.
You can say "fuck you computer I can manipulate every fucking bit (or byte lol) of you. Shut up and kneel to my power!"
I am not that megalomaniac, I swear. I was just enjoying the moment. -
devios157707y@sljux That's true, it's been a while since I coded in C++, but I did quite like the idea of stack objects versus heap objects. You don't really think in terms of that when coding in "modern" languages that manage the memory for you. Everything is just a reference there, but being able to treat an object just like any other stack variable is pretty cool, having it delete itself as soon as the scope exits.
-
devios157707y@sljux Especially when you can rely on objects being destructed immediately when their scope is left, and not arbitrarily when some garbage collector decides to run.
-
Tfw people tell me "why use c++ for gamemaking when you can use c# and unity?"... I hate those people
-
Because it's right and perfect. I love Python a lot, but C++ gets everyday more magical.
-
I am like you, I come from Python and now I use C++, and sometimes I wonder if I'll ever use Python for serious projects again... we fell in love with C++ 😍
I have not used c++ in almost 2 years. I'm regaining familiarity with it.
I come from 2 years of Java and python.
I'm ranting a lot about some things, but damn, pointers and stuff are so sexy.
undefined
c++ pointers