• 0 Posts
  • 12 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 did say if you have a specific thing to get it in writing. If you sign a letter of intent, that is getting it in writing. Plenty of guys in my boot camp got told they could go do X job in the Navy but ended up getting a different designation during boot. This was back in the mid 2000’s so it may be more standard to have the LoI but at the time plenty of us did and plenty of us didn’t. And for my job, I only got to join “the nuke program” - we got to give a wishlist for which rating but it didn’t mean much. I got the rating I wanted, but several guys wanted Electronics Technician and ended up as their last choice - Machinist’s Mates. And I’ve met some decently smart infantry, but I’ve also met plenty of infantry that were (affectionately) window lickers. More seriously though, the ones we joked around with about being window lickers aren’t actually stupid, they were just average guys, just not as quick as some of the other vets in the group (the Marine vet embraced the crayon eating jokes). I’m sure they were fine at their job though, and they followed orders well which is probably the most important thing in a soldier or sailor.


  • The score matters as far as what jobs you qualify for, and it also tests different aptitudes. For example, two people could have the same overall score (say a 70), but one person could show mechanical aptitude and be pushed toward a Machinist position, while the other could do poorly on mechanical but do well in electrical stuff and become an electrician.
    They also don’t want to waste their smarter people as basic grunts or cooks, so a higher ASVAB score can mean you’re less likely to get the job you want if, say, you score 90+, but always wanted to be a chef. If you have a specific job you want to go in for, you basically have to get it in writing that you’re joining for that job, otherwise you’re at the mercy of the “needs of the {branch name}” - you will be what they need most that you’re very good at.



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