• 0 Posts
  • 283 Comments
Joined 2 years ago
cake
Cake day: July 9th, 2023

help-circle
  • This is exactly my point though: What if people with autism weren’t disadvantaged in society? Then the idea of “curing” it would be meaningless.

    I understand that you’re frustrated by the challenges you’ve dealt with in your life, and I acknowledge that I’m speaking from a place of privilege as someone that doesn’t have any disability. But personally I’d rather see a world where people don’t feel like they’re disadvantaged for not matching the status quo than a world where everyone is equal just because everyone is the same.


  • To what extent are those behaviors something inherent to the neurological condition versus something exacerbated by the conditions that society places on those people?

    There people who argue that transgenderism shouldn’t be tolerated because there’s a strong correlation between being transgender and being depressed to the point of suicide. They believe that “humoring” the “sickness” just leads to more suicide. But the reality is that transgender people aren’t generally depressed when they’re part of a supportive community rather than being alienated.

    I’m not an expert in neurology, and I acknowledge this is a large degree of speculation on my part, but maybe these outcomes can be different if we collectively approach the matter with more understanding and empathy. If the tantrums truly can’t be helped, then create space for the tantrums to happen in a way that minimizes disruption to others and doesn’t elicit judgment.

    As a manager I’ve been on the receiving end of a very aggressive tantrum directed at me from someone who reports to me that I suspect may be on the spectrum. He didn’t feel like I was paying enough attention to his work, and rather than bringing it up to me in a respectful and constructive way, he had an outburst one day where he scolded me in a very demeaning way, essentially accusing me of being negligent as his manager. I suspect a lot of people in my position would have escalated that to HR right away, but instead I took the time to listen to his grievances and acknowledge that I could have done some things better as his manager but also that he is accountable for communicating his needs to me in a timely and respectful manner. He acknowledged that he could’ve handled the situation better and we came up with a system that makes it easier to get what he needs from me.

    In the end no one’s feelings needed to get hurt, no one’s career needed to be damaged, and no one needed to deal with HR, because I was willing to understand the outburst for what it is and not take it too personally.




  • 5C5C5Ctolinuxmemes@lemmy.worldRust? Like what's on some metals?
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    14 days ago

    I think it’s debatable whether RAII should be called “memory management”. Whether dealing with Rust or modern C++, you don’t need to “manage” the memory beyond specifying a container that will determine its lifecycle behavior, and then you just let it drop.

    You could certainly choose to manage it more granularly than that in Rust or C++, but in the vast majority of cases that would be considered bad practice.

    That’s a qualitatively different user experience than C or pre-2011 boostless C++ where you actually need to explicitly delete all your heap allocations and manually keep track of which pointers are still valid. Lumping both under “memory management” makes the term so broad that it almost loses its significance.



  • 5C5C5CtoProgrammer HumorHow to Forget C++
    link
    fedilink
    arrow-up
    4
    ·
    21 days ago

    There are several ways to achieve an effect equivalent to operator overloading in Rust, depending on exactly how you want the overloading to work.

    The most common is

    fn do_something(arg: impl Into<Args>) {
        ...
    }
    

    This lets you pass in anything into the function that can be converted into the Args type. If you define the Args type yourself then you can also define any conversion that you want, and you can make any construction method you want for it. It’s a small touch more explicit than C++'s operator overloading, but I think it pays off overall because you know exactly what function implementation all different choices of arguments will be funneling into.

    I’ll admit there’s one thing from C++ that I frequently wish were available in Rust: specialization. Generics in Rust aren’t exactly the same as templates in C++ but they’re close enough that the concept of specialization could apply to traits and generics. There is ongoing work to bring specialization into the language, but it’s taking a long time, and one of my projects in particular would seriously benefit from them being available.

    Still, Rust will have specialization support long before C++ has caught up to even a quarter of the benefits that Rust has over it.


  • 5C5C5CtoProgrammer HumorHow to Forget C++
    link
    fedilink
    arrow-up
    4
    ·
    21 days ago

    Even with modern C++ it’s loaded with seg fault and undefined behavior footguns.

    The times when C++ feels more ergonomic than Rust are the times when you’re writing unsafe code and there’s undefined behavior lurking in there, waiting to ambush you once you’ve sent it to production. Code that is 100% guaranteed safe is always, and I really want to emphasize this: always more ergonomic to write in Rust than it is to write in C++.

    Show me any case where C++ code seems more ergonomic than its Rust equivalent, and I will always be able to show you how either the C++ code has a bug hiding in it or how the Rust code can be revised with syntactic sugar to be more ergonomic than the C++.


  • 5C5C5CtoProgrammer HumorHow to Forget C++
    link
    fedilink
    arrow-up
    9
    ·
    21 days ago

    C++ was far and away my favorite language (I used it professionally for 10 years and was always excitedly keeping up with new ISO developments), until I learned the basics of Rust…

    Now it’s my firm belief that the world will become a better place when C++ stops existing. C++ just has no positive role to play in a world where Rust exists at the level of maturity that it already has.

    Whatever they might try to do to C++ to make it less intolerable will be in vain until they’re ready to break backwards compatibility. And once they’re willing to break backwards compatibility to legitimately improve the language, they’re just going to end up with a messy knock off of Rust.


  • I think it’s important to put it in context: the Democrats are hemorrhaging support from their base who thinks they should be doing more to resist this administration. That does not mean they are losing support in favor of Republicans.

    Meanwhile Trump is only losing a tiny amount of support because his base is a cult of personality that worships him. They won’t turn against him until he’s hurting them so directly that they can’t rationalize it as somehow being Obama’s fault. But many of them are delusional enough that they will never abandon their fealty so matter how much he harms them.


  • If the security team and the operations team are willing to obey the order and revoke access then the illegal firing is very much effective.

    The jackboot thugs that work security for these government agencies have repeatedly demonstrated that they’re happy to listen to the children running DOGE over the members of the agency that they’re supposed to be securing, so at that point what do you expect one of these beaurocrats to do? Get into a fist fight with all the mall cops that are itching to serve the fascists?


  • It’s the trans people who pass so well as cis who will be in the most danger. By law they’ll have to use the opposite bathroom of where they obviously belong, and then a group of big burly bigots will use that as an excuse to beat them up. The bigots defend themselves from criminal charges by insisting they were “defending women from a predator”, and even if the trans person can prove they were just following the law and not harming anyone, the bigots will still get off scot-free because the court will rule they had a “reasonable suspicion” for their actions. Gay/trans panic is still effective in many places where these anti-trans laws are passed. And in many cases the trans person may be too scared to even press charges.

    Ultimately the point of all of this is to force trans people out of society. You can’t participate in a communal space where you’re not able to safely relieve yourself.






  • I’m directing my criticism specifically on the technological advancement which is devoid of communal spirit, not on all technological advancement categorically.

    Crediting human achievement to technological advancement is a mistake in my opinion. Technological advancement is not inherently good or bad. Communal spirit is what determines whether technology yields positive or negative outcomes. That’s the real ingredient behind everything humans have achieved throughout history.

    Sadly techno-optimism has become a prevailing mindset in today’s world where people and institutions don’t want to take responsibility for the consequences of their actions because of belief that as-yet-unknown technological advancement will bail us out in the future, even when there’s no evidence that it will even be physically possible.

    But what I said is that your view is a sad one, not an incorrect one. The truth is, technological advancement may truly end up being the defining characteristic of humanity. After all, when we think about extinct species, we tend to associate them most strongly with what made them extinct. Just as we associate the dinosaurs most strongly with a meteor, maybe an outside observer will some day associate humanity most strongly with the technology that sent us out in a blaze of glory.


  • What a sad view of humanity to think that our one defining characteristic should be pursuit of technology rather than the ability to intelligently collaborate and thereby form communities with a shared purpose.

    I can assure you that the success of human survival throughout the history of our species has had far more to do with community and resourcefulness than with technological advancement. In fact it should be clear by now technological advancement devoid of communal spirit will be the very thing that brings an untimely end to our entire species. Our technology is destroying the climate we depend on and depleting the soil that we need for growing food, to say nothing of the nuclear bombs that could wipe us out with the wrong individuals in positions of power.



  • I don’t agree with the previous poster. There’s nothing wrong with diving in and figuring things out as you go, especially if that’s a way that you commonly like to learn. Everyone has different learning styles, and Rust can fit all those styles.

    The main thing to understand is you shouldn’t let compilation errors discourage you. You will get a lot of compilation errors. And I mean A LOT. That’s okay, it’s normal, and it doesn’t mean you’re dumb or that Rust is an excessively difficult language. It generally just means that there’s some new piece of the language for you to learn before you can take your next step.

    When you run into compilation errors, just read the error message carefully and see if you can understand what the problem is. Often the error itself will tell you how to fix it, but you should take the opportunity to understand why the fix is necessary. In every case there’s a reason that the language is putting limitations on what you’re doing. It’s to protect you from bad habits that other languages used to let you get away with. So understand what’s bad about what you were doing and you’ll rapidly grow as a developer.

    If you can’t figure out what’s wrong from the compilation error alone, that’s when it makes sense to turn to the book. The error messages will generally include a reference code which you can use to get more details on the nature of the error. Googling that will lead you to online discussions and maybe entries in the Rust book. Otherwise there isn’t a real need to read through the book from front to back unless that’s a way you like to learn.