64

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.

Comments
  • 1
    I like you :)
  • 1
    Best language feature ever
  • 2
    Why 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++.
  • 3
    @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.
  • 2
    @magicleon Yeah I get that. Having ultimate control is worth a little extra work. 🙂
  • 1
    @devios1 With great power comes great responsibility.

    I love how in C++ you can have both objects and references to objects, makes a lot of room for optimizations. Couple that with const modifiers for arguments and methods, and you can create a safe, fast, and flexible code.
  • 1
    And you mess the hell up. Hence my rant lol
  • 2
    @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.
  • 2
    @devios1 And controlling what happens when objects expire with destructors is pretty handy
  • 2
    @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.
  • 2
    @devios1 Yes, exactly! And destruction actions being a language feature, not an onDestroy callback from a framework...
  • 3
    Tfw people tell me "why use c++ for gamemaking when you can use c# and unity?"... I hate those people
  • 1
    Because it's right and perfect. I love Python a lot, but C++ gets everyday more magical.
  • 2
    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++ 😍
Add Comment