Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

chockenberry, to random
@chockenberry@mastodon.social avatar

Anyone who raves about the brevity and expressiveness of Swift has never written a framework with public classes, structs, and methods.

So much public. And subtle differences between classes and structs.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@chockenberry @Gte You could maybe write a macro that adds public to every field unless it’s already got an access control modifier. Likely overkill, but it would give you the behaviour you want!

rhysmorgan, to random
@rhysmorgan@mastodon.social avatar

Ack, can’t find it now, but does anyone have the link for that Swift init vs. type name for initialisation thread that was on the Swift forums?

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@Cyberbeni Yeah, I remember there was a thread recently on the Swift forums where some people tried actively working out exactly what combo of type name, type decl., and/or init produced the shortest compile times.

gernot, to random German
@gernot@mas.to avatar

Again, Xcode Previews break for some reason when using SPM, and it does again cost HOURS.

Every. Week. At. Least. Once.

This is the real Apple these days.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@gernot I love SPM in theory, but it’s SO slow and broken.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@gernot absolutely! I wouldn’t use something else, because xcodeproj is a horrible format and I don’t want to deal with the git conflicts. And I like the enforced separation that SPM gives modules.
I’m intrigued to see what happens with Tuist, though… I think it does go or is going beyond project generation.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@gernot lol, yeah, I've not seen on-device previews work for yeaaaaars.
It's just sad, because the theory of SPM (and, in some places, the practice) as a means of project structure is soooooo much better than the alternative. But then you hit a sharp edge, and it's horrible.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@gernot Specifically regarding previews, is that possibly because you didn't have that scheme selected in Xcode? This is the only way I get Previews working with SPM:

  1. Module is defined as both a target and a product.
  2. Scheme in Xcode (from products) is the one you want to preview
  3. The files currently visible in an editor are only from that given module. Somehow, hiding those editors is good enough too.
layoutSubviews, to random
@layoutSubviews@mastodon.social avatar

In Xcode 15.4, SPM now auto-generates Swift symbols for catalog assets.
That's great! Except they're declared internal, therefore they're useless in a package whose sole purpose is defining a Design System 😕

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@layoutSubviews Arghhh. I don’t get why there’s no setting in the Package.swift to say which access modifier you want to use for generated symbols.

xtaldave, to random
@xtaldave@xtaldave.net avatar

Fucking wild this...

BREAKING 18:34
All members of the jury have been selected

BREAKING 18:40
Person reportedly sets themselves on fire outside court

BBC News - Trump trial live: Fire reported outside courthouse in New York - BBC News

https://www.bbc.co.uk/news/live/world-us-canada-68841535

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@xtaldave conspiracy nut, apparently.

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@xtaldave wot the fuck

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@xtaldave Yeah, I did see 😬

harshil, to random
@harshil@mastodon.social avatar

Littlest Swift pet peeve: I simply cannot declare a variable’s type separately from the default value

🚫 var thing: SomeType = .value
✅ var thing = SomeType.value

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@harshil @mergesort Definitely necessary for anything other than the most obvious Array assignments. Also useful if you use static methods/are storing enum cases.

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Came across a neat-looking indie gamedev tool that I wanted to check out, but they dropped Mac support when Apple killed 32-bit apps 🤷‍♂️

The bridges Apple burned with indie game devs with the 32-bit cutoff and notarization still have repercussions today, and will far into the future

image/png

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@stroughtonsmith I wish they’d added an emulation layer of sorts, for games if nothing else.

xtaldave, to random
@xtaldave@xtaldave.net avatar

Pink Floyd slated after AI-created video wins Dark Side Of The Moon animation competition: "A spit in the face of actual artists"

https://guitar.com/news/pink-floyd-slated-after-ai-created-video-wins-dark-side-of-the-moon-animation-competition/

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@xtaldave I think this is huuuugely overstated. He trained his own local LLM on his own artwork to achieve the particular psychedelic effect he wanted. There's no "stealing" from other artists here. It's just using a new tool for a particular purpose. The fact he didn't animate each (key)frame to get there doesn't mean it's fake or not worthy, IMO.

b3ll, to random
@b3ll@mastodon.social avatar

Lmfao these App Store rules are getting to be comically complicated

Waiting for the day when you'll have to prove you live in a particular zip code before you can use an entitlement

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@b3ll I wonder if they will ever give in and just make the rules global? Or will it take literally every country/trading bloc to force them to?
Like, if the EU, U.S., UK, Japan, South Korea etc. force these changes, will they make them global, or do you think they’ll still hold out in India, China, etc. Is there any threshold until they just make it universal? At this point, I wouldn’t be surprised if they hold on wherever they can, no matter how small the market.

rhysmorgan, to random
@rhysmorgan@mastodon.social avatar

git bisect is one of the most useful tools in any developer’s arsenal. Spent a few hours tweaking code to see if it would fix a bug that had been discovered, to no avail. Ran git bisect, and within about 10 minutes discovered the lines of code that caused it!

rhysmorgan,
@rhysmorgan@mastodon.social avatar

@jamesdoc It was sooo useful today! My code all looked like it should have worked. It should have. I tried some otherwise useful refactors to try and see if they’d help, but they didn’t.
Bisect found that I’d accidentally removed a line of code that works around a SwiftUI bug when I did some previous refactoring, by taking me to the exact commit I made the change in.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • osvaldo12
  • cubers
  • magazineikmin
  • ethstaker
  • Youngstown
  • rosin
  • slotface
  • everett
  • kavyap
  • InstantRegret
  • JUstTest
  • khanakhh
  • thenastyranch
  • anitta
  • modclub
  • GTA5RPClips
  • mdbf
  • cisconetworking
  • tester
  • tacticalgear
  • provamag3
  • Leos
  • normalnudes
  • lostlight
  • All magazines