• 2 Posts
  • 274 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle

  • In C++ you have the choice, the compiler makes the shallow copy (you know what that is right?) automatically if needed, or you can move around the pointer or a ref. Or, transform the shallow copy into a deep copy if you need that.

    In c# you don’t even not have the choice, ints etc gets copied but classes aren’t. Where’s the logic behind that?

    And as so many others you scramble to find some excuse that “you should probably not do that very often anyways” or some other bullshit.

    I heard all that 20 years ago when it actually had some merit for people trying to run it on the old crappy hardware of the day, today it’s just moot.

    Need speed or low memory usage? Learn to code in C/C++ for example. Heard Rust is great too.

    C# is just an old wonky language.

    /Rant off




  • Read somewhere that catching is actually dead simple, just “move towards the image of the incoming target” (I’m not talking about the arm kinematics).

    There were a robot paper bin that zoomed under stuff you threw up in the air using no complicated algorithms for example.

    Funnily many algos are calked on physical and chemical effects in the real workld, like splines for example were made with a thin metal bar and lead weight bending it to get the lines used in boat hull construction.



  • .Equals and == has different meanings? Like === in php or is it javascript 😅

    If you don’t see the problem with reassignment/pointer walking, then you are just too used to it to notice that it is total shit, how do you even copy the data from an instance of a class to another… Or are you “not supposed to do that”? If so, okay, but then c# is a ‘simple’ language, a script language like python or php.

    Also when you have a class A, make an instance isn’t:

    A a;

    I mean wtf…

    To each their own I guess :-) !





  • It’s a single =

    a = 5;

    b = c;

    And hell, “use .Equal” is exactly what it is all about, have you heard of == ?

    Back in the day all the big languages were hard to learn and had lots of quirks, but somehow C/C++ moved on and became quite simple and elegant (you can write the worst trash with it ofc. but that’s like saying you shouldn’t cook because you might burn your chicken). C# not so much.