The only modern language that gets it right is Swift:
print("🤦🏼♂️".count)
// => 1
Minor, but I'm not sure this is as unambiguous as the article claims. It's true that for someone "that isn’t burdened with computer internals" that this is the most obvious "length" of the string, but programmers are by definition burdened with computer internals. That's not to say the length shouldn't be 1 though, it's more that the "length" field/property has a terrible name, and asking for the length of a string is a very ambiguous question to begin with.
For most high level applications, I think you generally do want to work with grapheme clusters, and what Swift does makes sense (assuming you can also iterate over the individual bytes somehow for low level operations). As long as it is clearly documented what your "length" refers to, and assuming the other lengths can be calculated, I think any reasonably useful length is valid.
The article they link in that section does cover a lot of the nuances between them, and is a great read for more discussion around what the length should be.
Edit: I should also add that Korean, for example, adds some additional complexity to it. For example, what's the string length of 각? Is it 1, because it visually consumes a single "space"? Or is it 3 because it's 3 letters (ㄱ, ㅏ, ㄱ)? Swift says the length is 1.
Before type hints, I would have said Python, but these days it's Javascript. It takes a lot of effort to write decent size Javascript projects that others can read snippets of without any context and immediately understand well enough to contribute back to, from my experience. It's doable, but when working on a project with others (especially when the project isn't even your own), it can become difficult to follow the code in my opinion.
If we include esoteric languages, Seed is actually unreadable by any normal person. Writing code in Seed is extremely difficult, and with an inefficient algorithm (yes you can inverse the RNG to generate seeds directly), can be computationally expensive.
I agree that they can't always be trustworthy, and I think shorter summaries are better than longer ones for this reason. A short summary/introduction can help someone figure out quickly if the article is something they're interested in reading more about, but hopefully doesn't go too far off the rails. The summary shouldn't replace the article in my opinion, just help someone decide if it's worth their time to read it.
There's an awful lot of fear around AI right now that I think could be solved by showing people just how ineffective the more recent AI developments have been at solving most real problems. That being said, it's good the UN is starting discussions around it early on, in case it develops to the point where fully autonomous weapon systems can be widely deployed and relied on. It does feel like only a matter of time before we reach that point, as much as I'd like for it not to happen.
The Republican party? There is no "conservative party" in the US, and conservatives can exist in both the Republican and Democratic party. In fact, I'd argue that the Republican party more recently has tended towards being (anti-)progressive since they're constantly trying to push new regulations into law.
The Republican party, especially post-Trump, has been extremely problematic and guided entirely by hate and fearmongering, and I hope we see it disappear someday soon.
I agree, was general advice that an unnatural infatuation should be an indicator, not specific for OP. I don't know enough about them to know whether that's the case, but it's never impossible, and a therapist should never make things worse at least and may help them better understand their emotions (if they're doing their job).
This exactly, you don't tell them "I love you" in any way, implicit or explicit, unless you are already in a genuine relationship. To begin with, if you don't know anything about the person besides what they show on the surface, how can you possibly know you want to be with them? Unless of course all you care about is appearance or something, or you have an unnatural infatuation and should seek help instead.
Not a user of lemmy.one, but user accounts can also be compromised, and if your instance has no active admins, can something be done in that scenario? I wouldn't be surprised if they defederated preemptively to be safe.
I agree, AWS is definitely the largest, but Google and MS are both competing very well in the space for 2nd and 3rd place. On the other hand, no online store front even remotely compares to amazon.com's presence, so it's understandable the FTC would have eyes there.
This is how the software engineering industry works. It's actually games that are the outlier here, with their big releases each time a sequel is made.
More visibility would definitely help here though, odd that they don't put a banner on the store given how big of a release this is for many players.
Trump focused on the president’s push for more electric vehicles, saying it would “annihilate the U.S. auto industry and cost countless thousands of autoworkers their jobs.”
What leap of logic led to this statement? How does building EVs instead of gas-powered vehicles have any impact on their jobs in any way except positive? I understand how a strike can impact jobs, but not how switching to EVs can.
Used exa on Windows despite the bugginess (there was a PR making it work on Windows that I'd cargo install directly), and I'm glad to see it forked and in active development. These days I use nu and its ls command, but I would highly recommend exa for people using more standard shells.
Tangentially related, but I recently bought a Philips shaver and the thing wanted me to install an app on my phone and connect it to the shaver via bluetooth to send shaving data.
I mean, I guess there's theoretically value there for some people? I can't imagine what, but that app's staying well off my phone.
Not 30 years, but usually just looking at each other says enough, with maybe a head motion if it's time to go. Facial expressions say a lot on their own, and if you know someone well enough, even subtle differences can say a lot.
The ramen museum is fun, highly recommend if in the area. As for its ethics, I think the ethics of the work culture in Japan can be talked about, but I don't know how the shops in that particular museum operate.
Are there any good non-Apple equivalents for health tracking? Something that does pulse-ox for example, but isn't stuck in the walled garden.