Yeah, I hate how girls will be disgusted when it's somehow suggested you'd want to have sex with them, while at the same time, I don't feel like I'm even supposed to have an opinion.
It's like, I'm a man, not in a relationship, not gay and not good at pretending I've never heard of sexuality, so if I don't want to have sex with a girl, that must mean I find her extremely ugly.
It is still a stereotype that "boys only want sex". Those studies suggest a higher sexual drive on average, not that it applies for all boys, and certainly not that it's the only thing boys want.
I mean, I mostly wanted to point that out because OP prefers FOSS, but I did think at least their IntelliJ Community Edition was open-source.
But I just checked their website and it says "Free, built on open source", arguably the worst option, although I guess, it's what the MIT folks want.
I just hate how people overwhelmingly recommend proprietary editors. It's the one thing you'd think the FOSS community should be exceedingly good at.
I once had a very special, very young colleague, who would always question everything, but was never willing to change his own mind. And of course, he believed the Bible was 100% verbatim correct and scientists were lying.
Well, one day he exclaimed, "Scientists don't know everything for certain either!".
So, I responded, "Yeah...? They don't claim to...?".
And that left him absolutely confused. I don't know how much propaganda his parents fed him, but I guess, at the very least he never considered that a possibility.
So, I told him that it's not called a "scientific theory" for nothing. And that literally everything in science will be abolished, if you can disprove it.
After that quick shock, he was already back to not wanting to believe anything that sounded logical, but his last response was something along the lines of "That doesn't make any sense. How can you live by something and not know for certain that it's correct?".
Which, like, I get it. It's scary to not have certain answers. But it makes no sense to just pick one answer and decide that this one is certain.
But yeah, that is the mindset he grew up in.
I do composing, too, and I've written my fair share of shoddy scripts to automate tasks, but changing up the whole keyboard layout for a task, that's the sort of madness I aspire to. 🙃
Yeah, I had it on Super+T at first, too, but I have the command/application/everything runner bound to Super+Esc and I open a lot of terminal windows throughout the day, so I re-bound it to Super+R just because it's slightly easier to reach.
The problem is when you think you know stuff, but you don't. I knew that counting bytes doesn't work, but thought the number of codepoints was what I want. And then knowing that Rust uses UTF-8 internally, it's logical that .chars().count() gives the number of codepoints. No need to read documentation, if you're so smart. 🙃
It does give you the correct length in quite a lot of cases, too. Even the byte length looks correct for ASCII characters.
So, yeah, this would require a lot more consideration whether it's worth it, but I'm mostly thinking there'd be no .len() on the String type itself, and instead to get the byte count, you'd have to do .as_bytes().len().
I always try to put as little logic into CI-Runner-specific tooling as possible and rather have everything automated via the usual programming language build tooling, which you can run locally.
We're not talking lossless. The comment above specified Opus-encoded OGG, which is lossy.
For example, I converted my music library from MP3 to OGG Opus and the size shrank from 16 GB to just 3 GB.
And if converting from lossless to both MP3 and OGG Opus, then OGG does sound quite a bit better at smaller file sizes.
So, the argument here is that musicians are underselling their art by primarily offering MP3 downloads. If the whole industry would just magically switch to OGG Opus, that would be quite an improvement for everyone involved.
You were probably taught at some point that people in the time of Christopher Columbus all thought the world was flat. However, this is a myth that pervades history - most people knew the earth was a globe! (Source)
Goddamnit! I've heard that so often already.
And then I learned separately that even the Greeks already knew not only that Earth was round, but even its circumference at a pretty good accuracy.
These two 'facts' genuinely had me thinking we must have lost a ton of knowledge from the Greeks...
Yeah, although having now seen two commenters with relatively high confidence claiming that counting codepoints ought be enough...
...and me almost having been the third such commenter, had I not decided to read the article first...
...I'm starting to feel more and more like the stdlib should force you through all kinds of hoops to get anything resembling a size of a string, so that you gladly search for a library.
Like, I've worked with decoding strings quite a bit in the past, I felt like I had an above average understanding of Unicode as a result. And I was still only vaguely aware of graphemes.
That Rust function returns the number of codepoints, not the number of graphemes, which is rarely useful. You need to use a facepalm emoji with skin color modifiers to see the difference.
Yeah, I hate how girls will be disgusted when it's somehow suggested you'd want to have sex with them, while at the same time, I don't feel like I'm even supposed to have an opinion.
It's like, I'm a man, not in a relationship, not gay and not good at pretending I've never heard of sexuality, so if I don't want to have sex with a girl, that must mean I find her extremely ugly.