• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: July 16th, 2023

help-circle
  • 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 think some portions of the company do want to buy these studios to make games. Mostly because they need a regular funnel of titles to put on Game Pass, and the best way to do that is small- to mid-budget games that can generate hype. But then other portions of the company want to chase that big AAA paycheck because big numbers look good, even if ROI isn’t as good for that one game versus 3 or 4 smaller titles. And others still only care about what will make the balance sheet look the best for the quarter.
    Even smaller companies end up with various “factions” within the org as far as vision and how to best create success (or even how to define success); a company like Microsoft is so fractured that different divisions are unaware of each other’s goals and have competing interests.
    I’m not trying to defend Microsoft here, I just think this is a consequence of an overly large organization that doesn’t have unified goals.



  • I really wish I liked beans, but the only tolerable way I’ve found to incorporate them into my diet is specifically black beans, mixed in with things that make it less noticeable - like a black bean and corn salsa added to a salad or a burrito. The main problem is that most beans have a texture that disgusts me (though I can’t say I enjoy the flavor either). Baked beans, refried beans, stews and soups that have a lot of beans are all no-gos for me. Those black bean enchiladas sound interesting though, mind sharing a recipe?


  • JustAnotherRando@lemmy.worldtoScience Memes@mander.xyzlaunch him anyway
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    8 months ago

    Are you arguing that 1.12 billion m/s is NOT faster than the speed of light, or are you arguing that the speed required by the kick is not 1.12 billion m/s? Because if it’s the former, the speed of light in a vacuum is 300 million m/s (to 3 significant figures), or less than one third of that kick speed. If you’re arguing the latter, I don’t feel like checking all of the calculations this early in the morning, but you are probably right on that point.



  • JustAnotherRando@lemmy.worldtoMemes@lemmy.mlba dum tss
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Again, that’s incorrect. Pounds (Lbs) are the US measurement for mass. Feel free to provide a source to the contrary. I specified pounds mass vs pounds force because in an engineering space, it’s worthwhile to be specific, but the Pound (lb) is all that is specified in any documentation as the unit for mass in the US system.



  • JustAnotherRando@lemmy.worldtoMemes@lemmy.mlba dum tss
    link
    fedilink
    arrow-up
    15
    arrow-down
    2
    ·
    1 year ago

    It’s just a pun. They’re both units of mass, hence there would be mass confusion.

    It doesn’t work with the pun, but the more confusing part for people would probably be the fact that pounds are used for both mass and force, but in SI, the units are different (kilograms for mass vs newtons for force), though that doesn’t really matter for most people.


  • One of the few successful fan wikis that got away from fandom has been the Path of Exile community. I don’t play the game anymore because it just got to be too much for me and demand too much time, but I really appreciate that they collectively got pissed enough at fandom that they made sure that poewiki.net took off.

    Edit: even better, the developers (Grinding Gear Games) apparently agreed to take over hosting of the wiki about a year ago so that the community members that started it didn’t have to deal with the financial burden. Definitely a good idea for them to take over hosting so there’s no concern of the owners taking a valuable resource offline.



  • The flaw in your argument is that Republicans will only misuse and abuse a legal argument if the Democrats use it first. Regardless of whether the 14th is invoked against Trump, the Republicans will attempt to do so in any case that they have the slightest chance of succeeding or when there is no chance, but can successfully be used as a distraction/manipulation of their base. The fact that conversations of the 14th are now occurring is already enough that Republicans will make use of it any chance they get. And you can be damned sure that they won’t be the least bit concerned about “will the Democrats use this against us too?”