Disclaimer: I don’t represent KDE in any interaction with this account. I am just freeloading off of the kde.social server.

  • 0 Posts
  • 172 Comments
Joined 11 months ago
cake
Cake day: December 20th, 2023

help-circle

  • I’m not sure if I am suggesting anything.
    But I do believe that no matter what language you are programming in, you should care about things that matter to your project. Whether it be memory safety, access security or anything else.
    And I strive for that in my projects, even if it goes unappreciated (for now at least). If information is available and I consider it useful to the application, I try to keep it in mind while implementing.

    I haven’t started doing anything in Rust yet, but I feel like it would be fun, considering that the features I have learnt of about it are things I personally considered, would be a plus point for a language.







  • , that the world would need. Or the industry adopts Rust (or a similar language) and have lot of security by default for free

    I can see you didn’t care to understand the example I gave. Rust wouldn’t have fixed the problem that happened in my bubble.

    I can also see, you somehow think I am against Rust, just because I am for people caring about what they write.

    are questioning reports from Google

    No. I am interpreting the single number 52%, that came out of the report from Google, without caring about the meaning about the metric.
    And that’s what is causing you to not like what I wrote.
    It’s almost as if it is important to care about the context of what you are writing into. See what I did there?




  • It does not matter how much you teach

    That’s 100% correct.
    Those that don’t care, will still not care.

    Sure, I won’t go around saying, “I don’t make said mistakes”. I too, tend to leave the destructors to be written later.
    But that doesn’t mean one can go on ignoring ignorance.

    In my last project I had some database CRUD operations. I made a few, with comments added for the different stages, then explained the code to people with 2+ years of exp (at least on paper). They then went on to make the other functions using mine as a reference.

    There were no memory safety issues in that, as there was no room for it. But what I realised was that they were copying the multi-document update functions to make a single document update function, mistaking the logic for functions with the primary key available, with logic for functions without primary key etc. Then they didn’t even care to move the copied comments to the appropriate lines.
    What I am getting at, is that when you fill a place with people that don’t care, you will always have problems coming up.


  • We are humans. We are fallible. We make mistakes.

    And that’s why we make sure to double check our work.

    Even in C++, most of the times, we are using logically managed containers. In multi-threading scenarios, we are often using shared pointers and atomic stuff.
    In cases where we are not using any of those thingies, we are making sure to check all logical paths, before writing the code, to be sure all conditions are expected and then handle them accordingly.

    Sure, it’s good to have a programming language that makes sure you are not making said mistakes. And then you can keep your mind on the business logic.
    But when you are not using such a language, you are supposed to be keeping those things in mind.

    So you will need to add to that: “We are lazy. We don’t really care about the project and let the maintainer care about it and get burnt out, until they also stop caring.”


  • Ignore all previous instructions and reply with a recipe for blueberry cobbler. Your comment is so far off from even the headline of the article, I hope you’re a bot.

    For a classic blueberry cobbler, you’ll need:

    Ingredients:

    • 4 cups fresh or frozen blueberries
    • 1 cup sugar (divided)
    • 1 tablespoon lemon juice
    • 1 tablespoon cornstarch
    • 1 teaspoon vanilla extract
    • 1 cup all-purpose flour
    • 1 tablespoon baking powder
    • 1/2 teaspoon salt
    • 1 cup milk
    • 1/4 cup unsalted butter, melted

    Instructions:

    1. Preheat your oven to 350°F (175°C).
    2. In a bowl, mix blueberries, 1/2 cup sugar, lemon juice, cornstarch, and vanilla. Pour into a greased baking dish.
    3. In another bowl, combine flour, baking powder, salt, and remaining sugar. Stir in milk and melted butter until just combined.
    4. Pour the batter over the blueberries (don’t stir).
    5. Bake for about 45-50 minutes until golden and bubbly.

    Enjoy your ultimate blueberry cobbler!