14
frogstair
70d

I guess it was never my thing was it?

Comments
  • 3
    Different people are suited for different thing. For instance I can't write a css properly even to save my life.
  • 3
    Every language can be used in a way that can look like a nigthmare. But yes, c++ makes It easier than others.
  • 3
    What's so bad about C++ compared to C?
  • 2
    @olback oh c is not better so you know...
  • 2
    @shoop I guess you've never written anything in Assembly? C is gods language compared to that. Asm is still fun though.
  • 3
    @olback I guess you've never written anything in machine language? Assembly is gods language compared to that
  • 1
    @olback see the kuronbka tag. I did write in assembly and it is way more fun than C or C++
  • 4
    @crisz @olback you guys have languages??! *grumbles in wires and transistors*

    @shoop it's cool for simple projects but try writing and maintaining, say, a fast multithreaded heap memory allocator in assembly. Plus optimizing compilers generate very good assembly these days (especially if the programmer knows a thing or two about it) and in many cases they know about optimizations that wouldn't occur to human programmers without considerable effort, so eh.

    C is about as simple and basic as it gets.
  • 0
    @RememberMe THIS. C master language. Want to change the entire flow of the program? Just change a function pointer! Want to be able to simulate single inheritance? Just put a struct inside a struct! It's beautiful. Not a single byte is were you can't see it. No weird _vtable symbols and news and delete and long-ass namespace concatenations.
  • 1
    @OneOfSimpleMind

    In new C++ you do not need to use new and delete keyword. Although you are right in that we cannot get away from vtable at the moment.
  • 0
    @mr-user I just get triggered when the virtual methods get overriden weirdly and if you don't specify the virtual destructor of the parent is protected then the derivates can't call their own destructor and shit like that. Or that passing a std::vector copies all elements to the passing method implicitly.
    It makes sense. I know that.
    But I feel confused and like my program has too many secrets which increase with every update of C++ calls and std.
    With C I can rest easy thinking it's all primitives and pointers. And the only thing that gets copied are primitive and structs.
    Oh oh! Also when I use an operator I know it's not actually overriden to mean something... else *shivers*.
    I'm madly in love with simplicity. Even if it means I have to reinvent the wheel sometimes.
  • 0
    @OneOfSimpleMind

    I know what you mean. I also like it to be simple.

    Due to the latest C++ update you can prevent virtual override with final keyword (they finally solve the problem :) .

    I see no reason to override operator other than << operator but you can live with not overriding other operator.

    The thing I like about C++ compare to other language is not its performance (I like performance) but how powerful its "const" keyword. If you use "const" correctly you can change the mutable object into immutable object just by "const_cast".
Add Comment