• 0 Posts
  • 19 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 have a minor conspiracy theory about the Game Pass launch: it almost seems like they made the game pass version intentionally worse/buggier. Still had fun gameplay but lacking features that a lot of people want, some odd oversights (e.g. no menu to quit the game in the PC game pass build, have to alt+F4) and more stability issues. That gives people a chance to try it, find out they like the game, learn it’s better on steam, and then buy it there.
    That’s exactly what happened with my entire friend group (we also wanted a Private server for more people and persistent world regardless of who is online, which GP version can’t do currently).
    Rationally, I recognize that it’s probably a matter of the build being different, limitations when running in the Microsoft ecosystem (though other games are about to connect to private servers, even if it’s less straightforward) and the GP version is primarily for console (runs on PC as well, but the menu screens feel like console ones). But it certainly didn’t hurt their sales that the Steam version was clearly better.


  • Episode 7 is no masterpiece, but it is infinitely more watchable for me than Episode 1. The initial conflict is just confusing as far as motivation, young Anakin and Jar Jar are both obnoxious as hell, and the acting is not great. The Darth Maul fight and the pod race are about the only parts of the movie that I remember fondly.



  • 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.