• 2 Posts
  • 43 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle


  • Tons of people making Python comparisons regarding indentation here. I disagree. If you make an indentation error in Python, you will usually notice it right away. On the one hand because the logic is off or you’re referencing stuff that’s not in scope, on the other because if you are a sane person, you use a formatter and a linter when writing code.

    The places you can make these error are also very limited. At most at the very beginning and very end of a block. I can remember a single indentation error I only caught during debugging and that’s it. 99% of the time your linter will catch them.

    YAML is much worse in that regard, because you are not programming, you are structuring data. There is a high chance nothing will immediately go wrong. Items have default values, high-level languages might hide mistakes, badly trained programmers might be quick to cast stuff and don’t question it, and most of the time tools can’t help you either, because they cannot know you meant to create a different structure.

    That said, while I much prefer TOML for being significantly simpler, I can’t say YAML doesn’t get the job done. It’s also very readable as long as you don’t go crazy with nesting. What’s annoying about it is the amount of very subtle mistakes it allows you to make. I get super anxious when writing YAML.





  • Let’s go full guerilla: Plugin that lets you select the first and the last frame of an ad, thus allows to report the beginning and length to a synced database. When that frame is found in the buffer, skip X frames ahead.

    For ergonomics, the plugin should be able to spot cuts in the video so you can easily select the correct frames.

    For resilience, maybe settle for similar frames. Thinking about anti-abuse, maybe require a minimum number of reports relative to the views (and ofc allow to not skip stuff).










  • UnfortunateShort@lemmy.worldtomemes@lemmy.worldA bit late
    link
    fedilink
    arrow-up
    41
    arrow-down
    10
    ·
    5 months ago

    That’s quite the universal statement. I think first and foremost, men need to learn that they might not be part of the problem, but that there are many very problematic ones among us.

    The feeling of general suspicion is what we need to tackle. If you don’t grasp the problems and their magnitude, you will naturally take offense in being suspected.

    We need to take this feeling and turn it into anger towards the disgraceful people that are the reason for the suspicion.

    So on the contrary, I think men’s feelings actually matter a lot, if you want to reach a world free of misogyny and violence against women.