• 1 Post
  • 142 Comments
Joined 2 years ago
cake
Cake day: July 16th, 2023

help-circle
  • JustAnotherRando@lemmy.worldtoScience Memes@mander.xyzDunning-Kruger
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    1 month ago

    To preface: this is from a previous bout of hyper focus curiosity (i.e. I am not an expert). But the human genome is significantly more complex than “XX chromosome means biological female”. Other genomic markers can trigger that don’t align with the typical, which can result in male reproductive organs on a person with XX chromosome and vice versa. XX and XY are also not the only options. There are three, four, and even five somal groupings (e.g. XXY, XYY, XXX - note that to my understanding, you can’t have all Y chromosomes even in these outliers). If anyone has further information or any corrections for me, I’d welcome them - I’m going off of memory from a couple of years ago and it’s not directly relevant to me (i.e. I am cis-male with no known chromosomal abnormalities)










  • Kidney stones fucking suck too. Note that there are more than just the calcium oxalate kidney stones, but for those ones in particular, other things high in oxalates that you might be eating that are high in oxalates: spinach, chocolate, tea, nuts, sweet potatoes.
    So if you’re trying to eat healthier, don’t fully adjust to eating (breakfast) an oatmeal bake with nuts, peanut butter, and chocolate; (lunch) wraps using a spinach wrap and/or spinach instead of lettuce for the greens in it; and tea instead sodas… Unless you like the idea of Tylenol sized kidney stones.


  • It absolutely should not have been named zeroth() because the reasoning for that is purely pedantic and ignores WHY arrays are 0 indexed. It’s not like the people in the early days of writing programming languages were saying “the zeroth item in the array” - they would refer to it using human language because they are humans, not machines. Arrays are 0 indexed because it’s more efficient for address location. To get the location in memory of an array item, it’s startingAddress + (objectSize * index). If they were 1 indexed, the machine would have to reverse the offset.
    Function/Method names, on the other hand, should be written so as to make the most sense to the humans reading and writing the code, because the humans are the only ones that care what the name is. When you have an array or list, it’s intuitive to think “I want the first thing in the array” or “I want the last thing in the array),” so it makes sense to use first and last. That also makes them intuitive counterparts (what would be the intuitive counterpart to “zeroth”?).









  • I don’t think it could be hashed if it is case insensitive. It’s fairly early so I may be misremembering but I’m not aware of any hashing algo that ignores case.

    Edit: Ah, actually they could be storing the password as a hash, but they would probably have to do like a password. ToLower() call or something where they morphed the string before checking… The thought of which just makes me shudder.