I’m one of the engineers that spearheaded this initiative inside of Apple. I just wanted to thank the HN community—I’ve been reading HN for 10 years now and it’s been formative in my development as a software engineer. If you’re at WWDC stop by the labs and say hi!
SwiftUI
61–70 of 394 posts
Re: SwiftUI
#62var body: some View { Wait, what? When was `some` a keyword?
Re: SwiftUI
#63var body: some View { Wait, what? When was `some` a keyword?
Re: SwiftUI
#64It’s nice to finally see a FRP framework for iOS like React/Elm. MVC must die already.
Re: SwiftUI
#65The syntax example is still not as clean as QML, which is already a ten-year-old language (examples: http://qmlbook.github.io/ch04-qmlstart/qmlstart.html ).
Syntax aside, there is a large semantic difference between the two: QML is a separate language/modeling tool that is embedded into the application runtime. SwiftUI is in fact ordinary Swift code and the UI you define with it is also ordinary Swift code too, code that XCode and the Swift compiler understand and analyze and refactor and compile like any other. Just with some special magic to make the UI builder work with it. I think this has a lot of advantages notably from a toolchain perspective, since you don't even need XCode (just the Swift compiler) to do things like xrefs/refactorings across SwiftUI code, nor maintain tooling like that across two languages (XYZ + whatever UI modeling language)
Given that, my first impressions of how far they took it (and how well it came out) are pretty good.
Re: SwiftUI
#66It’s nice to finally see a FRP framework for iOS like React/Elm. MVC must die already.
I'm interested in your take on that though. I'm self taught and I've got some weird ideas about things.
Re: SwiftUI
#67The syntax example is still not as clean as QML, which is already a ten-year-old language (examples: http://qmlbook.github.io/ch04-qmlstart/qmlstart.html ).
There's something to be said for being able to use one language for all things.
Re: SwiftUI
#68I’m one of the engineers that spearheaded this initiative inside of Apple. I just wanted to thank the HN community—I’ve been reading HN for 10 years now and it’s been formative in my development as a software engineer. If you’re at WWDC stop by the labs and say hi!
Re: SwiftUI
#69It’s nice to finally see a FRP framework for iOS like React/Elm. MVC must die already.
Re: SwiftUI
#70Earlier quoted context omitted.
How would you compare this to React.js? In particular, how does SwiftUI approach the concepts that Redux solves [EDIT: in other words, state management]?
Redux and react are two different questions.