by sai_c · 5y ago · 0 comments
Once upon a time, there was a company called Taligent, which was created by IBM and Apple to develop a set of
tools and libraries like Cocoa. About the time Taligent reached the peak of its mindshare, I met one of its
engineers at a trade show. I asked him to create a simple application for me: A window would appear with a
button, and when the button was clicked, the words "Hello, World!" would appear in a text field. The engineer
created a project and started subclassing madly: subclassing the window and the button and the event handler.
Then he started generating code: dozens of lines to get the button and the text field onto the window. After 45
minutes, I had to leave. The app still did not work. That day, I knew that the company was doomed. A couple of years
later,Taligent quietly closed its doors forever. import SwiftUI
@main
struct FooApp: App {
@State private var isClicked: Bool = false
var body: some Scene {
WindowGroup {
VStack {
Button("Click me!") { isClicked.toggle() }
if isClicked { Text("Hello, World!") }
}.frame(width: 640, height: 480)
}
}
} Taligent: The whole point of adding all those abstractions is to reduce complexity.And when people do everything "wrong", we get amazing things like Smalltalk and Cocoa.
Hmm...
We don't get this type public proposals for Swift UI, I wish Swift UI would be open source, because the documentation hasn't been great in my experience and at least this type of proposals get publicly documented and discussed before being implemented.
The whole XAML/WPF thing just seem to me a bit of a dig's dinner.