Skip Navigation
[newbie] one-liner to avoid "temporary value dropped while borrowed"?
  • Well, all developers give each other ptsd, never seen a clean code base in my career. They all turn to shit, because 90% developers don't care, because it will be someone else's problem later.

    That said, yeah don't do weird custom code, where you have to keep context in your head to understand the code.

  • Removed
    Conservative asked me my thoughts on a situation if a guy who says he's trans walks into a womens restroom but is lying and isn't actually trans
  • Don't live in the US, but in Sweden almost all WCs are gender neutral.

    But the scenario is a cis gender male, walking in to a bathroom where he doesn't belong. And you ask what is stopping him, well in the world where someone is asking you what gender you are, to allow you to go the bathroom; I guess that will be stopping you.

    It's a made up scenario

  • "Weak men create hard times"
  • How about it's not your fault that there isn't a alternative to a more eco friendly product, because it's the politicians fault, we elect politician's and they have almost all of them a green Policy. But that's just on paper, they will really never do anything that hurt the economy and corporate profit. We vote on policy and they won't implement it, the only thing you are responsible for is holding your politicians to account, but yeah keep blaming yourself for the shit that you have no control over and live in apathy

  • ‘Who dreams this crap up?’: Kevin O'Leary slams new rule that allows employees to ignore their bosses after hours
  • This law isn't catered to you personally, don't you think there are bosses or work places that call their employees after hours - it's pretty common. I don't mind, but I get mails and messages after hours and just answer them.

    It does effect me without me knowing in some ways, but I personally feel it's more important to help someone, that also might be stressed and decide to contact me, for some help or questions.

    If the person or boss isn't an asshole I don't mind, but not everyone has that luxury, of having a boss that cares. Often they don't want to contact you after hours.

  • Is it overkill to use RxJava and Arrow for a room database query return?
  • I think you're giving it to much thought, a nullable type is also a optional.

    But using orNull() to unwrap the option kinda defeats it's purpose, you're just making it into another optional type, If that is the case then I would stop using Option and use the nullable operator "?".

    When I've worked with arrow I usually wrap types with Either so I can failfast and only have happy path in my code.

    https://arrow-kt.io/learn/typed-errors/either-and-ior/

  • Microsoft says its Recall uninstall option in Windows 11 is just a bug
  • I don't think Linux caters to the casual crowd, maybe in the distant future, because it takes a lot of effort to create a good user experience, those resources are not available to distro makers.

    In the PC world you have some different setups of devices, apple has it a bit easier they explicitly choose the hardware that they want to Support.

    Also casual people have a hard time connecting a printer to their computer or fixing the wireless wifi.

    I can't imagine them fixing anything via the terminal. My SOs runs Manjaro and she is like that, but I usually fix her laptop when she has issued.

    I love Linux for what it is, this toy for a developer that can automate and customize stuff relatively simple, with a large opinionated community.

    I would instead rather focus on those thing, than seeing Linux trying to compete with windows/Mac.

  • Microsoft says its Recall uninstall option in Windows 11 is just a bug
  • Mostly first Linux users will download Ubuntu, latest release, and I've not used a more bug ridden OS in my life. Everyday there was a new bug that made me have to hard reset my computer (mind you this is 24.0.4 noble). Display was grey after login, didn't want to login, laptop screen doesn't wake up, Wayland crashes and doesn't start backup. And that is the bugs that forced me to hard reset my laptop, then we have a whole slew of other bugs.

    I mean some new getting recommend Ubuntu will have a horrible experience, and most of them do

  • It's good when the price of a cup of coffee increases - cuz it helps foss coders whose donation msg is 'Buy me a cup of coffee' 🙃️
  • Not that often, but mostly to socialize with friends, 8 bucks for coffee is to much, I avoid those places and go to places where it is about 2€ and spend some on a piece of cake.

    But yeah, some people are not that responsible with their money and are willing to buy a coffee for 8$.

  • It's good when the price of a cup of coffee increases - cuz it helps foss coders whose donation msg is 'Buy me a cup of coffee' 🙃️
  • Making coffe at home is always cheaper, that why it's attractive to sell coffee, I'm guessing that a coffee place buys their coffe cheaper than you, but they pay rent, staff, other bills and take the risk of owning a business.

    And the price of coffe has high correlation with it's availability. No one wants to walk a mile outside of the city center to buy a coffe on their way to work even if it's 80% price difference, and that is what allowed them to sell cheap coffee for higher prices. But there's more to it than that, you have different variants of coffee, some like to pay a lite premium to get a more exclusive one etc etc, there is probably a whole science about coffee pricing.

  • One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
  • Dude what are you on about, there is no rust programmer that want to teach fucking rust to anyone who doesn't want learn...

    This has nothing to do with C vs Rust, this has to do with security and enabling more people to develop stuff for Linux.

    These so called kernel maintainers you see in the conference are only mainting the parts that they use for their filesystem, they are mainting the API, they are paid by companies who have sold support for ext4, xfs or brtfs etc.. . Of course they don't want to make their jobs any harder by learning a new language.

    And of course they obfuscate the API with random naming and undocumented usage, because they want to make it hard for anyone else using trying to use the APIs.

    If they don't want to be part of the improvement, then go do something else. Yes rust is better than C for this, because guess what - there are still CVEs being made, because it's impossible to catch everything with you eyes.

  • One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
  • That was what he was talking about at the conference, he literally asked for help about how things work, so he could write better APIs that they are more comfortable using.

    But the response was we don't want to write rust.

  • One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
  • What compromise? Half code should be in rust?

    What does this even have to do with rust developers, The language rust gives us the ability to have more compile time checks, and why is that a bad thing. Do you like security issues in your OS because some dev forgot to handle pointers correctly?

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SL
    slowcakes @programming.dev
    Posts 0
    Comments 25