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”?).
- 0 Posts
- 23 Comments
JustAnotherRando@lemmy.worldto politics @lemmy.world•Donald Trump's chat with Elon Musk on X fact-checked9·11 months agoAnd C) continue in the pursuit of wealth rather than fucking off and just enjoying life with your fortune.
That’s a penisea star
JustAnotherRando@lemmy.worldto politics @lemmy.world•Bloat and 'Bigotry': Six Democrats Join With House GOP to Pass $833 Billion Pentagon Budget0·1 year agoYou’re now being hostile which is quickly souring any chance of productive conversation. You’re accusing me of saying things I’ve not said, you’re blatantly ignoring anything that’s inconvenient to your point of view, and You’re making attacks/accusing me of “helping the enemy” because I disagree on how to deal with them. Not only are you not making any manner of argument on how you’re NOT engaging in “No True Scotsman”, you’re becoming actively hostile at an ally because I only agree on 99% of the topic.
I’ve not once called them “far left” - I’ve called them the “farthest left (at least at a surface level) party with national exposure.” That’s not exactly a high bar. It also ignores the fact that there are genuine leftists that identify with the party. They operate WITHIN the leftist sphere, and they are grifters. You can’t dismiss it out of hand and say that “well they are really leftists” - yeah, no shit, that’s what grifters fucking do. Fucker Carlson doesn’t believe in 1/10th of the shit he spouts off, but it doesn’t make home not a far right grifter.
I’m not helping them, I’m trying to make sure that allies, both to my left and to my right (I wouldn’t call myself “far left” but would call myself “leftist”) keep some level of guard up against grifters that operate within our spaces.
My POV is: we are not immune to grifters in our spaces, you should maintain guard. Here’s one example of a grifter within our space. (FTR, I could have also pointed to ML tankies that defend the actions of Russia and China in spite of the fact that neither are remotely Communist, socialist or leftist of any form). Your POV as it comes across SEEMS TO BE: Well, they’re not REALLY far left (unclear if you only mean to exclude from “far” left or leftist in total), so no we don’t have grifters on the left. If this is not your point of view, then far more time has been spent arguing about minutiae and leftist in-Fighting than explaining why you don’t believe that grift is not a problem within this space.And look, I really do not want to be hostile here, because I do Believe that we are largely allies (I don’t know that we would agree on policies exactly as this is a narrow discussion, but we’re so far from what either of us would likely want that it should prevent us from wanting to work together). I am however, not interested in engaging further if the discussion is just going to be hostile. I ain’t got time for that shit.
Edit: Sorry, there is a point that you mentioned that I want to touch on: you mentioned that I am “just calling people what they want to be called” while you Believe in looking at their actions over their words… The thing is, we can only see that their actions are inconsistent with a leftist ideology because they have visibility and have been around long enough that we can now know that they are grifters. A decade+ ago, we did not have that information, so as far as most people could know, they were “leftist”. I’m not including them to exist their actions, I’m using them as an example of our space but being immune to the grift. They may not be “true leftists”, but they ARE “left-wing grifters.” Because it’s not about who they are, it’s about who they target. There are farther-left grifters (likely including some who are state actors of foreign governments), but it’s not as easy to identify who is and is not a grifter because we don’t have as much info on them.
JustAnotherRando@lemmy.worldto politics @lemmy.world•Bloat and 'Bigotry': Six Democrats Join With House GOP to Pass $833 Billion Pentagon Budget0·1 year agoSo I think we largely agree on the situation, but the contention here is that we seem to disagree on branding and terminology. I am referring to them as “leftist” (though I don’t mean to say that they’re actually “far” left) because they present themselves as such. Their grift is centered on being the group for people that care about climate change, universal healthcare, UBI (IIRC, they may not advocate for that…), Unions/labor and other policies that are broadly considered “leftist” (even if the views are largely mainstream at this point.
I could see not calling them “far” left, at least in the international sphere, but they at least present as leftist, and have many people convinced that they are as such.
I’m the same way, Joel Osteen and the other “prosperity gospel” are grifters and charlatans PRESENTING as Christians. But when enough “Christians” believe them and support their policies, a simple dismissal of them as “not Christian” falls into the “No True Scotsman” fallacy. Doing so allows you to hand wave away more and more things that others within (your group) that you disagree with. Westboro Baptist Church? No True Christian. Church has an opposite opinion as you on LGBT rights? No True Christian. (And the Christian you’re talking to will have arguments on WHY they’re not really a Christian).
That issue is not unique to Christians, or to right-wingers, or to other groups that you and I are likely not a part of. But we must acknowledge that OUTSIDERS will regard them as leftist whether or not you or I do. And dismissing them out of hand tends to shut down dialogue and ostracize those who may be caught up in said grift. I myself used to be interested in the Green Party until I saw enough of their bullshit to realize that they were not a group I would want to represent me (probably around 2015-ish). But there are good people with good ideals that do identify with the Green Party either because they haven’t looked into enough of the problems surrounding the party or because they’ve been convinced of the bullshit after agreeing with good points the party has made.
They may be wolves in sheep’s clothing, but they certainly TARGET leftists, which is the point. That’s what grifters do.
JustAnotherRando@lemmy.worldto politics @lemmy.world•Bloat and 'Bigotry': Six Democrats Join With House GOP to Pass $833 Billion Pentagon Budget0·1 year agoI agree that the Green Party is a grifting party, but they are the farthest left that has a national stage / ballot access. There are also decent leftists within the Green Party, because they want to affect change at a local level and that’s the closest thing to a party that would represent their views if the DSA doesn’t have a presence.
But I think it’s too dismissive to simply write them off as “not left” because at a surface level, they represent several leftist viewpoints, and they’re, unfortunately, a lot of people’s first exposure to leftist politics (especially back in the 2000’s and 2010’s before the DSA started growing). Like yes, they are at this point a grift, but they weren’t always that way and a lot of people aren’t aware that that is the case. They’re “not left” in the same Sense that the Tea Party was “not libertarian” - which is to say that they’re not good-faith proponents of the ideology, but are good at attracting people who don’t know better and have a corrupting effect on the movement.
JustAnotherRando@lemmy.worldto politics @lemmy.world•Bloat and 'Bigotry': Six Democrats Join With House GOP to Pass $833 Billion Pentagon Budget0·1 year agoDr. Jill Stein is, I would argue, a scammer. I was interested in the green party, but the more I read about their - and particularly her - positions on some issues and some of the things she claims, she’s either an educated idiot or a grifter. She certainly has some good positions, but also pushes a number of pseudoscience ideas from anti-vax and anti-gmo to scares about “Wi-Fi hurting our kids” (not Internet usage but electromagnetic waves from Wi-Fi). She also pushes Russian propaganda, especially around the Russia-Ukraine war, and has met with Russian officials (including Putin himself) on a number of occasions.
So unless you’re going to “No True Scotsman” the Green Party as not being leftist, then yes. There are grifters on the left as well. Further, you should avoid assumptions like “there aren’t any bad actors in OUR camp” because grifters and charlatans will find a place in any community should they figure out an effective method to do so, and letting your guard down because “we’re the good guys” is the fastest way to let that happen.
JustAnotherRando@lemmy.worldto ADHD memes@lemmy.dbzer0.com•NOW! That's what I call ADHD Vol. 3English11·1 year agoI do find it odd that it settled into ADHD-I, ADHD-H and ADHD-C; the one that is primarily expressed through hyperactivity literally is called “Attention Deficit Hyperactivity Disorder - Hyperactive”.
Removing the H and using the subtypes would add clarity for sure.
JustAnotherRando@lemmy.worldto Linux@lemmy.ml•Linux Mint Will Hide Unverified Flatpaks in Software Manager4·1 year agoIs the token not keyed to a specific source? I would have expected it to operate similarly to an SSL cert, where part of the verification process is that the source is the correct origin that the token belongs to - so if someone just lifted a valid cert to put into a malicious one, it would catch anything from changing a single character in the project name to changing the repository host (i.e. GitHub to GitLab)
JustAnotherRando@lemmy.worldto Science Memes@mander.xyz•Humanity making progress like it always doesEnglish2·1 year agoI try to help what little I can there by not raking (or if I do, I collect and move into our fenced in section so insects can still make use of them). It does also help my laziness that I have a legitimate reason to not rake.
Not sure if it helps or not since I do mow the leaves with the grass at the start of the summer.
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.
Really? I have no idea who that artist is. Is it someone I’ve just forgotten about from when we were younger?
JustAnotherRando@lemmy.worldto Map Enthusiasts@sopuli.xyz•The most popular metal band (2024) from each country, according to Spotify4·1 year agoUTA are awesome. I had never heard of them until their YouTube music put their version of Northwest Passage into my playlist, but I got hooked fast!
JustAnotherRando@lemmy.worldto Gaming@lemmy.ml•Larian Studios Is Officially Done With The Baldur’s Gate Series3·1 year agoI mean, I loved DOS2 as well, but I definitely think BG3 is the better game. There’s a lot of replayability from the combat in DOS, but the story and characters in BG3 are on a whole different level. DOS2 does definitely rank in my top 5 CRPGs though (BG3, BG2, DOS2, DA:O, and probably NWN would be that full list)
Another good one, entirely browser based, is https://learngitbranching.js.org
JustAnotherRando@lemmy.worldto Memes@lemmy.ml•Can you muppets stop throwing away money on awful companies producing subpar games?41·1 year agoThat’s one of two scenarios where I’m happy to buy early access. Valheim and Palworld both fall in that category. The other category I’m happy to buy early access is for a project I am particularly interested in seeing succeed (and willing to give some feedback on to help). So far I think I’ve only done that with BG3 and that turned out pretty well for me.
JustAnotherRando@lemmy.worldto Mildly Infuriating@lemmy.world•Today I finally picked up my phone from in-warranty repair (motherboard replacement), I found out the camera doesn't work (it did before).English17·2 years agoIf it was a motherboard replacement, it’s entirely possible they missed connecting the cable for the camera entirely or just didn’t get it fully connected and is loose.
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.
That’s incorrect. They are, in engineering contexts, referred to as pounds mass (lbm) or pounds force (lbf) respectively. The US Customary Unit for mass is the pound (lb) (aka pound mass, lbm)
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)