• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: October 29th, 2024

help-circle

  • When energy storage and transmission methods are also not up to the task, nuclear becomes the best answer.

    Obviously, the best answer is to improve energy storage and transmission infrastructure. Why would we waste hundreds of millions on a stupid toy power plant when we could spend 10% of that money on just running decent underground cables.


  • Just for context, I’m an experienced software engineer with years of experience with both C++ and C#, as well as several others, including Rust. You can do shallow and deep copies in C# as well, it’s done extremely infrequently because it’s usually a bit of a code smell and it has some downsides - it’s inefficient both for performance and for memory.

    In C# the assignment operator will copy the value if it’s a value type (structs and primitives) and copy the reference if it’s a reference type (classes). It does that because it’s a garbage collected language and it needs to track how memory is referenced and so on.

    The whole debate about what languages are better is honestly a bit silly, IMO. C, C++, Python, C#, Javascript, Rust, they all serve their purpose, they have their strengths and weaknesses.


  • drake@lemmy.sdf.orgtoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Sure you can, it’s the same in C# as it would be in C++ if you did a=b, where a and b are both pointers.

    You don’t want to copy the full data of a class around every time you use it, that would have extremely poor performance. If you do want that behaviour, use structs instead of classes. If you need to clone a class for whatever reason, you can do that too, but it’s not really something that you should need to do all that often.

    I don’t think you should really jump in and call something crappy if you just don’t really know how to use it, personally!


  • Great news, this isn’t actually true!

    Okay, well, the number of people alive the exact same number of years as you is gonna go down. But that number is arbitrary and doesn’t matter.

    The thing is as you get older the difference between you and people younger/older than you gets smaller and smaller. You’ve probably noticed that as you get older you can form relationships more easily with people even years older/younger than yourself.

    As you get older, more potential friendships and relationships open up to you, until you’re well into old age.


  • If you create a new project from scratch, yes, you can enable it project-wide. If you have a project which has a bunch of code predates nullable reference types, and you enable it project wide, you’ll have a billion warnings about it. Also, they’re warnings and not errors by default, which just encourages developers to either ignore or suppress them.

    So the reality is that you need to remember when you’re making new classes to add the attribute, and then deal with external stuff - which isn’t always clearly marked whether it’s nullable or not unless it’s using attributes, by the way… just such a total mess.

    They should have just gone with something more like Rust’s “Option” type. Would have been clearer for codebases that have to deal with a mix. They also could have clearly and decisively deprecated non-nullable reference types and just told people they were going to remove support in some future version so we could all migrate to them properly like we’ve done for .NET Core/.NET 5+.


  • C# is pretty good generally - I know it far better than any other and it pays my bills! - but it certainly has its weak points. Particularly around the newer features, a lot of them feel really rushed and just kind of shitty.

    The one I hate the most is the whole “nullable” pattern. It’s a total mess. Having to mark up files as #nullable enable, having to mark methods with a bunch of attributes, and the way that it works differently if it’s a value type or a reference type, it’s just so half-baked.

    If you spend some time with a more modern language like Rust or Swift then you’ll quickly start to notice C#’s weaknesses.


  • I completely understand where you’re coming from, but let’s be real, it doesn’t matter. Copyright is for corporations to protect their assets, not for individuals. The legal system is set up in such a way that it can be weaponised by the wealthy, but is basically unusable by the poor.

    If some company started selling your comment printed on a T-Shirt with no attribution, there is nothing you could really do about it unless you could get the story to go viral.

    If a corporation wants to include their comments in an AI training dataset, it will. It won’t matter what license the comment is released under.

    This is why I am pro-piracy, particularly against large corporations - because corporations don’t respect the copyright of individuals, so why should we respect their copyrights?






  • Thanks for the really comprehensive reply. The feeling I’m kind of getting from these comments is that neither GIMP nor Krita is really capable of acting as a replacement for Photoshop yet. I know that GIMP is capable and fully featured, but when I last tired it, I could not bear how much it crashed or locked up, and like you implied, the default UI is absolutely fucking garbage. Being totally honest, I don’t think it’s defensible how bad it is - Photoshop lets you customise the UI way, way more than you probably think, it has easily half a dozen preset layouts for different tasks/workflows.

    Krita looks quite nice, giving it a quick look, but like you said, it’s very obviously designed for painting and not design. Not all design can be done in vector format unfortunately!

    Maybe I will get around to giving GIMP 3 a shot and trying to figure out how to use it. I want an open source replacement to the Adobe suite so, so badly. But I feel like I just can’t make the huge compromises required for that, yet.


  • So, real talk, be completely honest with me - how usable is GIMP these days? I’m not trying to pick a fight, I think it’s great that GIMP exists, but while I may not be a professional artist, I am a developer with an interest in graphical design and I would say that I am an advanced user of the Adobe Creative Suite tools - the main three that I use being Photoshop, Illustrator and InDesign.

    I would be willing to learn to use GIMP to replace Photoshop, and Inkscape to replace Illustrator, for example, but only if they’re actually good enough to put to real, productive use.

    I need my tools to get out of the way and let me work. If it crashes and loses my work EVER, then it is completely beyond consideration for me. If it’s good enough for light users but not really ready for professional use, then I don’t think I can really consider switching.

    I do not use any of the 3D or AI features of any of those tools, if that helps.

    I would really appreciate your opinions and advice. Please don’t be optimistic - I know it’s hard sometimes to be critical about open source software because of our ideological beliefs, but please try your best to be realistic.

    Oh, and if you’re going to just tell me to try it, please try to contain that impulse. It would be a huge undertaking for me to relearn basically everything about how I work with these tools, so if I went through all that just to find that I couldn’t actually make use of them because they’re not ready yet, it would be a huge waste of time and energy, both of which I have in quite short supply these days.

    Thank you so much for your time :)


  • I completely understand your frustration. It sucks knowing that things are going to get worse and it could have been much better if those who didn’t vote, voted for Kamala. And we’re all definitely going to need time to fully process this.

    In my opinion though, and I’m not saying that I’m definitely correct - but the feeling I get the reason that the democrats lost is because lots of people felt completely disillusioned with the democratic party. I want to be really clear: Fuck Trump, he’s a fascist in a party of fascists doing fascist things. they will undoubtedly cause death and harm. If there was any justice in this world they’d be on trial for crimes again humanity. But the democrats did not offer enough hope for people to get out and vote. They basically ran on a campaign of “vote for us because you have no better option, the other guy is the worst”, and that is just not an inspiring campaign. Their ongoing support for the genocide in palestine, their lack of interest in fighting for the rights of trans people, all of these things and more left many people, myself included, feeling absolutely abandoned by the democratic party.

    I still think that leftists should vote, and they should vote with their heart and with thoughtfulness and think about harm mitigation. But I also cannot blame anyone who just couldn’t muster the energy to go out and queue for hours to express their support for a candidate that they felt very little love for.

    I really hope that my love and compassion comes through. It’s hard to express over the internet, and it sometimes feels a little silly, but it’s what we have left. Our love for each other and our hope that the future can be better, even if we may not live to experience that better future.


  • I completely understand your frustration. It sucks knowing that things are going to get worse and it could have been much better if those who didn’t vote, voted for Kamala. And we’re all definitely going to need time to fully process this.

    In my opinion though, and I’m not saying that I’m definitely correct - but the feeling I get the reason that the democrats lost is because lots of people felt completely disillusioned with the democratic party. I want to be really clear: Fuck Trump, he’s a fascist in a party of fascists doing fascist things. they will undoubtedly cause death and harm. If there was any justice in this world they’d be on trial for crimes again humanity. But the democrats did not offer enough hope for people to get out and vote. They basically ran on a campaign of “vote for us because you have no better option, the other guy is the worst”, and that is just not an inspiring campaign. Their ongoing support for the genocide in palestine, their lack of interest in fighting for the rights of trans people, all of these things and more left many people, myself included, feeling absolutely abandoned by the democratic party.

    I still think that leftists should vote, and they should vote with their heart and with thoughtfulness and think about harm mitigation. But I also cannot blame anyone who just couldn’t muster the energy to go out and queue for hours to express their support for a candidate that they felt very little love for.

    I really hope that my love and compassion comes through. It’s hard to express over the internet, and it sometimes feels a little silly, but it’s what we have left. Our love for each other and our hope that the future can be better, even if we may not live to experience that better future.


  • It kind of depends on your perspective, I wouldn’t say they profit from it monetarily - they definitely make a significant loss in raw $ from free users, but there is some amount of beneficial optics for the company, if people use it for fun/harmless activity.

    I think we both want the same thing. I don’t want to tone police you or any of that shit, and I believe you’re totally justified in how you feel about AI, but I really do hope you have a read of my comments from the perspective of someone who agrees with you rather than someone who is trying to pick a fight with you.