• 1 Post
  • 581 Comments
Joined 1 year ago
cake
Cake day: September 2nd, 2023

help-circle
  • This user was not using git though, he was using vs code. That button doesn’t say “git reset” it says “discard all changes”. And btw, what it does is “git clean”, which is something that git can do.

    Just below the button there is a list of all the changes. In his case, there were 3000 changes of the type “file creation”. Discarding a file creation can only be made one way: deleting the file.

    Anyway, this user is presumably in his learning phase, I would not assume that he knows what git reset or git restore actually do.


  • There is a warning. IIRC it says “are you sure you want to discard all changes? This action is unreverisble”. In the context of version management. Creating a file is a change. And just below the button to discard all changes is the list of changes. In that list he could’ve seen 3000 changes of the type “file creation”, when you discard a file creation, it means to undo the creation, which is a deletion.

    The button days what is going to do. There is a warning about what it’s going to do. And there is a list of the exact changes it’s going to undo.

    The only way to avoid this from happening is to not have the button exist. In that case, the users that actually want to discard all changes would be unable to do so.



  • I don’t even know why people ITT are blaming the IDE and completely ignoring this.

    When you learn git, you do so on a dummy project, that has 5 files which are 10 characters long each.

    An IDE is not made so you can’t break things, it is tool, and it should let you do things. It’s like complaining that Linux will let you delete your desktop environment. Some people actually want to delete your desktop environment. You can’t remove that option just because someone can accidentally do it by ignoring all the warnings.


  • And unfortunately, this means that WG21, the C++ committee, has to take action because people are demanding it

    Why does this mean that they have to take action? Why do they need to make C++ memory safe?

    C++ was not designed to be memory safe. If you try to make C++ memory safe, you’ll have to break retro compatibility. If you’re going to break retro compatibility, can you say it’s still C++? Or another language called C++2? At that point, why not just use another language that was designed from the start to be memory safe?

    The action that should be taken is to completely avoid starting any new project in C++, and let the language die. A programming language is nothing more than a tool, once the tool no longer works, you search for another that does.

    C++ should go the way of fortran and cobol. The only development of C++ should be done is to maintain existing huge codebases that would be too expensive to rewrite.


  • I have had many mouses. Most of them broke the side buttons. The scroll wheel usually lasts as much as the side buttons. After that. The left/right main buttons fail.

    I have never had a mouse with a broken sensor though. I would look for solutions in the software (calibration and settings). But it’s not impossible that it’s broken.











  • I think you completely missed the point.

    The problem is not that the sign exists, the problem is that people don’t see nothing wrong with it.

    If you were a Jew, how would you feel if you saw Nazi flags on a men’s rights protest? Would you feel safe knowing that men a Nazi is safe around men? (Which probably means many of those men are nazis/nazi sympathizers themselves.).

    That’s how men feel when they see sexist messages in feminist protests go uncontested.



  • calcopiritus@lemmy.worldtoMicroblog Memes@lemmy.worldThe gender wars continue 🥹
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    5
    ·
    edit-2
    14 days ago

    You can’t be that blind. At pretty much every women’s rights protest there is at least someone with a sign up that reads something like “All men are rapists”. Sure, the protest might not be about that. Sure, not everyone agrees with that kind of statements. But there’s not much opposition either, so that kind of sexist message appears all the time in the news. Furthermore, those spewing sexist bullshit call themselves “feminists”, so young men think that feminism is like that, and now they hate feminism too.

    EDIT: just as an example, right after writing this comment I saw this other one: https://lemmy.world/comment/13322514 it’s impossible to time it better.



  • Editor/IDE, whatever. People claim both about jetbrains.

    If you want a purely editor-thing:

    Whatever vscode does with Ctrl+D (I don’t know the name). Ctrl+D is probably the hotkey I use most in vscode (probably more than Ctrl+S), yet CLion doesn’t have that. I’ve searched multiple times the whole settings for it.

    Those two examples are just the ones that most recently occurred to me, it has a lot more issues. For example the lack of a staging area. You can’t “git stage” in CLion.

    And I don’t think that the git integration is free from criticism. Git integration is one of the most important features of IDEs. It’s absolutely valid to criticize it.

    The autoformatter also doesn’t work correctly when developing in remote. Which means that unless I want my PRs to have thousands of lines of whitespace changes, I can’t use the auto formatter.

    Now I don’t know if this is a CMake issue or CLion. But at one point It was "#include"ing a struct from a header file I had deleted 1 hour previous to the build failing. The only way to fix that was to create the file again and delete it again.

    These complaints might seem small. But put together they are hours of wasted time that you don’t expect from the “best” of something.