Skip Navigation
Writing “string.IsNullOrEmpty” using pattern matching and comparing the resulting code
  • The usual convention is to have extension methods behave like regular methods, I.E. don't allow them to accept nulls. When looking at foo.Bar(); it's better if I can just intuit that foo can't be null because you're not supposed to be able to invoke the . operator on null.

    Of course, I'm entirely guilty of breaking this rule myself. cough Shoudly cough FluentAssertions cough

  • It is very therapeutic to garden, though.
  • Agreed, my wife and I had that conversation recently, as it happens. Though, for some things, there are other benefits. Herbs is the best example, even the fresh, packaged herbs that you can buy at a grocery will be noticeably not-as-good as something that you picked fresh in the backyard 2 minutes ago. Dill, basil, thyme, mint, what have you. I've found the same to be true of things like bell peppers and jalapenos.

  • Why don't computers have "computer-numbers" equivalent to phone numbers
  • Main difference there being that switching cities means probably switching ISPs. You can absolutely carry over your IP address when you move between the same provider, if that's part of your service plan, and that may well happen with some ISPs even without it being part of your plan. There just isn't really much of a need for people to carry a static IP, except for some businesses, and I'd say the main reason is that people don't visit websites by memorizing and typing in an IP. They do memorize and type in phone numbers.

  • Why don't computers have "computer-numbers" equivalent to phone numbers
  • They do, it's called an IP address.

    Phones get numbers assigned to them by a cell service provider, in order to communicate on their network, which is basically the exact process for computers and IP addresses.

    If you're asking about the equivalent of like a SIM card, in the computer/internet world, that's handled at higher layers, by digital certificates. And again, the process is almost exactly the same, except they don't (usually) get put on physical chips.

  • What Columbia Should Have Done Instead of Brutalizing Its Student Protesters
  • To over-simplify, making sure that they don't accept donations, grants, etc. from companies or other third-parties that are involved with Israel. The article gives some brief details on how "divest from Israel" is the approach that Brown University actually took here.

  • [Weekly thread] Men over 30, how is your week going?
  • Dishwasher's back together and has run 3 successful loads so far, so here's hoping the 6th time's the charm.

    I am monstrously far behind on everything else, after dealing with that over the weekend, and then meetings on Monday and today.

    Pikmin 2 has been fun, so far.

  • FTC fines Razer for every cent made selling bogus “N95 grade” RGB masks
  • I feel like this is the first time I've EVER heard of a fine being "all the profits you made from the fraud." Is this for real? Why the hell is it Razer, of all companies, that's getting a proper punishment?

  • Hexbear?

    So, I thought Hexbear defederated from us a little while back, and we, in turn, defederated from them. Why do I keep seeing occasional (new) Hexbear posts in the "All" feed, lately? Did the defederation get reversed? Is it somehow a bug?

    8
    Company forgets why they exist after 11-week migration to Kubernetes
    www.theolognion.com Company forgets why they exist after 11-week migration to Kubernetes

    Xenobroom Inc., a young startup fresh out of Silicon Valley started a lengthy process of upgrading their server infrastructure back in May 2020. According to the remaining fragments of CEO's daily journal and CTO's engineering notes, the company enjoyed a sharp rise in daily use in the midst of the ...

    Company forgets why they exist after 11-week migration to Kubernetes

    The site name's a play on "The Onion" so it's gotta be satire, right? I couldn't find an about page to confirm.

    38
    Is TV-MA really accurate?

    After watching the first couple of episodes, my wife and I were considering having our 8-year-old watch it with us. Then I noticed the TV-MA rating.

    Not looking for spoilers, but like, is the show gonna take a bit of a turn, eventually? There hasn't been anything CLOSE to TV-M-worth thus far, in my mind.

    0
    Home Improvement @lemmy.world JakenVeina @lemm.ee
    Dishwasher Recommendations

    So the "fails to complete a cycle without erroring out" rate finally seems to have reached 100%, on the Samsung dishwasher that came with the house.

    What do I need to know when picking a new one, and/or what models do y'all recommend?

    I'll take recommendations about how to fix the current one too, I guess, but I already got advice from an appliance repair man, who basically said "it would need a new control board, I.E. ditch it." The error code it's giving is supposedly about insufficient water or water flow, but the water feed is completely fine, as far as I can tell.

    26
    "Show Read Posts" appears to be applied to viewing my own profile.

    I.E. the list of my own posts in my profile is always empty, by definition, unless I go manually change the setting before viewing it, and then change it back when I'm done.

    Would this be a Jerboa issue, or a general Lemmy issue?

    3
    Sinaed O'Connor - The Unreleased Song You Never Heard

    Felt like I had to share this after catching it on Twitch last week.

    And no, this is not my YouTube channel.

    0
    Where did all the Twitter users go?
    imgflip.com to shreds you say

    An image tagged to shreds you say

    to shreds you say

    Side note: apparently I can't change or get rid of the alt text inside the image?

    9
    Chess.com bug? Or am I an idiot?

    My son asked me how to castle on chess.com the other day, and I found that I couldn't do it the way I normally do. Picking up the king and trying to move it to c1 just caused it to move to d1 instead, every time. I tried walking backwards and redoing a few different moves before this, and that all worked, but it just refused to let me castle by moving the king. Neither the king nor the rook had moved yet, and there was no potential or existing check involved, so what gives? Is there some other rule I'm just not aware of?

    Sorry I didn't get a shot of the board as well, I thought I had but I can't find it on my phone now.

    Edit: Missed the bishop. Option 2 it is, then.

    0
    Who says it can't swim?
    clips.twitch.tv Twitch

    Twitch is the world's leading video platform and community for gamers.

    Twitch

    I dunno if this is QUITE the content y'all are looking for, but if nothing else, I'm kinda astounded it worked.

    Yes, she did eventually get there.

    0
    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/)JA
    JakenVeina @lemm.ee
    Posts 11
    Comments 460