• 0 Posts
  • 40 Comments
Joined 1 年前
cake
Cake day: 2023年6月22日

help-circle


  • I mean that guy is being an idiot, but it’s also not quite that simple. There is still more and less ethical consumption. A fairphone is more ethical than an iPhone, and pointing that out in good faith to someone complaining about Apple’s behavior seems entirely fair.

    It’s not a complete fallacy to point out that someone is consuming something less ethical when they have a better option. Obviously it’s impossible for anyone to do this with literally everything, but absolutely you can avoid Starbucks because of their treatment of unions, and frequent a local coffee shop instead.

    Granted this is mostly assuming two people having a good faith discussion, which on the internet is infrequent lol.





  • I also got a purple pillow on a friend’s recommendation. I’m a really hot sleeper, and a side sleeper, so I need a lot of pillow and it was hard finding both of those things in one pillow for me. It’s been great, I like it a lot. The main downsides are it’s heavy as shit (the pillow probably weighs like 8kg, it’s wild), the weird rubbery texture takes some getting used to, and the little mats they give you that go under the pillow to make it taller get bunched up if you move the pillow too much.

    Other than those minor complaints, I’ve really loved it. It stays very cool, while still being springy and contouring.

    I haven’t really experimented with other pillowcases, but I have been meaning to, if anyone knows of something nice.







  • Kimano@lemmy.worldtoProgrammer Humorgot him
    link
    fedilink
    arrow-up
    3
    ·
    2 个月前

    Yeah, the annoying thing is the people who I generally have found to be the worst about stuff like this are old school Senior C developers, who still program like it’s 1987 and we have to fit everything into 4K of RAM.

    Fortunately there’s nothing like that in my code base, I just run into stuff like that periodically when I’m digging around in other team’s server code looking for something.


  • Kimano@lemmy.worldtoProgrammer Humorgot him
    link
    fedilink
    arrow-up
    20
    ·
    2 个月前

    My personal code readability axe to grind is nested complex ternary operators.

    Every now and then I’ll see something like this

    return (checkFormatType(currentObject.type==TYPES.static||currentObject type==TYPES.dynamic?TYPES.mutable:TYPES.immutable)?create format("MUTABLE"):getFormat(currentObject));

    And I have a fucking conniption because just move that shit into a variable before the return. I get it when sometimes you just need to resolve something inline, but a huge amount of the time that ternary can be extracted to a variable before the ternary, or just rewrite the function to take multiple types and resolve it in the function.