@jsq@chockenberry it depends what problem you are trying to solve. Using a struct to wrap both values is equivalent to labelling the tuple arguments, in that it ensures that at the point of access you won't get the clientid and secret mixed up.
What using separate struct wrappers solves is that when you pass your clientid and secret around as individual values you won't accidentally get them mixed up with some other string identifier in your application because the type system won't let you.
Sometimes I wish I had the average person’s ignorance towards IT issues. Every time I tell my wife or friends who are not in It about some new problem, like AI training on user data, or companies doing cross-service tracking for detailed user profiling, they just shrug and keep scrolling through Instagram. Ignorance is bliss.
@rene I always think this when people give me the side eye for using DDG instead of Google for search.
I don't even proselytise about it except when they actively complain to me about Google and I point out that their problem doesn't exist on DDG, and then they still treat me the way I treat vegans
Was anyone else raised to believe the worst financial decision that would immediately bankrupt one's family was to consume an item from the Hotel mini bar?
I mean, a thief better steal the wallets & all bags from our room before opening a bag of peanuts from that fridge!
30 hours into #Everspace2 and it's great fun. It's not the most compelling story in the world but the graphics and the mechanics are great. An excellent space shooter, and native to the Mac to boot.
I'll be damned if Rockfish Games aren't looking into or even already working on Everspace for the Vision Pro. Feels like a no brainer. Surely Apple must be talking to them about it?
@finestructure the name Rockfish sounded vaguely familiar - it turns out they are a spinoff of the Fishlabs studio that made Galaxy on Fire 2, which was maybe my favorite ever space shooter.
In a fit of madness I've agreed to give an internal talk about advanced Swift at my company. Has anybody got any favorite Swift tricks they'd like to share?
@ctietze otherwise, if you control the signature to the method then there are various (slightly ugly) workarounds I can think of, such as returning NSObject and casting it on the Swift side.
@ctietze another option might be to create an objc protocol that mirrors the NSString API and then conform NSString to it. If you work exclusively with that protocol, Swift wouldn't know how to bridge it
I’m pleased you’re all angry about the StackOverflow announcement, I’m not because I couldn’t parse any meaningful information out of the corporate gobbledygook.
@ratkins it's unclear to me if they intend to use OpenAI to answer questions on StackOverflow (which will make it basically useless) or just use existing StackOverflow answers to train OpenAI (which should probably bother me, but tbh doesn't really)