News for hackers. Stuff that matters.
Re:SwiftWebUI by Razengan on Monday July 01, 2019 @09:33PM (#20331364)
Forgot to call out Combine, another important piece of the picture.

https://developer.apple.com/videos/play/wwdc2019/722/ (Introducing Combine)

https://developer.apple.com/videos/play/wwdc2019/721/ (Combine in Practice)

Whether you have any business in the Apple ecosystem or not, I think you'll agree they made some good moves on several fronts this year.

And as is the case with most Apple announcements, there's a lot of comments here saying that they weren't the first, about how SwiftUI is actually based on something we unearthed from the Mesozoic. Well of course, but very few are actually comparing these similar technologies. I personally prefer SwiftUI+Combine's way of doing X, even if it's clearly not the first tech to do X.

For example, at first glance, Dart+Flutter code seems full of clutter, whereas SwiftUI's

    Thing {
        ForEach(model) { data in
            Child(from: data)
        }
    }
    .modifier(y)
    .animator(z)
feels a lot more readable, although I think I dislike the $binding syntax, and the gradual creep of other stuff that looks like "magic" until you look it up. I guess they had to trade the semicolons for something.
Re:SwiftWebUI by gurkendoktor on Tuesday July 02, 2019 @04:08AM (#20333152)
> Whether you have any business in the Apple ecosystem or not, I think you'll agree they made some good moves on several fronts this year.

I am extremely curious whether Combine will turn out to be a good move for the ecosystem. It's not like competent Swift developers grow on trees right now, and having to grok reactive programming seems like yet another barrier to entry.

Due to all the overlapping transitions, iOS developers soon need to know some Objective-C (and by extension C), Swift, UIKit, SwiftUI, XIBs/storyboards/classic MVC, Combine, the pointless code signing mess, and some web technologies for hybrid screens. I wouldn't be surprised if that's when Apple loses the mobile toolkit wars just like they've already lost on the desktop.