• 0 Posts
  • 4 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.


  • The thing is, it was already known they were in contact and the politician in question claimed he did nothing sketchy. So he’s not only corrupt, or a traitor to our country, or (most likely) both, he also already publicly lied about it and there is supposedly evidence he actually accepted money. This makes things much worse for him.

    His party also already claimed it’s a smear campaign, so if there really is evidence, they’ll look pretty stupid as well (although this really isn’t news).