As far as this being the reason most C code doesn’t handle UTF-8 though, I’m still skeptical.
1,843 karma · joined April 26, 2022
As far as this being the reason most C code doesn’t handle UTF-8 though, I’m still skeptical.
Can you expand on this? Why does it matter to keep code points and grapheme clusters together in the case of truncation? If you’re already truncating the string, then you can just copy as many bytes as possible. Then, later when you interpret that string, you’ll hit a malformed codepoint and ignore it. I guess what you might be getting at is that if you have a codepoint sequence, then you shouldn’t copy the bytes if they can’t all fit in the truncated string?
I feel like this is an edge case and not “the reason almost all C software has problems with non-English strings”. 99% of the time, copying up until the null byte is fine, whether or not the string is UTF-8 or ASCII. The reason most C software doesn’t work with non-English strings is because the developer never added support. The bytes are still there, they just need to be interpreted correctly in the UI portions of the code.
In my old apartment, the difference between 73F and 74F was enough to make me quite cold or hot. And that’s a difference of about 0.5C. I’m not arguing that Farenheit is better, but I definitely do prefer it for setting my thermostat (which is a day to day thing) , but then again I grew up using it so that could be why I prefer it too.
[0]: https://gamefaqs.gamespot.com/boards/189706-nintendo-switch/...
[1]: https://www.nintendolife.com/forums/nintendo-switch/the_fram...
[2]: https://www.reddit.com/r/FortNiteBR/comments/gyn32c/seriousl...
[0]: https://www.ftc.gov/business-guidance/blog/2024/03/price-fix...
Do they really carry a higher risk of being invisible though? You don’t need to “contrive” situations either. My company just spent 6+ months trying to solve a JavaScript undefined symbol bug stemming from a library. When we finally tracked it down, it was because we were using import instead of require, which the documentation didn’t clarify was important. The fix we implemented was nowhere near where we expected the bug, and the only reason we finally solved it was because we had exhausted all other options. Sounds the same, if not worse, as a difficult to track memory bug to me.
Stack Overflow could have solved the problem of duplication so many ways. Why not categorize and bucket duplicate answers? They could have even had yearly recurring questions with the most up to date answer! Why not add beginner/hobby/expert rankings to questions so that the people answering don’t get sick of seeing beginner questions all the time?
There is so much SO could have done, instead they rested on their laurels and now they’re left with an out of date repository. What use is a curated repository if it will only help me solve problems with solutions from a decade ago?
And as for the parent comment’s point, being into cars doesn’t mean you’re as good as a professional race car driver.
[0]: https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007...
[1]: https://developer.download.nvidia.com/devzone/devcenter/game...
> a: something invented: such as (1): a device, contrivance, or process originated after study and experiment (2): a product of the imagination especially : a false conception[0]
Studying, experimenting, and imagining all require agency.
It would be like finding a watch someone had dropped on the ground and being like, “Wow what an amazing invention! It must have evolved over several thousands of years until it was able to accurately track the time!”. Or thinking that a chaotic natural process like a tornado could somehow assemble a car if it blew through a junkyard. Both of these are ridiculous arguments, but that’s what people claim evolution is like. After all, given enough time anything is possible? Right?
And I think vanilla CSS is not that bad. I definitely don’t think it’s bloody awful. Most wrappers around the language added variables and nesting. CSS now supports variables and I think it even supports nesting :)
There’s probably other features that could be good, but for a language that’s just meant to provide style metadata for my UI, CSS works fine.
They barely even understand it?? I think the biggest problem with CSS is the same problem plaguing C++ and other older languages. Cruft. If there was proper versioning and pieces of the language were deprecated in favor of modern techniques, it would remove a lot of ambiguity. Heck, if there was a built-in linter that warned you about common errors that would be a massive upgrade!
The only bad part about CSS is that there’s a dozen ways to do everything.
With that said, any developer telling you they hate it probably hasn’t worked with the “state of the art” in other UI development. Go work with WPF, UWP, QT, ImGui, JavaFX, Swing, or any of the dozens of other desktop UI frameworks. Then, try to make a moderately complex style and apply it to several elements. It’s a PITA. I too hated CSS… but then I worked with WPF and JavaFX and lots of those other frameworks: and they gave me a fresh dose of perspective.
I’ll gladly take the ability to do everything a dozen different ways over the inability to do anything that strays from the happy path in the framework I’m using.
https://allaboutstevejobs.com/persona/steve_at_work#:~:text=....
Doesn’t sound like everyone had fond recollections.
> I may not have spelled this out explicitly in my previous reply but I will do so here: I am not interested in getting more replies from you on this subject. Declining a call does not mean I want you to argue with me about Kagi in email either. I do not trust you, personally, either and do not want to have a conversation about that. And for the record, I read that blog page already. If you had read my own blog post, you would notice that I link to it.
If they don’t want to talk, just don’t respond.
The author also cross posted their blog to multiple social media platforms, which I assume means they wanted it to get attention. But then when the CEO does see it and offers some explanations they get mad that the CEO “vomited out” a reply that they didn’t want? I’m sorry, but the CEO of Kagi definitely sounds like the reasonable one here, thanks for linking this thread.
The grandparent comment was talking about how all the different subjects in school can help give you very useful prerequisite knowledge that enables you to become a strong game developer. You made it sounds as if the math isn’t necessary, but I think we both agree knowing math will aid you tremendously in game development. You don’t need to know it to start developing games, but somebody that already has that knowledge will be leagues ahead of you in a lot of topics.
Heck, even the simplest data structure in almost every game engine a Transform (aka transformation matrix) is a loaded mathematical term. The guy that understands linear algebra and how you can combine a series of matrices to apply different kinds of transformations to a geometric object will “get it” way quicker than somebody who has no math knowledge. Then, when they want to do fancier stuff, like transform something relative to something else (like a custom 3rd person camera that hovers above and behind the main character), they don’t have to waste time trying to understand how linear algebra and using matrix multiplication can achieve that effect.
Why do you disagree though? Math is helpful in game design for: pathfinding, vector math, several graphics effects, physics, smoothing animations, setting up in game currencies, setting up probabilistic gameplay elements, random number generation, terrain generation, calculating enemy field of views, calculating trajectories, creating player controllers, and many other logic pieces in games.
If you want to be a good game designer, it would behoove you to have a strong math background.
I also recently switched from Android to iPhone. There was also an app that automated a lot of it. But there are a ton of tiny things that build up and lock you in to a platform. And they’re all marketed as helpful little addons! Why not backup your pictures to iCloud or get more storage space? It’s great in theory, but it makes that transition so much harder. It’s funny too, I’m actually very unhappy with my iPhone and want to switch back to an android, but I’m waiting. Why? Because it took me like 3 days to fully switch all my stuff over the first time and I don’t feel like going through that again.
This is uniquely an iPhone problem, not a smartphone problem. It’s been one of my biggest gripes after switching from android. Where the heck is my back button? Home button? Any buttons? I really despise Apple’s obsession with minimalism and will be switching back to android when this phone dies.
I think you mean “programmers” not just “web programmers”. I’ve worked with plenty of bloated over-engineered Java and C# codebases that take several minutes to start on a very fast developer machine with 32 gigs of RAM. Sometimes, the worst offenders use “lower level” languages! The performance averse problem is endemic in the entire field, not just in the web.
Also, how does having strings highlighted put significance in the foreground? The only thing it will show you is if you missed a delimiter. It doesn’t call out parts of the program that do something noteworthy.
Everybody always jumps to Apple’s defense by explaining how iPhones are built for inept users that just want a phone that works with no BS. Therefore, they claim, it’s a good thing that Apple has a highly locked down environment. But what good is this locked down environment if Apple will happily allow scam apps to charge their customers for features the phone already does for free? What’s the difference between a user downloading a scam app from an untrusted source and downloading it directly from the App Store? If Apple is going to have a locked down environment, at the very least, they should make it effective.