• 0 Posts
  • 51 Comments
Joined 10 months ago
cake
Cake day: November 24th, 2023

help-circle









  • I would do that… If CI wouldn’t be set to -D warnings

    Who even does that? Oh wait, it was me.

    Joke aside, it does help to keep the code clean, even more for open source projects where multiple separate people may all have their own codding style, and it helps make it easier to organise.

    But I do agree that it can be really, really annoying.








  • RustyNova@lemmy.worldtoProgrammer Humor@lemmy.mllocal warzone
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    edit-2
    4 months ago

    Apart from the search engines being both shitty, here there’s nothing wrong

    If you installed an extension to use bing search, what you want is to use bing search, not Google. So of course the extension has to say “don’t switch”

    There’s also a good point on chrome’s side. There’s extensions that will switch your default search engine without your consent, so having the possibility to undo directly is nice.

    Another way to see it, would be to switch chrome for firefox, Google search for duck duck go, and bing to qwant. Same story, but no shitty companies clouding judgements




  • Oh, then you use and_then() or something similar.

    There’s also the possibility to use the guard clauses patern and do let <...> = <...> else {}.

    And finally, you can always split into another function.

    It’s not straight rules. It depends on what makes it more readable for your case.