• 1 Post
  • 269 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle






  • I think the biggest problem is that ai for now is not an exact tool that gets everything right. Because that’s just not what it is built to do. Which goes against much of the philosophy of most tools you’d find on your Linux PC.

    Secondly: Many people who choose Linux or other foss operating system do so, at least partially, to stay in control over their system which includes knowing why stuff happens and being able to fix stuff. Again that is just not what AI can currently deliver and it’s unlikely it will ever do that.

    So I see why people just choose to ignore the whole thing all together.









  • Killing_Spark@feddit.detoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    6 months ago

    This point advocates against the use of mod with content in a file unless it is used for a testing module. A common pattern is to have the unit tests for a module inside the main module file. Tests in rust are just specially tagged functions. To avoid compilation costs in non-test builds and false unused code warnings you can put all test related code in a submodule and tag that module with #[cfg(test)]. That way the module will only be included and compiled if the crate is being compiled to run tests.

    The Star wars thing refers to scrolling long text files similar to the intro of the starwars movies where a long text is scrolled for the viewer.


  • That question is a prime example of a bad question for surveying anything. “Too many” is a relative question but it does not say what we should relate it to. I think the amount of people coming here are overwhelming our structures we have for integration. But the solution in my mind can’t be to stop people from coming here by force. Either we invest a lot more into integration so we stop being overwhelmed or we invest more into developing peace and prosperity outside of Europe. Answering this question with yes will lump me in with people saying yes because they just flat out don’t want outsiders in their country.


  • mod name declares that the module should be compiled and reachable as a submodule of the current module. This assumes that you have a file or directory of the name in the right place. This is what you should do.

    You can also declare a module like this: mod name {...} where you just put the content in the block. The two are functionally equivalent, from the compilers perspective.



  • That’s one part of the lesson here yes. I definitely needed a minute to figure out why this whole thing caused a negative emotion in me. And going through this process will hopefully help me do it quicker the next time over. But on the other hand a bit of empathy for humans behaving like humans wouldn’t hurt either. It’s no wonder men react to the topic like they do, identifying with the person in a scenario sharing your gender is simply how human brains work. It’s why representation of diversity is important, but the same effect obviously also works on men.